Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i work in visual studio 2019, but i still use traditional c++ like character array instead of CString and i write unmanaged code, i work in mfc and i always type in CRT_SECURE_NO_WARNINGS in preprocesser definitions under C/C++ to make it unmanaged, now it works great in debug mode but when i change to release mode, even with CRT_SECURE_NO_WARNINGS there, it still gives errors.

What I have tried:

i tried some stuff but it didn't work
Posted
Updated 19-Jan-20 7:19am
Comments
Richard MacCutchan 19-Jan-20 10:46am    
"it still gives errors."
Sorry, but unless you show the actual code and the associated error message we cannot help you.

"i tried some stuff but it didn't work"
That is an even less helpful statement.
RickZeeland 19-Jan-20 12:41pm    
Are you sure the project properties are the same for Debug and Release ?
[no name] 19-Jan-20 12:46pm    
Check the build actions for "release" on the various components. There are "debug" and "release" settings. Architecture has to be compatible. Sometimes explicitly compiling each project (before a build) helps. Delete all old (release) binaries before the next build.

1 solution

Check carefully ALL project settings of your release build and compare with the debug settings.

My first guess is that you have some preprocessor settings missed or different in release build. Some more details as the complete error messages would very very helpful.

Another common issue is, that some pathes to sources or libs are missing.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900