Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. HyprLogik

    How correctly copy CString to char * variable.

    strContent is type-cast to a FAR t_char pointer, then to a char pointer. The reason it works is because during cast, the only part of the CString structure that aligns with a char[] is the string buffer itself. Otherwise, you wouldn't be able to do this since the compiler would complain that...
  2. HyprLogik

    How correctly copy CString to char * variable.

    char* message; CString strContent; //... message = (char*)(LPCTSTR)strContent; // That's it!

Part and Inventory Search

Back
Top