Solved

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

Posted on 2009-04-07
3
1,175 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
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 new code templates in NetBeans IDE 8.0 for Windows.

734 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