COMException 8002008 Bad variable type

Andrew Cartwright <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <LISTSERV%[email protected]>
I'm not too familiar with COM etc but we have an app that calls an
IDispatch scriptable application.  The application has been updated such
that a method that used to be defined as having a param of System.Object
is now defined as having System.String.  All the calls to methods with
System.Object still work fine with a java.lang.String and a VT_BSTR is
printed to the screen, the call to the only System.String fails with the
8002008 exception.  Any ideas on what I have to change to make this work?

The COM method sig is:
    public abstract new void ExportAsPDF (System.String filename)

I hope this an easy newbie type problem, the JAWIN project has made it
relatively easy to integrate third party apps into our java project.

Thank you
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.