c++ cli - New to coding and having trouble with "identifier "string" is undefined" error -


#include "myform.h" using namespace system::windows::forms;  [stathread]; void main(array<string^>^ args) {     application::enablevisualstyles();     application::setcompatibletextrenderingdefault(false);      organizer::myform form;     application::run(%form); } 

` keep getting error "identifier "string" undefined" how can fix this? im new coding , have minimal knowledge, appreciated

the .net managed system::string class starts capital "s".

you'll need namespace system:: or using namespace system; directive @ top of file. (which might there, , didn't copy web.)

now, said: if you're new coding, please favor , don't start c++/cli. either start c#, or plain c++. c++/cli intended .net managed code interact unmanaged c/c++ code. has complexities of c#, c++, , few of own, , therefore not language learn with.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -