How To Call LoadModule() API Function from Visual Basic (83350)
The information in this article applies to:
- 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
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q83350 SUMMARY
This article demonstrates how to call the Windows LoadModule() API function
from a Visual Basic program. The LoadModule() API function loads and
executes a Windows program or creates a new instance of an existing Windows
program. The code example below shows an example of calling WINVER.EXE with
the LoadModule() function call, but you can change it to any executable
file.
NOTE: The Shell function provided in Visual Basic provides a functionality
similar to and simpler than the technique explained in this article.
NOTE: Only 16-bit implementations of VBA support the sample code in this
article.
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbhowto kbprogramming KB83350 |
---|
|