valid assemble and com component for dll reference

Hi,

I am trying to add a DLL reference into a C# project in 2005 Express. But it says not a valid assemble or com component. Any idea where shall I look into

Thanks...




Answer this question

valid assemble and com component for dll reference

  • Jobr77

    hi,

    Is your problem solved If yes, then could you please post the answer and mark it as answered

    Thank you,
    Bhanu.



  • CharlestonSW.com

    ok....found the solution...

    please refer to another thread that I have started earlier "tlbimp.exe and DllImport ".....

  • Jeffrey D. Baker

    Thanks....Have been looking into the P/Invoking for a couple hours. Got some clue, but not yet got it going...will try to work on it somemore...thanks for the info...

  • Ray

    If it’s not a COM or .NET dll then you shouldn’t be adding a reference that way, instead you’ll want to look into P/Invoking it.

    Is it a common Windows DLL

    If so take a look at Pinvoke.net for a huge collection of signatures that can be used to get it working in your app.

    If not, you’ll need to write your own, which in itself is pretty easy. Take a look at this Platform Invoke Tutorial for more info to get you started.



  • valid assemble and com component for dll reference