c++ cli - Syntax error : identifier 'String' -
we received piece of code assignment, , after spending lot of time fixing problems within, ended syntax error : identifier 'string'
. everywhere on web, people using std::string
, not code referring since function called c# project using string
object.
here declaration :
int findwindow(string ^captiontext,intptr ^%phwnd, int %left,int %top,int %right,int %bottom);
and have no idea how fix one. there other errors such as
error c2062: type 'int' unexpected ... error c2065: 'intptr' : undeclared identifier error c2065: 'string' : undeclared identifier ...
etc.
any appreciated.
should mention errors have nothing assignment?
use system::string
, system::intptr
or write using namespace system;
Comments
Post a Comment