On Tue, 14 Nov 2000, Piotr Dembinski wrote:

> After quick research at MSDN I learned that a COM object is a
> structure in which the first field is a pointer to a vector of methods
> (a virtual table pointer).  So, when is the vtable initialized?
> Should I load methods with GetProcAddress() and put them into vtable?
> Or maybe there is another way to do this?  

The object must be defined as a type in some header file of yours that
your Winelib is including, obviously. You must fix this type definition.
If you want, you can of course change the definition to use ICOM_* macros,
but it's not necessary. The very least you have to do is to make sure the
type is defined with __attribute__((com_interface)) somehow, supported by
recent gccs. Then gcc should be able to interface correctly with the DLL.


Reply via email to