Solved

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

Posted on 2009-04-07
3
1,169 Views
Last Modified: 2013-12-14
How to convert a char array to string using c++.net 2008?

char str[256];
0
Comment
Question by:xuanspider
  • 2
3 Comments
 
LVL 19

Expert Comment

by:alb66
ID: 24085374
char buffer[100];
String^ str;

str = Marshal::PtrToStringAnsi( (IntPtr)buffer );
0
 
LVL 19

Accepted Solution

by:
alb66 earned 250 total points
ID: 24085385
For greater details give a look at
http://msdn.microsoft.com/en-us/library/7b620dhe.aspx
0
 

Author Closing Comment

by:xuanspider
ID: 31567402
Good
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question