Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
notepad++ shortcuts 6 134
populate value from mongo db in java 98 280
Eclipse XML hightlightning 5 45
Unable to start eclipse ? 17 87
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. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

747 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now