Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiontypedef struct but where? Pin
bbbilen31-Dec-02 12:30
bbbilen31-Dec-02 12:30 
AnswerRe: typedef struct but where? Pin
Stefan Pedersen31-Dec-02 12:40
Stefan Pedersen31-Dec-02 12:40 
AnswerRe: typedef struct but where? Pin
Michael Dunn31-Dec-02 14:01
sitebuilderMichael Dunn31-Dec-02 14:01 
GeneralRe: typedef struct but where? Pin
bbbilen1-Jan-03 15:50
bbbilen1-Jan-03 15:50 
GeneralRotating bitmaps Pin
ze manel31-Dec-02 12:21
ze manel31-Dec-02 12:21 
GeneralRe: Rotating bitmaps Pin
Chris Losinger31-Dec-02 12:25
professionalChris Losinger31-Dec-02 12:25 
GeneralCString memory Pin
trimtrom31-Dec-02 12:00
trimtrom31-Dec-02 12:00 
GeneralCOM Server problem Pin
Anonymous31-Dec-02 10:49
Anonymous31-Dec-02 10:49 
I have a simple Dialog Application. I am including an Active X Control e.g a simple grid. Apart from this I have a COM Server Object that is a class member of my class .
I dynamically create this object as
myCom = new ComServer();

Everything works fine when this is single threaded . Now I want to write some code that is part of a thread's execution routine(a multi threaded function) for which I do the following :
#define _WIN32_WINNT 0x0400
in my stdafx.h file
as this is used in the InitAtl function as
#if _WIN32_WINNT >= 0x0400<br />
	HRESULT hRes = CoInitializeEx(NULL, COINIT_MULTITHREADED);<br />
#else<br />
	HRESULT hRes = CoInitialize(NULL);<br />
#endif


The result of doing this is that my code compiles and links perfect but does not run . i.e I found the following messages in debug :

Warning: OleInitialize returned scode = RPC_E_CHANGED_MODE ($80010106).
Warning: CreateDlgControls failed during dialog init.
The thread 0x46C has exited with code 0 (0x0).


I am not having a clue about what is going wrong. Any help or suggestions will be really helpful.
Thanks
Questionplz help? Pin
imran_rafique31-Dec-02 9:32
imran_rafique31-Dec-02 9:32 
AnswerRe: plz help? Pin
Jeremy Falcon31-Dec-02 10:49
professionalJeremy Falcon31-Dec-02 10:49 
Generaldocument of IE on Win2K Pin
Tili31-Dec-02 8:18
Tili31-Dec-02 8:18 
GeneralRe: document of IE on Win2K Pin
Michael Dunn31-Dec-02 9:11
sitebuilderMichael Dunn31-Dec-02 9:11 
GeneralRe: document of IE on Win2K Pin
Stephane Rodriguez.31-Dec-02 9:18
Stephane Rodriguez.31-Dec-02 9:18 
GeneralRichEdit stream in problem... Pin
RobJones31-Dec-02 7:51
RobJones31-Dec-02 7:51 
GeneralRe: RichEdit stream in problem... Pin
Gary R. Wheeler1-Jan-03 4:18
Gary R. Wheeler1-Jan-03 4:18 
GeneralRe: RichEdit stream in problem... Pin
RobJones1-Jan-03 4:42
RobJones1-Jan-03 4:42 
GeneralTyring to get the icon of the desktop or "My Documents" or... Pin
mynab31-Dec-02 5:18
mynab31-Dec-02 5:18 
GeneralRe: Tyring to get the icon of the desktop or "My Documents" or... Pin
mynab31-Dec-02 23:31
mynab31-Dec-02 23:31 
QuestionTransparent with Mouse Events? Pin
ups31-Dec-02 2:44
ups31-Dec-02 2:44 
AnswerRe: Transparent with Mouse Events? Pin
Mike Nordell31-Dec-02 9:28
Mike Nordell31-Dec-02 9:28 
GeneralRe: Transparent with Mouse Events? Pin
ups31-Dec-02 17:09
ups31-Dec-02 17:09 
GeneralRe: Transparent with Mouse Events? Pin
Mike Nordell1-Jan-03 4:56
Mike Nordell1-Jan-03 4:56 
GeneralRe: Transparent with Mouse Events? Pin
ups1-Jan-03 14:37
ups1-Jan-03 14:37 
GeneralIncrease volume of wav file generated by SAPI. Pin
S.Maharajan31-Dec-02 1:26
S.Maharajan31-Dec-02 1:26 
Generaledk.h / edkguid.lib Pin
skallestad31-Dec-02 1:11
skallestad31-Dec-02 1:11 

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.