Click here to Skip to main content
15,900,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMouse control funny Pin
Anonymous12-Oct-05 0:07
Anonymous12-Oct-05 0:07 
AnswerRe: Mouse control funny Pin
Anonymous12-Oct-05 23:22
Anonymous12-Oct-05 23:22 
QuestionSQL Server Service Pin
sirtimid11-Oct-05 23:26
sirtimid11-Oct-05 23:26 
QuestionHow to convert from 'class _variant_t' to 'struct tagVARIANT *'?? Pin
lavate malllik11-Oct-05 23:16
lavate malllik11-Oct-05 23:16 
AnswerRe: How to convert from 'class _variant_t' to 'struct tagVARIANT *'?? Pin
Rage12-Oct-05 5:56
professionalRage12-Oct-05 5:56 
QuestionHow to resolve the problem of _DebugHeapTag? Pin
chenxiujie11-Oct-05 22:55
chenxiujie11-Oct-05 22:55 
QuestionHow to convert a string from CString to LPTSTR Pin
cauvang11-Oct-05 22:06
cauvang11-Oct-05 22:06 
AnswerRe: How to convert a string from CString to LPTSTR Pin
Rage11-Oct-05 22:18
professionalRage11-Oct-05 22:18 
In case you can do with a LPCTSTR (which in most cases is safer), you can easily convert a CString to a LPCTSTR, the CString class provides an operator CString::operator LPCTSTR to achieve that.

CString MyCString;
LPCTSTR mystring=MyCString.operator LPCTSTR();


To force the conversion to a non constant string, use the GetBuffer and ReleaseBuffer functions.



~RaGE();
GeneralRe: How to convert a string from CString to LPTSTR Pin
cauvang12-Oct-05 1:15
cauvang12-Oct-05 1:15 
AnswerRe: How to convert a string from CString to LPTSTR Pin
toxcct11-Oct-05 22:25
toxcct11-Oct-05 22:25 
GeneralRe: How to convert a string from CString to LPTSTR Pin
cauvang12-Oct-05 0:43
cauvang12-Oct-05 0:43 
GeneralRe: How to convert a string from CString to LPTSTR Pin
toxcct12-Oct-05 0:54
toxcct12-Oct-05 0:54 
GeneralRe: How to convert a string from CString to LPTSTR Pin
cauvang12-Oct-05 1:07
cauvang12-Oct-05 1:07 
AnswerRe: How to convert a string from CString to LPTSTR Pin
toxcct12-Oct-05 1:45
toxcct12-Oct-05 1:45 
GeneralRe: How to convert a string from CString to LPTSTR Pin
icabod12-Oct-05 1:12
icabod12-Oct-05 1:12 
GeneralRe: How to convert a string from CString to LPTSTR Pin
Tim Smith12-Oct-05 4:03
Tim Smith12-Oct-05 4:03 
AnswerRe: How to convert a string from CString to LPTSTR Pin
Roger Stoltz12-Oct-05 1:53
Roger Stoltz12-Oct-05 1:53 
GeneralRe: How to convert a string from CString to LPTSTR Pin
cauvang12-Oct-05 15:21
cauvang12-Oct-05 15:21 
Questionfile handling Pin
karmendra_js11-Oct-05 21:56
karmendra_js11-Oct-05 21:56 
AnswerRe: file handling Pin
Bob Stanneveld11-Oct-05 22:53
Bob Stanneveld11-Oct-05 22:53 
GeneralRe: file handling Pin
karmendra_js11-Oct-05 23:07
karmendra_js11-Oct-05 23:07 
GeneralRe: file handling Pin
Bob Stanneveld12-Oct-05 6:14
Bob Stanneveld12-Oct-05 6:14 
AnswerRe: file handling Pin
krmed12-Oct-05 2:45
krmed12-Oct-05 2:45 
QuestionNot been able to return value from a function in a DLL Pin
Amarelia11-Oct-05 21:42
Amarelia11-Oct-05 21:42 
AnswerRe: Not been able to return value from a function in a DLL Pin
Prakash Nadar11-Oct-05 22:59
Prakash Nadar11-Oct-05 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.