Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
«_Superman_»28-Oct-09 7:22
professional«_Superman_»28-Oct-09 7:22 
QuestionCFileDialog in an own thread -> Access violation Pin
slaindevil28-Oct-09 2:36
slaindevil28-Oct-09 2:36 
AnswerRe: CFileDialog in an own thread -> Access violation Pin
Cedric Moonen28-Oct-09 2:42
Cedric Moonen28-Oct-09 2:42 
GeneralRe: CFileDialog in an own thread -> Access violation Pin
slaindevil28-Oct-09 3:25
slaindevil28-Oct-09 3:25 
QuestionRe: CFileDialog in an own thread -> Access violation Pin
Randor 28-Oct-09 4:05
professional Randor 28-Oct-09 4:05 
AnswerRe: CFileDialog in an own thread -> Access violation Pin
slaindevil1-Nov-09 20:53
slaindevil1-Nov-09 20:53 
GeneralRe: CFileDialog in an own thread -> Access violation Pin
Randor 2-Nov-09 9:36
professional Randor 2-Nov-09 9:36 
AnswerRe: CFileDialog in an own thread -> Access violation Pin
Roger Stoltz28-Oct-09 6:52
Roger Stoltz28-Oct-09 6:52 
slaindevil wrote:

The only workaround I know, is to start the file dialog in a different thread.


Why not do the opposite - spawn a UI-thread that creates the MTA?
All you need is a message pump and something, e.g. a user defined message, that tells the thread to create the server that should reside in the MTA.

If your post is about the issue Randor mentions, you won't pull the rug for the main thread and all calls to shell functions will not fail because if the MTA at least.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: CFileDialog in an own thread -> Access violation Pin
slaindevil1-Nov-09 21:02
slaindevil1-Nov-09 21:02 
QuestionGDI+ Bitmap::FromHICON problem Pin
Evil.Ghost28-Oct-09 0:42
Evil.Ghost28-Oct-09 0:42 
AnswerRe: GDI+ Bitmap::FromHICON problem Pin
CPallini28-Oct-09 1:02
mveCPallini28-Oct-09 1:02 
QuestionGuidelines say avoid standard integer types Pin
RedSonja27-Oct-09 23:31
RedSonja27-Oct-09 23:31 
AnswerRe: Guidelines say avoid standard integer types Pin
CPallini27-Oct-09 23:51
mveCPallini27-Oct-09 23:51 
GeneralRe: Guidelines say avoid standard integer types Pin
RedSonja28-Oct-09 1:23
RedSonja28-Oct-09 1:23 
QuestionRe: Guidelines say avoid standard integer types Pin
CPallini28-Oct-09 1:44
mveCPallini28-Oct-09 1:44 
AnswerRe: Guidelines say avoid standard integer types Pin
RedSonja28-Oct-09 2:13
RedSonja28-Oct-09 2:13 
GeneralRe: Guidelines say avoid standard integer types Pin
Richard MacCutchan28-Oct-09 2:31
mveRichard MacCutchan28-Oct-09 2:31 
GeneralRe: Guidelines say avoid standard integer types Pin
codedgn28-Oct-09 3:06
codedgn28-Oct-09 3:06 
GeneralRe: Guidelines say avoid standard integer types Pin
CPallini28-Oct-09 3:26
mveCPallini28-Oct-09 3:26 
GeneralRe: Guidelines say avoid standard integer types Pin
Richard MacCutchan28-Oct-09 3:43
mveRichard MacCutchan28-Oct-09 3:43 
GeneralRe: Guidelines say avoid standard integer types Pin
codedgn28-Oct-09 6:55
codedgn28-Oct-09 6:55 
GeneralRe: Guidelines say avoid standard integer types Pin
Richard MacCutchan28-Oct-09 7:48
mveRichard MacCutchan28-Oct-09 7:48 
GeneralRe: Guidelines say avoid standard integer types Pin
CPallini28-Oct-09 3:03
mveCPallini28-Oct-09 3:03 
GeneralRe: Guidelines say avoid standard integer types Pin
Rajesh R Subramanian28-Oct-09 5:42
professionalRajesh R Subramanian28-Oct-09 5:42 
AnswerRe: Guidelines say avoid standard integer types [modified] Pin
Adam Roderick J28-Oct-09 0:27
Adam Roderick J28-Oct-09 0:27 

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.