Windows cstring to char




















Active 4 years, 8 months ago. Viewed 25k times. Please help. Thank you. Improve this question. Chicko Bueno Chicko Bueno 2 2 gold badges 11 11 silver badges 24 24 bronze badges.

Add a comment. Active Oldest Votes. Improve this answer. Gregor Brandt Gregor Brandt 7, 35 35 silver badges 58 58 bronze badges.

The Collate method of CString is locale-sensitive and is often slower than Compare. Use Collate only where you must abide by the sorting rules as specified by the current locale. You can compare two CStrings by using these operators, as shown in the following example.

Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Is this page helpful? Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Visual C. Sign in to vote. Wednesday, November 14, PM. It should do. So, what's wrong? Do you get an error? And please if you get this advice from anywhere , don't use the CString::GetBuffer method at all for such a thing!!!

So, to come back to you problem, what is your problem? Gut Mikh Tappe wrote:. Posted Oct am led mike. If you must use fopen , then you should probably use a CStringA. Posted Oct am Mark Salsbery. There a various ways: 1. Copy Code. Posted Oct am zafersavas. Add your solution here.



0コメント

  • 1000 / 1000