Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Accessing file from a remote location Pin
pix_programmer6-Dec-11 19:30
pix_programmer6-Dec-11 19:30 
AnswerRe: Accessing file from a remote location Pin
Rajesh R Subramanian6-Dec-11 20:03
professionalRajesh R Subramanian6-Dec-11 20:03 
GeneralRe: Accessing file from a remote location Pin
KjellKod.cc6-Dec-11 20:16
KjellKod.cc6-Dec-11 20:16 
SuggestionRe: Accessing file from a remote location Pin
David Crow7-Dec-11 6:24
David Crow7-Dec-11 6:24 
Questionconvert from 'LPCTSTR' to 'const char *' Pin
Le@rner6-Dec-11 0:31
Le@rner6-Dec-11 0:31 
AnswerRe: convert from 'LPCTSTR' to 'const char *' Pin
Code-o-mat6-Dec-11 1:31
Code-o-mat6-Dec-11 1:31 
AnswerRe: convert from 'LPCTSTR' to 'const char *' Pin
Richard MacCutchan6-Dec-11 1:48
mveRichard MacCutchan6-Dec-11 1:48 
AnswerRe: convert from 'LPCTSTR' to 'const char *' Pin
Rajesh R Subramanian6-Dec-11 2:00
professionalRajesh R Subramanian6-Dec-11 2:00 
LPCTSTR may either be a const char* or a const wchar_t* based on your configuration. If you've run into this conversion error, that most probably means you're building for Unicode, and so LPCTSTR is const wchar_t*, which cannot be magically converted to const char*

I recommend that you use Unicode. Additionally, read these two articles, which will clear up a lot of things to you:

The Complete Guide to C++ Strings, Part I - Win32 Character Encodings[^]
The Complete Guide to C++ Strings, Part II - String Wrapper Classes[^]
"Real men drive manual transmission" - Rajesh.

QuestionSendMessage with WM_SETFOCUS and SetFocus() function Pin
msr_codeproject5-Dec-11 23:45
msr_codeproject5-Dec-11 23:45 
AnswerRe: SendMessage with WM_SETFOCUS and SetFocus() function Pin
Richard MacCutchan5-Dec-11 23:50
mveRichard MacCutchan5-Dec-11 23:50 
AnswerRe: SendMessage with WM_SETFOCUS and SetFocus() function Pin
Albert Holguin6-Dec-11 3:34
professionalAlbert Holguin6-Dec-11 3:34 
Questionwhy pApplication.CreateInstance( _T("Excel.Application") ) FAILED? Pin
Le@rner5-Dec-11 19:45
Le@rner5-Dec-11 19:45 
AnswerRe: why pApplication.CreateInstance( _T("Excel.Application") ) FAILED? Pin
CPallini5-Dec-11 21:47
mveCPallini5-Dec-11 21:47 
GeneralRe: why pApplication.CreateInstance( _T("Excel.Application") ) FAILED? Pin
Le@rner5-Dec-11 22:17
Le@rner5-Dec-11 22:17 
GeneralRe: why pApplication.CreateInstance( _T("Excel.Application") ) FAILED? Pin
Richard MacCutchan5-Dec-11 22:35
mveRichard MacCutchan5-Dec-11 22:35 
GeneralRe: why pApplication.CreateInstance( _T("Excel.Application") ) FAILED? Pin
CPallini5-Dec-11 22:38
mveCPallini5-Dec-11 22:38 
GeneralRe: why pApplication.CreateInstance( _T("Excel.Application") ) FAILED? Pin
Richard MacCutchan5-Dec-11 23:47
mveRichard MacCutchan5-Dec-11 23:47 
GeneralRe: why pApplication.CreateInstance( _T("Excel.Application") ) FAILED? Pin
CPallini5-Dec-11 22:36
mveCPallini5-Dec-11 22:36 
GeneralRe: why pApplication.CreateInstance( _T("Excel.Application") ) FAILED? Pin
Le@rner17-Jan-12 1:17
Le@rner17-Jan-12 1:17 
GeneralRe: why pApplication.CreateInstance( _T("Excel.Application") ) FAILED? Pin
CPallini17-Jan-12 1:36
mveCPallini17-Jan-12 1:36 
GeneralRe: why pApplication.CreateInstance( _T("Excel.Application") ) FAILED? Pin
Sampath57927-Aug-19 1:15
Sampath57927-Aug-19 1:15 
Questionwin32 edit box, validating text Pin
jkirkerx5-Dec-11 9:20
professionaljkirkerx5-Dec-11 9:20 
AnswerRe: win32 edit box, validating text Pin
David Crow5-Dec-11 10:52
David Crow5-Dec-11 10:52 
GeneralRe: win32 edit box, validating text Pin
jkirkerx6-Dec-11 6:46
professionaljkirkerx6-Dec-11 6:46 
AnswerRe: win32 edit box, validating text Pin
enhzflep5-Dec-11 17:21
enhzflep5-Dec-11 17:21 

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.