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

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -