Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: The task runtime question of RTOS. [modified] PinmemberJoe Woodbury7-Jan-13 11:28 
GeneralTreeview After Select Event PinmemberVarun Pandey7-Jan-13 3:49 
GeneralRe: Treeview After Select Event Pinmemberjeron17-Jan-13 6:08 
Questionhow to hide a column of a listctrl Pinmembercherry7297-Jan-13 1:55 
AnswerRe: how to hide a column of a listctrl PinprotectorPete O'Hanlon7-Jan-13 2:16 
QuestionCreating Non-Rectangular Forms PinmemberLuca D'Amico6-Jan-13 12:38 
SuggestionRe: Creating Non-Rectangular Forms PinmemberDavidCrow6-Jan-13 18:25 
AnswerRe: Creating Non-Rectangular Forms Pinmember«_Superman_»6-Jan-13 18:56 
AnswerRe: Creating Non-Rectangular Forms PinmvpRichard MacCutchan6-Jan-13 23:13 
GeneralRe: Creating Non-Rectangular Forms PinmemberLuca D'Amico7-Jan-13 14:05 
Questionstd::vector problem PinmemberSuper Lloyd6-Jan-13 2:21 
AnswerRe: std::vector problem PinmvpCPallini6-Jan-13 8:14 
GeneralRe: std::vector problem PinmemberSuper Lloyd6-Jan-13 12:53 
QuestionStatic link to ATL alwayas fail PinmemberFalconapollo5-Jan-13 0:19 
I use some ATL functions to create a Media control. But, it seems that I can only use Dynamic link to ATL option, when I switch to Static link to ATL. I just can't create the control successfully.
 
I'm so confused. Anyone can help me?
 
//related headers
#include <wmp.h>
#include <atlbase.h>
#include <atlcom.h>
#include <atlhost.h>
#include <atlctl.h>

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

//related function code:
CComPtr<IAxWinHostWindow>  spHost;
HRESULT  hr;
m_wndView.Create(m_hWnd, rect, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN, WS_EX_CLIENTEDGE);
hr = m_wndView.QueryHost(&spHost);
/*
when I switch to "Static Link to ATL" option, I will fail here
E_FAIL == hr;//the failure flag
*/
if(!SUCCEEDED(hr)) return FALSE;
 
hr = spHost->CreateControl(CComBSTR(_T("{6BF52A52-394A-11d3-B153-00C04F79FAA6}")), m_wndView, 0);
if(!SUCCEEDED(hr)) return FALSE;
 
hr = m_wndView.QueryControl(&m_spWMPPlayer);
if(!SUCCEEDED(hr)) return FALSE;

AnswerRe: Static link to ATL alwayas fail PinmvpRichard MacCutchan5-Jan-13 2:28 
Questionhow to use a work thread write file and the main thread show a carton Pinmembercherry7294-Jan-13 23:12 
SuggestionRe: how to use a work thread write file and the main thread show a carton PinmemberDavidCrow5-Jan-13 12:41 
AnswerRe: how to use a work thread write file and the main thread show a carton PinmemberAlbert Holguin6-Jan-13 7:14 
GeneralRe: how to use a work thread write file and the main thread show a carton Pinmembercherry7296-Jan-13 15:58 
AnswerRe: how to use a work thread write file and the main thread show a carton Pinmember Randor 6-Jan-13 18:39 
QuestioncapDriverConnect displays captured frame in CView PinmemberVaclav_Sal4-Jan-13 17:15 
QuestionWhat is the merit to rewrite memcpy? [modified] Pinmemberecony4-Jan-13 8:31 
AnswerRe: What is the merit to rewrite memcpy? PinmvpRichard MacCutchan4-Jan-13 10:19 
GeneralRe: What is the merit to rewrite memcpy? Pinmemberecony4-Jan-13 11:31 
GeneralRe: What is the merit to rewrite memcpy? Pinmemberjeron14-Jan-13 11:49 
GeneralRe: What is the merit to rewrite memcpy? PinmvpRichard MacCutchan5-Jan-13 2:20 
AnswerRe: What is the merit to rewrite memcpy? Pinmemberjschell6-Jan-13 6:02 
AnswerRe: What is the merit to rewrite memcpy? [modified] PinmemberJoe Woodbury7-Jan-13 11:15 
QuestionWhat is the benefit using duplicate loop statement [solved] Pinmemberecony4-Jan-13 5:53 
AnswerRe: What is the benefit using duplicate loop statement Pinmemberjeron14-Jan-13 6:29 
GeneralRe: What is the benefit using duplicate loop statement Pinmemberecony4-Jan-13 7:37 
GeneralRe: What is the benefit using duplicate loop statement Pinmemberjeron14-Jan-13 7:58 
GeneralRe: What is the benefit using duplicate loop statement Pinmemberecony4-Jan-13 8:21 
GeneralRe: What is the benefit using duplicate loop statement PinmvpRichard MacCutchan4-Jan-13 7:59 
AnswerRe: What is the benefit using duplicate loop statement [solved] PinmvpCPallini7-Jan-13 0:09 
AnswerRe: What is the benefit using duplicate loop statement [solved] PinmemberJoe Woodbury7-Jan-13 11:19 
QuestionIt's too slow to use the DrawDibDraw to draw a frame. Pingroupyu-jian4-Jan-13 4:31 
Questionhow to create font by unicode value? PinmemberFalconapollo4-Jan-13 2:30 
AnswerRe: how to create font by unicode value? PinmvpRichard MacCutchan4-Jan-13 4:23 
Questionwhen writing file,dispaly a animation with avi Pinmembercherry7293-Jan-13 23:51 
AnswerRe: when writing file,dispaly a animation with avi [modified] PinmemberRajesh R Subramanian4-Jan-13 1:04 
GeneralRe: when writing file,dispaly a animation with avi Pinmembercherry7294-Jan-13 15:34 
QuestionMS Visual Studio Express 2010, Cygwin, Eclipse together Pinmembertrinh.nguyen3-Jan-13 15:39 
AnswerRe: MS Visual Studio Express 2010, Cygwin, Eclipse together [modified] PinmemberApril Fans3-Jan-13 18:42 
AnswerRe: MS Visual Studio Express 2010, Cygwin, Eclipse together PinmvpRichard MacCutchan3-Jan-13 23:33 
Questiona "new" operator failed Pinmembera_matseevsky3-Jan-13 8:41 
AnswerRe: a "new" operator failed Pinmemberjschell3-Jan-13 9:06 
GeneralRe: a "new" operator failed Pinmembera_matseevsky3-Jan-13 9:50 
AnswerRe: a "new" operator failed PinmvpCPallini3-Jan-13 10:06 
GeneralRe: a "new" operator failed Pinmembera_matseevsky3-Jan-13 23:41 

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
Web01 | 2.8.141220.1 | Last Updated 18 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid