Click here to Skip to main content
       

C / C++ / MFC

 
GeneralRe: CDC Problem with coordinates PinmemberArgonia15-Jan-13 22:23 
QuestionDhcpRequestParams() PinmemberMan in the mirror13-Jan-13 20:46 
AnswerRe: DhcpRequestParams() PinmvpRichard MacCutchan13-Jan-13 23:11 
QuestionSOLVED From HANDLE to BITMAPINFO - another basic question for gurus [modified] PinmemberVaclav_Sal13-Jan-13 6:30 
AnswerRe: From HANDLE to BITMAPINFO - another basic question for gurus PinmvpRichard MacCutchan13-Jan-13 6:44 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus PinmemberVaclav_Sal13-Jan-13 7:08 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus PinmvpRichard MacCutchan13-Jan-13 7:32 
QuestionHow to get detail error info from E_FAIL? PinmemberFalconapollo11-Jan-13 22: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:
 
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? Pinmember«_Superman_»12-Jan-13 0:43 
GeneralRe: How to get detail error info from E_FAIL? PinmemberFalconapollo12-Jan-13 1:00 
GeneralRe: How to get detail error info from E_FAIL? PinmemberJochen Arndt13-Jan-13 22:05 
AnswerRe: How to get detail error info from E_FAIL? PinmemberArgonia14-Jan-13 3:01 
QuestionVideo Capture using DirectShow only works for first time.? Pinmembermbatra3110-Jan-13 21:25 
AnswerRe: Video Capture using DirectShow only works for first time.? Pingroup_AnsHUMAN_ 11-Jan-13 3:05 
AnswerRe: Video Capture using DirectShow only works for first time.? PinmemberVaclav_Sal14-Jan-13 17:10 
Questionhow to unsigned int64 to two unsigned int32 values Pinmembervishalgpt9-Jan-13 23:22 
AnswerRe: how to unsigned int64 to two unsigned int32 values PinmemberJochen Arndt10-Jan-13 0:06 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pinmembervishalgpt10-Jan-13 0:32 
GeneralRe: how to unsigned int64 to two unsigned int32 values PinmemberJochen Arndt10-Jan-13 0:58 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pinmembervishalgpt10-Jan-13 1:08 
AnswerRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pinmember«_Superman_»10-Jan-13 19:39 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pinmembervishalgpt14-Jan-13 16:25 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pinmember«_Superman_»14-Jan-13 18:55 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pinmembervishalgpt14-Jan-13 20:01 
QuestionHTTP server in C. How to implement Keep-Alive? Pinmemberjohanm_29-Jan-13 21:02 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.1411028.1 | Last Updated 28 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid