Accessing GCJ binaries from Visual Basic?
Andrzej Bialecki
ab@getopt.org
Fri Aug 12 12:56:00 GMT 2005
Mohan Embar wrote:
> Hi Andrzej,
>>>>Now, my question is how should I wrap in VB the return result of
>>getLink(), or handle the argument to setLink method to be able to use
>>them transparently in VB, without re-packaging all results and arguments
>>into VB primitive types?
>>> That's the ugly part, unfortunately. I can't quite remember what the
> VB primitive types are (I only have a cursory knowledge of the language),
> but I'm afraid you'll have to cast a Test* to a void*, then an int or a long
> or something like that. The same applies for the setter. To wrap a
> class and its methods, you create a flat C API for the methods
> in that class, the first argument of which is a class instance upcast
> to an int or some other VB pointer type (if VB has one). In the C
> wrapper code, you downcast the int or long handle to an instance
> pointer and proceed from there. Loads of fun.
Uh, oh.. Thanks, but no thanks. I think I'll give up for the moment. I
expected something like gcjh, which would create a *.bas module, that
wraps around the ugly details for me ... but now I know better.
Thanks a lot!
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com
More information about the Java
mailing list