• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1184
  • Last Modified:

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];
0
xuanspider
Asked:
xuanspider
  • 2
1 Solution
 
alb66Commented:
char buffer[100];
String^ str;

str = Marshal::PtrToStringAnsi( (IntPtr)buffer );
0
 
alb66Commented:
For greater details give a look at
http://msdn.microsoft.com/en-us/library/7b620dhe.aspx
0
 
xuanspiderAuthor Commented:
Good
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now