Requirements
Library installation
-
Unpack "CRM32Pro-win32-vs-X.YZ.rar" on a destination path (CRM32PRO_INST_DIR)
-
CRM32PRO_INST_DIR path must be in the system search path, the best way to do that is adding a new entry to the PATH environment variable:
-
right click on "My Computer"
-
click on Properties/Advanced/Environment Variables
-
under System variables, look for PATH entry, edit it adding CRM32PRO_INST_DIR value.
-
From now on "CRM32Pro.dll" is available for any application that uses it: SpacePong...
Compiling your own applications
-
To develop applications or compile the examples using Visual Studio, we have to add the CRM32PRO_INST_DIR to the include and library paths.
Usually, Visual Studio manages these directories using Tools/Options/Directories accesible from the main IDE window
-
Include "CRM32Pro.h" at the beginning of your code
-
Link against the main library:
-
"CRM32Pro.lib" to use the dynamic library version(CRM32Pro.dll)
or
-
"CRM32Pro.static.lib" to use the static library version
-
Link against the SDLmain library:
-
"sdlmain.lib" for console and windows applications without SDL log errors output
or
-
"sdlmainIO.lib" for console and windows applications with SDL log errors output
or
-
For MFC applications, this is not required
-
It is very important that runtime libraries on C/C++ code generation of Visual Studio will be set to "DLL multithreaded" (/MD switch) when you compile Release code or set to "DLL Debug multithreaded"(/MDd switch) when you compile Debug code.
-
In case of doubts, the Visual Studio projects to build the examples can be checked, used and modified.
Important notes
|