
04-23-2012, 02:57 AM
|
|
Newcomer
|
|
Join Date: Jan 2004
Posts: 21
|
|
Get an object interface from com dll
|
Hi to All
I have some problem to get an object interface from com dll in VB6.
In the object Browser I see:
Code:
Sub CreateIterator(iid As GUID, ppv As Any)
This is the IDL description:
Code:
[
object,
uuid(1E8701D0-258F-43ED-9EDC-434FD16E922D),
helpstring("Switcher Object")
] interface IBMDSwitcher : IUnknown
{
HRESULT CreateIterator([in] REFIID iid, [out] LPVOID* ppv);
I can't call CreateIterator from vb6. I get the error
"Variable uses an automation type not supported in Visual Basic"
I think the problem is the GUID parameter.
How I can get this interface?
Please Help me.
Thanks to all
|
|