.Net Interop

Discussion in 'ASP .Net' started by Jacky.Zheng, May 17, 2007.

  1. Jacky.Zheng

    Jacky.Zheng Guest

    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);
     
    Jacky.Zheng, May 17, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stefan Barlow

    COM interop from ASP.NET

    Stefan Barlow, Aug 4, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    472
    Stefan Barlow
    Aug 4, 2003
  2. Lars-Erik Aabech
    Replies:
    14
    Views:
    9,051
    hmkjr
    Jul 10, 2009
  3. Patrick
    Replies:
    2
    Views:
    659
    Steven Cheng[MSFT]
    Oct 1, 2004
  4. Kristof Thys

    ASP.net webservice interop with c++ dll

    Kristof Thys, Sep 23, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    476
    Kristof Thys
    Sep 23, 2004
  5. =?Utf-8?B?VUtQb3N0aWU=?=

    COM Interop problem with 3rd Party DLL using C# under ASP.NET

    =?Utf-8?B?VUtQb3N0aWU=?=, Sep 23, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    814
    =?Utf-8?B?VUtQb3N0aWU=?=
    Sep 23, 2004
Loading...

Share This Page