Microsoft KB Archive/100661

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:13, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q100661 to Microsoft KB Archive/100661 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

INF: Sample Code Demonstrates Simple Dynamic-Link Library

PSS ID Number: Q100661 Article last modified on 06-28-1993


The information in this article applies to:
- Microsoft Visual C++ for Windows NT, version 1.0

Summary: The SIMPLDLL sample provides a generic dynamic-link library (DLL) template. The sample also includes two small test applications, LINKTEST and LOADTEST, that demonstrate load-time linking (through a DLL import library) and dynamic loading, respectively.

More Information: The file THE_DLL contains a skeleton DLL entry point and five exported functions that have varying parameter lists. It also uses a resource file that contains a dialog box template. LINKTEST is a small application that links with import library for THE_DLL and supports calling into THE_DLL by selecting items from a menu. LOADTEST is a small application that loads THE_DLL at run time and calls the GetProcAddress() function to retrieve the addresses of the functions THE_DLL exports. LOADTEST also supports calling into the DLL by selecting items from a menu.

Additional reference words: 1.00 DLLEntryPoint GetModuleFileName LoadLibrary GetProcAddress