.Net Interop

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top