Link to home
Start Free TrialLog in
Avatar of xuanspider
xuanspider

asked on

How to convert a char array to string using c++.net 2008?

How to convert a char array to string using c++.net 2008?

char str[256];
Avatar of alb66
alb66
Flag of Italy image

char buffer[100];
String^ str;

str = Marshal::PtrToStringAnsi( (IntPtr)buffer );
ASKER CERTIFIED SOLUTION
Avatar of alb66
alb66
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xuanspider
xuanspider

ASKER

Good