To whom it may concern:
thanks for reading the message, I'm using the wxwidgets in c++. Now I got the problem of the error C4996 like
C4996
'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
when I start to write my project, the error didn't occurred. But when things keep going, the error occurs. I write the wxApp class with "MyApp.h" and "MyApp.cpp", and I wrote a lots of the static functions and Variables in the myapp class. will it lead to the problems? btw these function and Variables I also used in dialogs or ui. here is the example of my "cameraDialog.cpp"
```
#include "CameraTestDialog.h"
#include "MyApp.h"
string CameraTestDialog::getSolutionId(string solutionNameValue) {
sqlCmd = "Select SolutionId from solutionInfos where SolutionName=\"";
//sqlCmd += MyApp::GbkToUtf8(SolutionChoice->GetStringSelection().ToStdString().c_str()) + "\";";
sqlCmd += MyApp::GbkToUtf8(solutionNameValue.c_str()) + "\";";
//sqlCmd += solutionParams->changedToSolution + "\";";
string solutionId = cameraTestSql->SelectData(sqlCmd.c_str(), 1, msg);
if (solutionId != "") return MyApp::Split(solutionId, "\x5")[0];
else return solutionId;
}
```
how can I solve the problems. Now I use the _CRT_SECURE_NO_WARNINGS to let my work go on. But still I need to solve this.
thanks for your help.