| || |
QALOAD V 05.05.01 Build 186
I have just started using this application so please forgive me of what I ask.
I continue to receive an error MSG: warning C4996: 'strcpy' was declared deprecated. I have added #define _CRT_SECURE_NO_DEPRECATE 1 but when I do this I get another error. error C2064: term does not evaluate to a function taking 2 arguments. Can someone help with this question? Thanks!
Re: QALOAD V 05.05.01 Build 186
I figured it out here is what happened... if someone has the same issue.
// get select plan
std::string planStr = DO_GetUniqueString( "name=\"plan.idAndDescription\"", "\" selected>" );
size_t found = planStr.find_last_of('"');
planStr = planStr.substr(found+1);
planChar = new char [planStr.size()+1];
strcpy (planChar, planStr.c_str());
// get select state
std::string stateStr = DO_GetUniqueString( "name=\"state.idAndDescription\"", "\" selected>" );
found = stateStr.find_last_of('"');
stateStr = stateStr.substr(found+1);
stateChar = new char [stateStr.size()+1];
strcpy (stateChar, stateStr.c_str());
SCRIPT_MESSAGE ("last name", lname)
I forgot the ; behind the last line
SCRIPT_MESSAGE(“last name”, lname);