Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Access to COM

I understand that.
Just as people love the COM support architecture build in swt (thanks for the excellent work), why not make it a full COM layer?

In fact, what I need is less than a full layer, I just need more VtblCall() methods, I think with that, I can almost do everything I need for COM/OLE.

jml

Veronika Irvine wrote:
The COM support in SWT is not intended to be a full COM layer. It is an internal detail which provides the level of support required to implement a container for OLE Documents and ActiveX controls.

See:

http://bugs.eclipse.org/bugs/show_bug.cgi?id=8727





jml <jml@xxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
04/16/2003 06:24 AM
Please respond to platform-swt-dev

To: platform-swt-dev@xxxxxxxxxxx cc: Subject: [platform-swt-dev] Access to COM



Hi,
In my code, I need to access a COM object. So I write a class and extends IUnknown, following org.eclipse.swt.internal.ole.win32.IOleControlSite. For each methods in the COM interface, I wrote a method with its implementation calling COM.VtblCall(...)

Then I found I am in trouble, there is a method in the COM interface take 11 parameters! But I can't find a VtblCall(...) method to take that much parameters.

So my questions are:
1. Is my way the correct way of access COM object?
2. Is there any way to workaround this problem? I know I can write my own native code (maybe copy from swt implementation), is there way that needn't do that? 3. If my way is correct and there is no workaround, is it possible in next version that swt provide more VtblCall() method, so people like me who wants to use swt as a COM-bridge needn't write any native code?

Thanks in advance.

jml

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev



_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev





Back to the top