Click here to Skip to main content
15,880,651 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CDC Problem with coordinates Pin
Argonia15-Jan-13 21:23
professionalArgonia15-Jan-13 21:23 
QuestionDhcpRequestParams() Pin
Man in the mirror13-Jan-13 19:46
Man in the mirror13-Jan-13 19:46 
AnswerRe: DhcpRequestParams() Pin
Richard MacCutchan13-Jan-13 22:11
mveRichard MacCutchan13-Jan-13 22:11 
QuestionSOLVED From HANDLE to BITMAPINFO - another basic question for gurus Pin
Vaclav_13-Jan-13 5:30
Vaclav_13-Jan-13 5:30 
AnswerRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Richard MacCutchan13-Jan-13 5:44
mveRichard MacCutchan13-Jan-13 5:44 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Vaclav_13-Jan-13 6:08
Vaclav_13-Jan-13 6:08 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Richard MacCutchan13-Jan-13 6:32
mveRichard MacCutchan13-Jan-13 6:32 
QuestionHow to get detail error info from E_FAIL? Pin
Falconapollo11-Jan-13 21:23
Falconapollo11-Jan-13 21:23 
When I use ATL in MFC Application(Don't ask me why, just because I like), sometimes I got the error code: E_FAIL. However, it's almost useless for me to locate the specific reason.

I have googled so many times, but found nothing related. I thought there should be something like try{} catch{} in ATL.

Here's some sample code:

C++
CAxWindow  m_wndView;  // ActiveX host window class.
CComPtr<IWMPPlayer>  m_spWMPPlayer;  // Smart pointer to IWMPPlayer interface.

AtlAxWinInit();
CComPtr<IAxWinHostWindow>  spHost;
HRESULT  hr;
CRect rcClient;
GetClientRect(&rcClient);
m_wndView.Create(m_hWnd, rcClient, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN, WS_EX_CLIENTEDGE);
//when I switch to Static Link to ATL from Dynamic Link to ATL, I always get E_FAIL
hr = m_wndView.QueryHost(&spHost);

AnswerRe: How to get detail error info from E_FAIL? Pin
«_Superman_»11-Jan-13 23:43
professional«_Superman_»11-Jan-13 23:43 
GeneralRe: How to get detail error info from E_FAIL? Pin
Falconapollo12-Jan-13 0:00
Falconapollo12-Jan-13 0:00 
GeneralRe: How to get detail error info from E_FAIL? Pin
Jochen Arndt13-Jan-13 21:05
professionalJochen Arndt13-Jan-13 21:05 
AnswerRe: How to get detail error info from E_FAIL? Pin
Argonia14-Jan-13 2:01
professionalArgonia14-Jan-13 2:01 
QuestionVideo Capture using DirectShow only works for first time.? Pin
mbatra3110-Jan-13 20:25
mbatra3110-Jan-13 20:25 
AnswerRe: Video Capture using DirectShow only works for first time.? Pin
_AnsHUMAN_ 11-Jan-13 2:05
_AnsHUMAN_ 11-Jan-13 2:05 
AnswerRe: Video Capture using DirectShow only works for first time.? Pin
Vaclav_14-Jan-13 16:10
Vaclav_14-Jan-13 16:10 
Questionhow to unsigned int64 to two unsigned int32 values Pin
vishalgpt9-Jan-13 22:22
vishalgpt9-Jan-13 22:22 
AnswerRe: how to unsigned int64 to two unsigned int32 values Pin
Jochen Arndt9-Jan-13 23:06
professionalJochen Arndt9-Jan-13 23:06 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pin
vishalgpt9-Jan-13 23:32
vishalgpt9-Jan-13 23:32 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pin
Jochen Arndt9-Jan-13 23:58
professionalJochen Arndt9-Jan-13 23:58 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pin
vishalgpt10-Jan-13 0:08
vishalgpt10-Jan-13 0:08 
AnswerRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pin
«_Superman_»10-Jan-13 18:39
professional«_Superman_»10-Jan-13 18:39 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pin
vishalgpt14-Jan-13 15:25
vishalgpt14-Jan-13 15:25 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pin
«_Superman_»14-Jan-13 17:55
professional«_Superman_»14-Jan-13 17:55 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pin
vishalgpt14-Jan-13 19:01
vishalgpt14-Jan-13 19:01 
QuestionHTTP server in C. How to implement Keep-Alive? Pin
johanm_29-Jan-13 20:02
johanm_29-Jan-13 20:02 

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.