Click here to Skip to main content
12,297,650 members (23,244 online)

C / C++ / MFC

 
AnswerRe: The task runtime question of RTOS. Pin
Joe Woodbury7-Jan-13 10:28
memberJoe Woodbury7-Jan-13 10:28 
GeneralTreeview After Select Event Pin
Varun Pandey7-Jan-13 2:49
memberVarun Pandey7-Jan-13 2:49 
GeneralRe: Treeview After Select Event Pin
jeron17-Jan-13 5:08
memberjeron17-Jan-13 5:08 
Questionhow to hide a column of a listctrl Pin
cherry7297-Jan-13 0:55
membercherry7297-Jan-13 0:55 
AnswerRe: how to hide a column of a listctrl Pin
Pete O'Hanlon7-Jan-13 1:16
protectorPete O'Hanlon7-Jan-13 1:16 
QuestionCreating Non-Rectangular Forms Pin
Luca D'Amico6-Jan-13 11:38
memberLuca D'Amico6-Jan-13 11:38 
SuggestionRe: Creating Non-Rectangular Forms Pin
DavidCrow6-Jan-13 17:25
memberDavidCrow6-Jan-13 17:25 
AnswerRe: Creating Non-Rectangular Forms Pin
«_Superman_»6-Jan-13 17:56
member«_Superman_»6-Jan-13 17:56 
AnswerRe: Creating Non-Rectangular Forms Pin
Richard MacCutchan6-Jan-13 22:13
mvpRichard MacCutchan6-Jan-13 22:13 
GeneralRe: Creating Non-Rectangular Forms Pin
Luca D'Amico7-Jan-13 13:05
memberLuca D'Amico7-Jan-13 13:05 
Questionstd::vector problem Pin
Super Lloyd6-Jan-13 1:21
memberSuper Lloyd6-Jan-13 1:21 
AnswerRe: std::vector problem Pin
CPallini6-Jan-13 7:14
mvpCPallini6-Jan-13 7:14 
GeneralRe: std::vector problem Pin
Super Lloyd6-Jan-13 11:53
memberSuper Lloyd6-Jan-13 11:53 
QuestionStatic link to ATL alwayas fail Pin
Falconapollo4-Jan-13 23:19
memberFalconapollo4-Jan-13 23: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 Pin
Richard MacCutchan5-Jan-13 1:28
mvpRichard MacCutchan5-Jan-13 1:28 
Questionhow to use a work thread write file and the main thread show a carton Pin
cherry7294-Jan-13 22:12
membercherry7294-Jan-13 22:12 
SuggestionRe: how to use a work thread write file and the main thread show a carton Pin
DavidCrow5-Jan-13 11:41
memberDavidCrow5-Jan-13 11:41 
AnswerRe: how to use a work thread write file and the main thread show a carton Pin
Albert Holguin6-Jan-13 6:14
memberAlbert Holguin6-Jan-13 6:14 
GeneralRe: how to use a work thread write file and the main thread show a carton Pin
cherry7296-Jan-13 14:58
membercherry7296-Jan-13 14:58 
AnswerRe: how to use a work thread write file and the main thread show a carton Pin
Randor 6-Jan-13 17:39
member Randor 6-Jan-13 17:39 
QuestioncapDriverConnect displays captured frame in CView Pin
Vaclav_Sal4-Jan-13 16:15
memberVaclav_Sal4-Jan-13 16:15 
QuestionWhat is the merit to rewrite memcpy? Pin
econy4-Jan-13 7:31
memberecony4-Jan-13 7:31 
AnswerRe: What is the merit to rewrite memcpy? Pin
Richard MacCutchan4-Jan-13 9:19
mvpRichard MacCutchan4-Jan-13 9:19 
GeneralRe: What is the merit to rewrite memcpy? Pin
econy4-Jan-13 10:31
memberecony4-Jan-13 10:31 
GeneralRe: What is the merit to rewrite memcpy? Pin
jeron14-Jan-13 10:49
memberjeron14-Jan-13 10:49 
GeneralRe: What is the merit to rewrite memcpy? Pin
Richard MacCutchan5-Jan-13 1:20
mvpRichard MacCutchan5-Jan-13 1:20 
AnswerRe: What is the merit to rewrite memcpy? Pin
jschell6-Jan-13 5:02
memberjschell6-Jan-13 5:02 
AnswerRe: What is the merit to rewrite memcpy? Pin
Joe Woodbury7-Jan-13 10:15
memberJoe Woodbury7-Jan-13 10:15 
QuestionWhat is the benefit using duplicate loop statement [solved] Pin
econy4-Jan-13 4:53
memberecony4-Jan-13 4:53 
AnswerRe: What is the benefit using duplicate loop statement Pin
jeron14-Jan-13 5:29
memberjeron14-Jan-13 5:29 
GeneralRe: What is the benefit using duplicate loop statement Pin
econy4-Jan-13 6:37
memberecony4-Jan-13 6:37 
GeneralRe: What is the benefit using duplicate loop statement Pin
jeron14-Jan-13 6:58
memberjeron14-Jan-13 6:58 
GeneralRe: What is the benefit using duplicate loop statement Pin
econy4-Jan-13 7:21
memberecony4-Jan-13 7:21 
GeneralRe: What is the benefit using duplicate loop statement Pin
Richard MacCutchan4-Jan-13 6:59
mvpRichard MacCutchan4-Jan-13 6:59 
AnswerRe: What is the benefit using duplicate loop statement [solved] Pin
CPallini6-Jan-13 23:09
mvpCPallini6-Jan-13 23:09 
AnswerRe: What is the benefit using duplicate loop statement [solved] Pin
Joe Woodbury7-Jan-13 10:19
memberJoe Woodbury7-Jan-13 10:19 
QuestionIt's too slow to use the DrawDibDraw to draw a frame. Pin
yu-jian4-Jan-13 3:31
groupyu-jian4-Jan-13 3:31 
Questionhow to create font by unicode value? Pin
Falconapollo4-Jan-13 1:30
memberFalconapollo4-Jan-13 1:30 
AnswerRe: how to create font by unicode value? Pin
Richard MacCutchan4-Jan-13 3:23
mvpRichard MacCutchan4-Jan-13 3:23 
Questionwhen writing file,dispaly a animation with avi Pin
cherry7293-Jan-13 22:51
membercherry7293-Jan-13 22:51 
AnswerRe: when writing file,dispaly a animation with avi Pin
Rajesh R Subramanian4-Jan-13 0:04
memberRajesh R Subramanian4-Jan-13 0:04 
GeneralRe: when writing file,dispaly a animation with avi Pin
cherry7294-Jan-13 14:34
membercherry7294-Jan-13 14:34 
QuestionMS Visual Studio Express 2010, Cygwin, Eclipse together Pin
trinh.nguyen3-Jan-13 14:39
membertrinh.nguyen3-Jan-13 14:39 
AnswerRe: MS Visual Studio Express 2010, Cygwin, Eclipse together Pin
April Fans3-Jan-13 17:42
memberApril Fans3-Jan-13 17:42 
AnswerRe: MS Visual Studio Express 2010, Cygwin, Eclipse together Pin
Richard MacCutchan3-Jan-13 22:33
mvpRichard MacCutchan3-Jan-13 22:33 
Questiona "new" operator failed Pin
a_matseevsky3-Jan-13 7:41
membera_matseevsky3-Jan-13 7:41 
AnswerRe: a "new" operator failed Pin
jschell3-Jan-13 8:06
memberjschell3-Jan-13 8:06 
GeneralRe: a "new" operator failed Pin
a_matseevsky3-Jan-13 8:50
membera_matseevsky3-Jan-13 8:50 
AnswerRe: a "new" operator failed Pin
CPallini3-Jan-13 9:06
mvpCPallini3-Jan-13 9:06 
GeneralRe: a "new" operator failed Pin
a_matseevsky3-Jan-13 22:41
membera_matseevsky3-Jan-13 22:41 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.160525.2 | Last Updated 26 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid