/simple_win32_dll_example

Simple example on creating and linking to a DLL on Windows

Primary LanguageC++MIT LicenseMIT

Simple win32 DLL Example

Simple example on creating and linking to a DLL on Windows

Running

First build the DLL with build_dll.bat. Running this creates the DLL file (.dll) and the import library (.lib) file.

build_dll

Next build the example program. Running build.bat with no arguments will default to the implicit linking example. The other option is to provide EXPLICIT as an argument to compile the explicit linking example. It is also possible to explicitly state which example to use.

# Three options
build
build IMPLICIT
build EXPLICIT

The executable created will be called run_example.exe.

run_example