Results 1 to 5 of 5

Thread: Humm Adding referances wont work.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    96

    Humm Adding referances wont work.

    When I try to add a referance to a dll I download I get the error.

    "A referance to 'z.dll' could not be added. This is not a valid assembly or com component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure that the file is accessible, and that it is a valid assembly or com component."

    The dll was written in C++.

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    then the dll is not a .net dll nor a com dll. you have to use it like api calls.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    96
    humm, Well, That Sucks . Anyway to get a function out of a DLL or EXE? Kindof hoping that this would do it. The DLL, or EXE, Does a lot of work with Winsock that I, quite frankly, dont know how to do.

  4. #4
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    use System.Reflection to get the functions and classes and parameters..but i think it only works with .NET or COM dlls...

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    96
    You where right. Only works with .net/.com
    Last edited by cogman; Sep 21st, 2002 at 08:54 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width