Re: How can drivers be called BEFORE call InitInstance

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"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]

.



Relevant Pages

  • RE: fax notification
    ... Thank you for posting in the SBS newsgroup. ... message "mail system wrong DLL", and the inbound fax cannot was deliver to ... Please copy the exact error message and paste it in your reply. ...
    (microsoft.public.windows.server.sbs)
  • Re: Redirecting stderr
    ... console application that makes calls to the DLL. ... That sounds like a question more appropriate for a Windows ... libraries). ... it doesn't print an error message; ...
    (comp.lang.c)
  • Re: DllImport with ASP.NET ?
    ... > attibute didn't work. ... It was exactly the same error message. ... >> is it possible to use DllImport to call a DLL in ASP.NET? ... >> public static extern int PaqGetVersion(); ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: C++/TCL Need Solution to Compile Error c2784
    ... jnior_300.h"}" and created other errors where it didn't even compile. ... Error Message: ... Which appears to be an error because it depending on the SDK dll ... DLL properties to see dependencies and where the dependencies should ...
    (comp.lang.tcl)
  • Re: C++/TCL Need Solution to Compile Error c2784
    ... Error Message: ... first nonwhite space ... Which appears to be an error because it depending on the SDK dll ... DLL properties to see dependencies and where the dependencies should ...
    (comp.lang.tcl)