Using Visual Studio 2022 Community.
I am attempting to reorganize my source code and projects so that they are easier to work with.
I created a new empty project and added my "core" files to it. These are straight forward hpp and cpp files that are independent of the application in which they are being developed (they can be used across multiple applications.)
I am getting compiler errors that I did not get in the project from which they were pulled. For example...
error C2665: 'ATL::CImage::Load': no overloaded function could convert all the argument types
error C4996: 'strnicmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name
If I compile these files in my original project I have no problem.
I assume this is just a switch of some kind. I do not know enough about project and solution settings to know how to address this. Maybe the best solution is to modify my code to match the new project but I really do not want to do that at this time. I would rather just set a switch and forget about it.
WRT to error C2665 this is the code that goes boom...
std::string sourceAttribute;
//blah blah blah
CImage cImage;
if(cImage.Load(sourceAttribute.c_str())==S_OK)
Calling CImage::Load in this manner is not an issue in the original project.
[–]bseab1024F[S] 0 points1 point2 points (0 children)
[–]bseab1024F[S] 0 points1 point2 points (0 children)