Click to See Complete Forum and Search --> : How can i test a DLL


dineshasanka
April 19th, 2001, 11:29 PM
Hi,
I have written a DLL in VB.I just wants to Test that.How can i do that.

Dinesh Asanka

Vij
April 19th, 2001, 11:39 PM
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

dineshasanka
April 20th, 2001, 12:16 AM
Very Sorry, What I ment was to how to debug the application

Dinesh Asanka

John G Duffy
April 20th, 2001, 07:30 AM
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

Vij
April 20th, 2001, 11:14 AM
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