I have some problems when I try to start the class driver with the Daconfig.dll . using Borland C 5.02, and when I debug, or build the application, I get an error message like this :
!Error: Unresolved external '_InstallDeviceService' referenced from c:\projects\testi2c\parallelport.obj
in despite I added DaConfig.lib in the project, I included dainstall.h in the code, and I added
the correct DLLs in folders.
This is a known issue with Driver::Agent 1.15. You can use the following workaround to call DaConfig. Note: This procedure assumes that you have linked implicitly against DaConfig.DLL in some other place in your code. If not, you can use LoadLibrary() rather than GetModuleHandle().
typedef DEVSTATUS (_cdecl *WorkaroundInstallDeviceService)
WorkaroundInstallDeviceService InstallDevService = (WorkaroundInstallDeviceService)
(WorkaroundInstallDeviceService)( _T("DeviceName"), _T("DisplayName"), _T("Path"), -1 );