Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Debugging ActiveX DLL code


Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2004, 12:39 PM
Nahom Nahom is offline
Newcomer
 
Join Date: Jan 2004
Posts: 18
Default Debugging ActiveX DLL code


Hi

I am creating an ActiveX DLL component, I want to debug the code line by line. where do i start.

PS: Your help is appreciated

Thanks
Nahom
Reply With Quote
  #2  
Old 01-09-2004, 12:44 PM
00100b's Avatar
00100b 00100b is offline
Martian In Disguise

Retired Moderator
* Guru *
 
Join Date: May 2003
Location: Minneapolis, MN
Posts: 9,566
Default

Create a project group by first opening a standard EXE project. Then select the Add Project menu option (under File on the menu) and specify the DLL project to add.

Select the standard EXE project and use Project -> References to add a reference to the added DLL project.

In the standard EXE project, write the code that would instantiate the objects in the DLL and whatever code you wish to use to test the interface.

Use the normal debugging methods (ie Break Points, F8, etc) to step through the code.
__________________
The only stupid question is the one that goes un-asked.
Reply With Quote
  #3  
Old 01-09-2004, 12:47 PM
b_mirlen's Avatar
b_mirlen b_mirlen is offline
Regular
 
Join Date: Nov 2003
Posts: 50
Default

Reply With Quote
  #4  
Old 01-09-2004, 12:49 PM
rpoy rpoy is offline
Centurion
 
Join Date: Sep 2003
Location: Minneapolis, MN
Posts: 151
Default

All you need to do is compile and run your dll. Make sure you have some break points in the dll. Then you need another test application (script/ or vb program) that calls the dll...

So in your test script or vb you would do something like this...

Code:
Set oMyObject = CreateObject("dll_Name.class_Name") RetCode = oMyObject .FunctionInClass(Things to Pass)
Reply With Quote
  #5  
Old 01-09-2004, 01:06 PM
Nahom Nahom is offline
Newcomer
 
Join Date: Jan 2004
Posts: 18
Default

Quote:
Originally Posted by 00100b
Create a project group by first opening a standard EXE project. Then select the Add Project menu option (under File on the menu) and specify the DLL project to add.

Select the standard EXE project and use Project -> References to add a reference to the added DLL project.

In the standard EXE project, write the code that would instantiate the objects in the DLL and whatever code you wish to use to test the interface.

Use the normal debugging methods (ie Break Points, F8, etc) to step through the code.




Thanks
I appreciate it
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Activex Dll code for bitmaps HELP!! mrfortune General 2 11-21-2003 11:52 PM
Adding Code to ActiveX Dll Max_Power General 5 08-28-2003 07:46 AM
Debugging an ActiveX DLL VBLady General 1 03-27-2003 12:34 PM
Text formattting watkins General 16 04-23-2002 12:01 PM
Create ActiveX Dll JDT Tutors' Corner 0 06-07-2001 09:13 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->