Re: newbie getting started

Robert Hastings <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <JAWIN%[email protected]>
Try

Variant val = new Variant();
val.vt = VarTypes.VT_BSTR;
val.bstrVal = "001002";
cf.Read(10, val);

Robert


-----Original Message-----
From: Discussion of Java/Win32/COM integration with Jawin
[mailto:[email protected]] On Behalf Of willie klein
Sent: Tuesday, November 09, 2004 2:39 PM
To: [email protected]
Subject: Re: [JAWIN] newbie getting started

Hi All;

Thanks for the help, I'm much further along now. :)

I've compiled my classes and see somewhat how to use them, but I'm
getting a compile error when I try to read a record from the data base.
My code:

try{
            ICometFiles cf = new ICometFiles(CometFiles.CLSID);
            cf.Initialize("ClientID", -1, 50, 50);
            is = cf.getIsConnected();
            cf.Open(10, "WWC1A", "WKK");
            cf.Read(10, "001002");

the compiler complains:
CFAM/HelloDllStub.java [31:1] Read(int,org.jawin.Variant) in
CFAM.ICometFiles cannot be applied to (int,java.lang.String)

I'm not sure what the difference is between a org.jawin.Variant and a
String would be.  This is a record key for the database.

Thanks

willie
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.