Handling the best practices for processing a string in the VC?

Since I am new to Visual C, there are many types of strings that can be processed. When I use a certain type and continue to code, but in the next step, there are other types of built-in functions & It always needs to convert one type of string to other string. I found so many blogs, but when I saw so many answers, I was confused. Tried, but some are working & some are not.

Please provide your answer or link to provide a final solution for processing different types of strings in visual c.

< /div>

It depends on what you are doing. It is a pain, no matter what you do, you will have to deal with the conversion.

>For large In most cases, the std::string class can meet almost any need, and anyone accustomed to c can easily read it.
>If you are using MFC, then cstring will be the most common and normal choice
>For C Cli System:: String is the standard
>All windows apis that use strings will use null-terminated cstyle strings, but depending on the framework you are using, you may not have to call many APIs directly, especially if you use .net>I believe there are several other string classes in ATL, but I don’t use the library much.

Because I am new to Visual C, so There are many types of strings to deal with. When I use a certain type and continue to encode but in the next step, there are built-in functions that use other types & it always needs to convert one type of string to other strings. I found so Many blogs, but when I see so many answers, I am confused. Try, but some are working & some are not.

Please provide your answer or link for visual c Dealing with different types of strings provides the final solution.

It depends on what you are doing. It is a pain, no matter what you do, you will Have to deal with the conversion.

>For most cases, the std::string class can meet almost any need, and anyone who is used to c can easily read it.
>If you are Using MFC, then cstring will be the most common and normal choice
>For C Cli System::String is the standard
>All windows apis that use strings will use null-terminated cstyle strings, but according to what you are doing Use the framework to work, you might There is no need to call many APi directly, especially if you use .net> I believe there are several other string classes in ATL, but I don’t use the library much.

p>

Leave a Comment

Your email address will not be published.