[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2009-04-07
3
Medium Priority
?
1,179 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

650 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