cstring
How do I swap an MFC CString?
OK, so I\'m all sold on the copy-and-swap idiom and I think I mostly know how to implement it. However, or codebase uses MFC\'s CString class as string and this ain\'t gonna change.[详细]
2023-04-11 02:23 分类:问答Simply encrypt a string in C
I\'m trying to encrypt a query string on a game I\'m making when opening a url. It doesn\'t have to be complicated, in fact since I\'m working from a game engine 开发者_开发百科it needs to be as simpl[详细]
2023-04-10 14:59 分类:问答PInvoke with a CString
I\'m trying to use P/Invoke to call functions in an unmanaged C++ DLL from C#. The C++ DLL uses CString\'s as function parameters and returns, such as[详细]
2023-04-10 12:05 分类:问答In C, Save one char at a time
I am processing a string in which each word is separated by spaces. The < indicates it is a input redirection, and > indicates it is a output redirection.[详细]
2023-04-09 09:23 分类:问答Finding a match in an array using strcmp
im trying to compare words of an array using strcmp.Im trying to get each word that app开发者_开发技巧ears more than once in the array to print out only once, so i can determine the number of unique w[详细]
2023-04-05 10:08 分类:问答C++ LibCurl - Converting CURLcode into a CString
What would be the easiest way to convert the \"res\" variable (CURLcode) into a CString? Here\'s the standard example which compiles fine on my machine but I want to use this in a MFC app and display[详细]
2023-03-30 07:56 分类:问答Conversion from CString to char*/TCHAR*
I am well aware of techniques to convert CString to a C-style character. One of them is to use strcpy/_tcscpy, and others include using CStrBuf.[详细]
2023-03-30 03:10 分类:问答CString Parsing Carriage Returns
Let\'s say I have a string that has multiple carriage returns in it, i.e: 394968686 10063038开发者_运维百科2[详细]
2023-03-27 13:41 分类:问答Reversing a string, weird output c++
Okay, so I\'m trying to reverse a C style string in C++ , and I\'m coming upon some weird output. Perhaps someone can shed some light?[详细]
2023-03-19 11:46 分类:问答How to add two pointers?
How to add parameterB and pictureName? I got an error that says: \'+\': cannot add two pointers. CString parameterA = _T(\"\\\"\") + mycustompath + _T(\"identify.exe\\\"\");[详细]
2023-03-18 01:37 分类:问答