I had a 16-bit application which uses LoadLibrary() to load a printer driver(HPPCL5MS.drv) and it worked fine. I converted the application to 32-bit. The application fails to load HPPCL5MS.DRV using LoadLibrary() in Win95. GetLastEror() return error 31. Can someone help me on this?
Hare is part of the code:
hPrintDriver = LoadLibrary("c:\\windows\\system\\hppcl5ms.drv");
if (hPrintDriver == NULL)
dwLastError = GetLastError();
// Get a DEVMODE structure
LPFNDEVMODE lpfnDevMode = (LPFNDEVMODE)GetProcAddress(hPrintDriver, "ExtDeviceMode");