|
-
July 8th, 2009, 09:59 AM
#1
Transfers
Hello, in Visual Studio only beginning.
And I can come here to convert between both types. I tried for example:
char* er; String^ pom;
er="NO";
pom=Convert::ToString(er);
so for me to pom write : True;
Please advice on how to convert char <=> String, string <=> integer, thank you!
-
July 8th, 2009, 11:23 AM
#2
Re: Transfers
pom = Marshal::PtrToStringAnsi(IntPtr((void*)er));
Integer to string: use ToString method.
String to integer: use Int32::Parse method.
-
July 10th, 2009, 02:06 AM
#3
Re: Transfers
Thank you very Alex F !!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|