Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test a COM object
Message
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00325923
Message ID:
00326526
Views:
21
>How do you test a COM object in the development environment? I want to call methods and check the return values without putting it into service.
>
>Thanx,
>Charlie

With your DLL project already loaded, add a new standard EXE project in the same VB environement.
Add a reference to your DLL (VB create a temp entry in the registry)
Write some code to use your DLL.
Now, make sure that your EXE project is the startup project by right cliking on it in the project explorer window and select Startup Project (or something like that. I don't have VB in front of me right now).
Next press F5 and, voilà !
Set breakpoints and you can step from your EXE code to your DLL code.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Previous
Reply
Map
View

Click here to load this message in the networking platform