none
Adding a .dll in VB.Net project

    Question

  • Hi all,

    I want to add a dll named wlanapi.dll in my VB.net project.
    Whenever i try to add reference of it, it gives error message -

    'A reference to '...\wlanapi.dll' cannot be added.
    Make sure that file is accessible ant that it is a valid assembly or COM component'

    I want to use this dll in my project.
    How can i do this. Also let me know the reason of error....

    Thanx in advance
    Thursday, February 07, 2008 9:57 AM

Answers

  •  

    References are only used for importing managed components to your application.

     

    For native code libraries like Wlanapi.dll, you have to write function signatures (using the Declare statement or the DllImport attribute) describing the functions you want to consume.

     

    Thursday, February 07, 2008 1:13 PM

All replies

  •  

    References are only used for importing managed components to your application.

     

    For native code libraries like Wlanapi.dll, you have to write function signatures (using the Declare statement or the DllImport attribute) describing the functions you want to consume.

     

    Thursday, February 07, 2008 1:13 PM
  • Thanx Mattias Sjögren
    Thanx for reply

    Can u please tell me how to write this code in VB.Net
    Thursday, February 07, 2008 1:31 PM
  • Not unless you first tell us which functions in Wlanapi.dll you want to call.

     

     

    Monday, February 11, 2008 11:32 AM
  • Actually i want to provide security to wireless LAN..
    Is there any function available in wlanapi.dll for this...............

    If yes then plz tell me how to use that function..
    Wednesday, February 13, 2008 6:14 AM
  •  Dvp10 wrote:
    Is there any function available in wlanapi.dll for this...............

     

    No idea, sorry. And the question is really off topic for this forum. I suggest you try teh Windows SDK forum or see if there's some other discussion group dedicated to the WLAN APIs.

     

    Wednesday, February 20, 2008 9:39 AM