J
Jacky.Zheng
I call a function from com,i can call this function in VB6,but it has a
Exception in .net
the Exception is :
0x800A0005 (CTL_E_ILLEGALFUNCTIONCALL)
function in com
[id(0x00000004), helpstring("method AddUrlList")]
HRESULT AddUrlList(VARIANT* pList);
and i have a function in interop
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType =
MethodCodeType.Runtime), DispId(4)]
void AddUrlList([In,MarshalAs(UnmanagedType.Struct)] ref object pList);
Exception in .net
the Exception is :
0x800A0005 (CTL_E_ILLEGALFUNCTIONCALL)
function in com
[id(0x00000004), helpstring("method AddUrlList")]
HRESULT AddUrlList(VARIANT* pList);
and i have a function in interop
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType =
MethodCodeType.Runtime), DispId(4)]
void AddUrlList([In,MarshalAs(UnmanagedType.Struct)] ref object pList);