Visual C++ Code Snippets

Spread the word!

CodeSnippet#1

A Textbox’s text is of CLI String type (System::String^) and not C++ String (std::string). Here an example on how to convert one type into the other:

CodeSnippet#2

Take a string, convert each character into the corresponding ascii value, and convert all back to a string.

Be the first to comment

Leave a Reply

Your email address will not be published.


*