Print this
window
AnsiString pathName = GetCurrentDir(); // I have found that getting the path name to the current directory does not work if you place this program in the StartUp
if (pathName[pathName.Length() - 1] != '\\') // To make it work, you have to have previously written the path name to the registry or to a file and then read it from here
pathName = pathName + "\\";
pathName = pathName + "WSCMainDLL.dll";
hinstDLL = LoadLibrary(pathName.c_str()); // Load up the dll, the return value will be the Handle to the module
if (!hinstDLL) // Didn't get the dll, notify some one
Application->MessageBox("Could not load ScreenPrint.dll, check path",
"Aborting", MB_OK);