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

C / C++ / MFC

 
AnswerRe: convert from 'LPCTSTR' to 'const char *' Pin
Rajesh R Subramanian6-Dec-11 2:00
professionalRajesh R Subramanian6-Dec-11 2:00 
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 
It is no use printing a message such as the above when something fails, as it provides no useful information. You need to capture the system error code from GetLastError() and print its details to find out why your program fails. I am assuming that you have all the necessary libraries installed on your PC in the first place.

Oops: sorry you need to interpret your HRESULT as CPallini suggests.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman



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 
GeneralRe: win32 edit box, validating text Pin
Randor 5-Dec-11 17:37
professional Randor 5-Dec-11 17:37 
GeneralRe: win32 edit box, validating text Pin
jkirkerx6-Dec-11 7:00
professionaljkirkerx6-Dec-11 7:00 
QuestionPyramid of Asterisk - Reverse? Pin
Yolande MR5-Dec-11 8:34
Yolande MR5-Dec-11 8:34 
QuestionRe: Pyramid of Asterisk - Reverse? Pin
Albert Holguin5-Dec-11 8:41
professionalAlbert Holguin5-Dec-11 8:41 
AnswerRe: Pyramid of Asterisk - Reverse? Pin
Richard MacCutchan5-Dec-11 8:43
mveRichard MacCutchan5-Dec-11 8:43 
GeneralRe: Pyramid of Asterisk - Reverse? Pin
Yolande MR5-Dec-11 8:47
Yolande MR5-Dec-11 8:47 
AnswerRe: Pyramid of Asterisk - Reverse? Pin
User 74293385-Dec-11 8:55
professionalUser 74293385-Dec-11 8:55 

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.