CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2000
    Location
    Colombo,Srilanka
    Posts
    50

    How can i test a DLL

    Hi,
    I have written a DLL in VB.I just wants to Test that.How can i do that.

    Dinesh Asanka

  2. #2
    Join Date
    Apr 2000
    Location
    Redmond,WA-USA
    Posts
    53

    Re: How can i test a DLL

    I am not sure, what you mean by test. You could see if it works by calling a function from that dll in your application.

    Vijay


  3. #3
    Join Date
    Dec 2000
    Location
    Colombo,Srilanka
    Posts
    50

    Re: How can i test a DLL

    Very Sorry, What I ment was to how to debug the application

    Dinesh Asanka

  4. #4
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: How can i test a DLL

    Create your normal DLL project then add a Standard project using the "Add Project" menu item under FILE. Use this new project as your startup. You can reference your DLL in the second Project as if it were a compiled DLL.

    John G

  5. #5
    Join Date
    Apr 2000
    Location
    Redmond,WA-USA
    Posts
    53

    Re: How can i test a DLL

    1. Best way, open the dll project and run it in debug mode, simultaneously open the client (from which you want to call the dll) and run in debug mode...when you call a function in dll the control will go to the other project and you can debug it as any normal app.


    2. If you want to test it as a dll, you can use a command which will log an event in the NT App event log..so you can put these in as many places as you want(ideally where you suspect bugs) with different text, so you will know if it fails some where..i think the command is app.logevent...not sure check it out !

    Vijay


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

Featured