C# wrapper interface error: E_NOINTERFACE

前端 未结 3 1801
忘了有多久
忘了有多久 2020-12-06 08:55

I am trying to produce a C# wrapper for a COM object that I have (named SC_COM.dll), but am having some issues linking it with Visual Studio 2008 (running Vista). I need to

3条回答
  •  甜味超标
    2020-12-06 09:12

    Try adding this to your App.exe.manifest:

    
    

    Where TLBID can be found from your Visual Studio generated Native.Namespace.Assembly.Name.manifest, looking like this:

    
    

    I was banging my head against this for quite some time, but I found these helpful references and pieced it together and it's working for me:

    • Why do I get E_NOINTERFACE when creating an object that supports that interface?
    • Registration-Free Skype4Com and multithreaded apartment
    • Registration-Free Activation of COM Components: A Walkthrough

提交回复
热议问题