How To Use Windows NT WinDbg.exe with Visual Basic (131007)
The information in this article applies to:
- the operating system: Microsoft Windows NT 3.5
- Microsoft Win32 Software Development Kit (SDK) 3.5
- Microsoft Visual Basic Standard Edition for Windows 1.0
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q131007 SUMMARY
Many Visual Basic application developers are moving to Windows NT as their
development platform because of its robustness and excellent multitasking
capabilities. This article shows by example how Visual Basic developers can
use the Windbg debugger to debug a dynamic link library (.DLL file) or
custom control (.VBX file) called from a Visual Basic application running
under Windows NT.
CodeView for Windows doesn't run under Windows NT because CodeView uses a
VxD (Virtual Device Driver) not supported by Windows NT.
For information on how to use CodeView for Windows to debug Visual Basic
Custom controls (.VBX files), please see the following article in the
Microsoft Knowledge Base:
75612
: How to Use CodeView for Windows (CVW.EXE) with Visual Basic
WARNING: Using Windbg as described in this article is not supported by
Microsoft, so you should save all source files before using this procedure.
Windbg should exit without hanging the system. However, you should not
modify your Visual Basic source while running under Windbg unless you
always make sure you have saved any changes before running the code. This
procedure has been tested on Windows NT version 3.5. Preliminary testing on
Windows NT version 3.51 shows problems when switching to Visual Basic while
running under Windbg, so you should not use this procedure with Windows NT
version 3.51.
REFERENCES
"Programming Windows: the Microsoft Guide to Writing Applications for
Windows 3," by Charles Petzold, Microsoft Press, 1990.
"Peter Norton's Windows 3.0 Power Programming Techniques," by Peter
Norton and Paul Yao, Bantam Computer Books, 1990.
"Microsoft Windows Software Development Kit: Programming Tools,"
version 3.0.
WINSDK.HLP file shipped with Microsoft Windows 3.0 Software
Development Kit.
Tools User Guide shipped with the Win32 SDK.
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbhowto KB131007 |
---|
|