Re: about COM _Enums
Robert Hastings <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <JAWIN%[email protected]> |
In COM you would normally user QueryInterface on the IUnknown returned to get IEnumVARIANT. From that interface you could enumerate the items. Usually, there's an alternative way to access the items of a collection. Robert -----Original Message----- From: Discussion of Java/Win32/COM integration with Jawin [mailto:[email protected]] On Behalf Of ken Wang Sent: Sunday, April 03, 2005 11:57 PM To: [email protected] Subject: [JAWIN] about COM _Enums Hi all, I encounter problem about how to map COM _Enums to Java Enumerations. My java stub codes for a dll are generated by JawinTypeBrowser. Please have a look following code: public IUnknown get_NewEnum() throws COMException { return (IUnknown)get("_NewEnum"); } I have no idea how to use this 'IUnknown', actually I expect this method will return a type of java Enumerations. I am not family with COM _Enums, anyone pls give me a help, thanks a lot! Best regards, Ken __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com