Re: How can drivers be called BEFORE call InitInstance
- From: "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
- Date: Tue, 21 Apr 2009 07:27:43 -0400
"Engineer" <ebandch@xxxxxxx> wrote in message news:%23HR538jwJHA.956@xxxxxxxxxxxxxxxxxxxxxxx
The phenomenon is that even though I believe I have removed all calls to the old motion controller some how my program generates the "Please reboot to start the driver" error message and exits without ever showing any window. Naturally I figured I would use the debugger to track down the afending call and remove it. But the error message comes up even before any code I can find is run.
You are probably linking to an import .lib file associated with the DLL for the hardware. This runs the DLL when your program is loaded. Removing calls to this DLL will not prevent the DLL from being loaded. Only removing the .lib from your linker settings will do that. Review the linker settings, and/or search for #pragma comment(lib, ....), and/or check to see if a lib file is included in the project files list.
--
Scott McPhillips [VC++ MVP]
.
- Follow-Ups:
- Re: How can drivers be called BEFORE call InitInstance
- From: Chris H
- Re: How can drivers be called BEFORE call InitInstance
- References:
- How can drivers be called BEFORE call InitInstance
- From: Chris H
- Re: How can drivers be called BEFORE call InitInstance
- From: Joseph M . Newcomer
- Re: How can drivers be called BEFORE call InitInstance
- From: Engineer
- How can drivers be called BEFORE call InitInstance
- Prev by Date: Re: Programmatically uncheck CDateTimeCtrl?
- Next by Date: problem in IUccPlatform (problem in CoCreateInstance )
- Previous by thread: Re: How can drivers be called BEFORE call InitInstance
- Next by thread: Re: How can drivers be called BEFORE call InitInstance
- Index(es):
Relevant Pages
|