Home > Software engineering >  The DLL generated when the warning LNK4049 and warning LNK4217 problem
The DLL generated when the warning LNK4049 and warning LNK4217 problem

Time:10-19

With VS2010 created a is used to generate DLL project, the project will refer to the third party in the static library, compile links will appear when warning LNK4049 and warning LNK4217 these two warning, but can generate DLL, but generated DLL has not registered, the third party in a static library QT projects can be quoted, I don't know what reason be? Turn to the great god,

CodePudding user response:

DLL registered and what is the relationship between static library reference?
DllRegisterServer have export?

CodePudding user response:

Warning LNK4049 and warning LNK4217 this two warning may be static library reference compiler configuration is not correct, and the generated DLL at the time of registration will be submitted to the DllRegisterServer failed 0 x80040200 registration failed error, don't know what causes,

CodePudding user response:

In a 64 - bit Windows:
64 exe and DLL in the directory c: \ Windows \ sys tem32 directory.
32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory.
So pay attention to:
In win64 system registered under 32-bit ocx DLL to 32 ocx or copy the DLL to the c: \ Windows \ syswow64 \ directory,
And registered to c: \ Windows \ syswow64 \ regsvr32 XXXXXXX ocx or DLL
  • Related