Click here to Skip to main content
13,735,049 members

C / C++ / MFC

 
QuestionCalling a VC++ 6.0 DLL from a VB program Pin
Lazzari Patrizio14-Jan-10 3:29
memberLazzari Patrizio14-Jan-10 3:29 
AnswerRe: Calling a VC++ 6.0 DLL from a VB program [modified] Pin
Chris Losinger14-Jan-10 3:41
memberChris Losinger14-Jan-10 3:41 
AnswerRe: Calling a VC++ 6.0 DLL from a VB program Pin
Rajesh R Subramanian14-Jan-10 3:57
mvpRajesh R Subramanian14-Jan-10 3:57 
GeneralRe: Calling a VC++ 6.0 DLL from a VB program Pin
Lazzari Patrizio14-Jan-10 4:46
memberLazzari Patrizio14-Jan-10 4:46 
AnswerRe: Calling a VC++ 6.0 DLL from a VB program Pin
Rajesh R Subramanian14-Jan-10 5:16
mvpRajesh R Subramanian14-Jan-10 5:16 
Question3D Image Pin
ashwath197914-Jan-10 1:18
memberashwath197914-Jan-10 1:18 
AnswerCross Post ! Pin
Garth J Lancaster14-Jan-10 1:33
memberGarth J Lancaster14-Jan-10 1:33 
Questionerror: hres 0x80010106 Cannot change thread mode after it is set. Pin
Le@rner13-Jan-10 23:28
memberLe@rner13-Jan-10 23:28 
Hi all,

I have made a SDI application in that application i have made a tree ctrl and its class derived from CTreeView. But my problem is when in OnInitialUpdate i write this piece of code

HRESULT hres;

    // Step 1: --------------------------------------------------
    // Initialize COM. ------------------------------------------

    hres =  CoInitializeEx(0, COINIT_MULTITHREADED); 
    if (FAILED(hres))
    {
        AfxMessageBox(_T("Failed to initialize COM library") );
		return ;                  // Program has failed.
    }


it returns a error

hres 0x80010106 Cannot change thread mode after it is set.

how can i resolve this

thanks in advance

To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

AnswerRe: error: hres 0x80010106 Cannot change thread mode after it is set. Pin
Richard MacCutchan14-Jan-10 0:45
mvpRichard MacCutchan14-Jan-10 0:45 
GeneralRe: error: hres 0x80010106 Cannot change thread mode after it is set. Pin
CPallini14-Jan-10 1:58
mvpCPallini14-Jan-10 1:58 
GeneralRe: error: hres 0x80010106 Cannot change thread mode after it is set. Pin
Richard MacCutchan14-Jan-10 4:43
mvpRichard MacCutchan14-Jan-10 4:43 
QuestionCDockablePane AutHide issue Pin
Harsh Shankar13-Jan-10 22:58
memberHarsh Shankar13-Jan-10 22:58 
QuestionC++ - Virtual Destructor Pin
davarun13-Jan-10 21:49
memberdavarun13-Jan-10 21:49 
AnswerRe: C++ - Virtual Destructor Pin
CPallini13-Jan-10 22:31
mvpCPallini13-Jan-10 22:31 
AnswerRe: C++ - Virtual Destructor Pin
Graham Breach13-Jan-10 22:37
memberGraham Breach13-Jan-10 22:37 
AnswerRe: C++ - Virtual Destructor Pin
Stuart Dootson13-Jan-10 23:27
mvpStuart Dootson13-Jan-10 23:27 
GeneralRe: C++ - Virtual Destructor Pin
davarun15-Jan-10 2:36
memberdavarun15-Jan-10 2:36 
GeneralRe: C++ - Virtual Destructor Pin
Stuart Dootson15-Jan-10 2:58
mvpStuart Dootson15-Jan-10 2:58 
GeneralRe: C++ - Virtual Destructor Pin
davarun15-Jan-10 3:23
memberdavarun15-Jan-10 3:23 
GeneralRe: C++ - Virtual Destructor Pin
Stuart Dootson15-Jan-10 3:38
mvpStuart Dootson15-Jan-10 3:38 
GeneralRe: C++ - Virtual Destructor Pin
davarun15-Jan-10 4:34
memberdavarun15-Jan-10 4:34 
GeneralRe: C++ - Virtual Destructor Pin
Stuart Dootson15-Jan-10 4:44
mvpStuart Dootson15-Jan-10 4:44 
QuestionVC++ 2008 MFC Pin
2buck5613-Jan-10 14:03
member2buck5613-Jan-10 14:03 
AnswerRe: VC++ 2008 MFC Pin
Chris Losinger13-Jan-10 16:25
memberChris Losinger13-Jan-10 16:25 
GeneralRe: VC++ 2008 MFC Pin
2buck5613-Jan-10 17:51
member2buck5613-Jan-10 17:51 

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 | Cookies | Terms of Service
Web01-2016 | 2.8.180920.1 | Last Updated 18 Oct 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid