I have never quite been able to wrap my head around pointers, strings, chars etc. I need help with this error. Here is the code snippet...
string H = "פטיש";
string G = "Σφυρί";
bool Interphase(int argc, char * args[]); //DLL import from Analytical.a
char * Hcopy = new char[H.length() + 1];
std::strcpy(Hcopy, H.c_str());
char * Gcopy = new char[G.length() + 1];
std::strcpy(Gcopy, G.c_str());
while (Interphase(147, Hcopy) == true || Interphase(148, Gcopy) == true)//C2664 here!
{// Do stuff...}
Please note the code is altered to reflect the error only.
Also how to compile in Visual Studio 2012 Ultimate without
Warning C4566: character represented by universal-character-name '\u05E9' cannot be represented in the current code page (1252)
Thanks.