Home > Back-end >  MFC release version exe release problem
MFC release version exe release problem

Time:10-16

Great god to their consult a problem bothering me for a long time, my MFC (using dynamic library) compiled into the release of the exe can run on your machine, but in other people's machines run on either a flash, either directly to stop, I use the depends less test said a DCOMP. DLL dynamic library, but I didn't find on the net, so I changed the project to static library but compiled on other machines still cannot run, stopped directly, I use the depends test, found the library, less still surprised with the static MFC DLL library? Why also ask?? If lack of library he should prompt lack XXXDLL, but this program in another machine without prompt stopped directly, is this why? Any good debugging method, encountered such a situation? Thank you very much!!

CodePudding user response:

Retest today, can run on my machine, put his pack, and then copy to others on the machine installation, the installation is successful, but failed, run into debugging, debugging didn't find debugging information, but no other error message, and finally it is normal to exit return to zero,,, don't know what's going on,,,, pray god give advice or comments!!!!!!

CodePudding user response:

What do you use version of vs,

Support library is compatible with other platforms.

CodePudding user response:

To install your VS environment in someone else's try on the machine

CodePudding user response:

refer to the second floor BJTBJT response:
what do you use versions of vs,

Support library is compatible with other platforms.

I am using vs2010,,,, should not vs problem??????? After the packaging is not as vs. It doesn't matter,,,

CodePudding user response:

Static load to the LIB files, header files, and then call directly by the.lib file,

Still have a kind of static, directly in the program written to DLL command, later call directly contains the header files, to explain the DLL command (DLL)

Dynamic, it is in the program, join the DLL file directly, and then write DLL command, DLL function call,

CodePudding user response:

reference 5 floor nbzip reply:
static loading LIB files, header files, and then call directly by the.lib file,

Still have a kind of static, directly in the program written to DLL command, later call directly contains the header files, to explain the DLL command (DLL)

Dynamic, it is in the program, join the DLL file directly, and then write DLL command, DLL function call,

This I know, thank you! I don't know you have no other way?? Thank you very much!
  • Related