Y
yadolov
I have COM-object with Iface interface:
typedef struct
{
....
} TStruct;
[
object,
uuid(...)
pointer_default(unique),
local
]
interface Iface : IUnknown
{
TStruct* getDataPtr();
}
Question: how can i use this object in .Net?
For wrappers
[StructLayout(LayoutKind.Sequential)]
public struct TStruct
{
....
}
[Guid("..."), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface Iface
{
TStruct getDataPtr();
}
Tlbexp output is following:
[
odl,
uuid(...),
version(1.0),
oleautomation,
custom(..., ...)
]
interface Iface : IUnknown {
HRESULT _stdcall getDataPtr([out, retval] TStruct * pRetVal);
};
Many Thanks!
typedef struct
{
....
} TStruct;
[
object,
uuid(...)
pointer_default(unique),
local
]
interface Iface : IUnknown
{
TStruct* getDataPtr();
}
Question: how can i use this object in .Net?
For wrappers
[StructLayout(LayoutKind.Sequential)]
public struct TStruct
{
....
}
[Guid("..."), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface Iface
{
TStruct getDataPtr();
}
Tlbexp output is following:
[
odl,
uuid(...),
version(1.0),
oleautomation,
custom(..., ...)
]
interface Iface : IUnknown {
HRESULT _stdcall getDataPtr([out, retval] TStruct * pRetVal);
};
Many Thanks!