Click here to Skip to main content
15,914,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldarn! Pin
ns19-Mar-03 1:52
ns19-Mar-03 1:52 
GeneralRe: darn! Pin
Ravi Bhavnani19-Mar-03 2:26
professionalRavi Bhavnani19-Mar-03 2:26 
GeneralRe: darn! Pin
ns19-Mar-03 2:45
ns19-Mar-03 2:45 
Generaltree ctrl vertical scroll bar Pin
Dave Bryant17-Mar-03 9:01
Dave Bryant17-Mar-03 9:01 
GeneralRe: tree ctrl vertical scroll bar Pin
peterchen17-Mar-03 10:06
peterchen17-Mar-03 10:06 
GeneralRe: tree ctrl vertical scroll bar Pin
Dave Bryant17-Mar-03 10:09
Dave Bryant17-Mar-03 10:09 
General.MSM FILES IS PLAIN ENGLISH.... Pin
JoeSox17-Mar-03 8:44
JoeSox17-Mar-03 8:44 
GeneralAfxOleInit() + RPC_E_CHANGED_MODE Pin
Swinefeaster17-Mar-03 7:23
Swinefeaster17-Mar-03 7:23 
Hi there,

I have an app here that already initializes COM via a call to CoInitializeEx(NULL, COINIT_MULTITHREADED). I have recently added drag and drop support, and am calling AfxOleInit() some time after the call to CoInitializeEx(). This works on my development machine no problem, but on another machine AfxOleInit()'s call to CoInitialize() fails with RPC_E_CHANGED_MODE. I don't understand why it works on my first machine, though I realize the failure on the second machine is due to the fact that it was initialized to MTA and now we are trying to use STA.

Any ideas? Surely you can use COM as well as drag and drop in a single application, right???

Thanks,

swine


[b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
Generalnon-visual c++ graphics help Pin
Mike Ware17-Mar-03 6:49
Mike Ware17-Mar-03 6:49 
Generalwrap text in CEdit Pin
dudic17-Mar-03 6:43
dudic17-Mar-03 6:43 
GeneralRe: wrap text in CEdit Pin
Nish Nishant17-Mar-03 6:47
sitebuilderNish Nishant17-Mar-03 6:47 
GeneralRe: wrap text in CEdit Pin
Neville Franks17-Mar-03 7:44
Neville Franks17-Mar-03 7:44 
GeneralCDialog returns -1 Pin
sterlingr17-Mar-03 5:42
sterlingr17-Mar-03 5:42 
GeneralRe: CDialog returns -1 Pin
Nish Nishant17-Mar-03 6:24
sitebuilderNish Nishant17-Mar-03 6:24 
GeneralAlpha windows problem, need help! Pin
jedyking17-Mar-03 4:38
jedyking17-Mar-03 4:38 
GeneralMoving a CStatic control Pin
LittleYellowBird17-Mar-03 4:31
LittleYellowBird17-Mar-03 4:31 
GeneralRe: Moving a CStatic control Pin
RobJones17-Mar-03 4:39
RobJones17-Mar-03 4:39 
GeneralTransparent bitmap with CImageList Pin
Eugene Pustovoyt17-Mar-03 4:29
Eugene Pustovoyt17-Mar-03 4:29 
GeneralRe: Transparent bitmap with CImageList Pin
RobJones17-Mar-03 6:50
RobJones17-Mar-03 6:50 
GeneralTask bar buttons... Pin
RobJones17-Mar-03 4:23
RobJones17-Mar-03 4:23 
GeneralRe: Task bar buttons... Pin
Ravi Bhavnani17-Mar-03 9:19
professionalRavi Bhavnani17-Mar-03 9:19 
GeneralRe: Task bar buttons... Pin
valikac17-Mar-03 11:43
valikac17-Mar-03 11:43 
QuestionDO you know? Pin
summo17-Mar-03 4:00
summo17-Mar-03 4:00 
AnswerRe: DO you know? Pin
geo_m17-Mar-03 6:19
geo_m17-Mar-03 6:19 
AnswerRe: DO you know? Pin
Mike Nordell17-Mar-03 6:44
Mike Nordell17-Mar-03 6:44 

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.