Click here to Skip to main content
15,923,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: When use Bitmap::Clone(), I meet a problem.(about GDI+) Pin
Justin Tay21-Aug-06 17:24
Justin Tay21-Aug-06 17:24 
QuestionHow to correctly send Telnet codes? Pin
Lord Kixdemp21-Aug-06 13:47
Lord Kixdemp21-Aug-06 13:47 
AnswerRe: How to correctly send Telnet codes? Pin
markkuk21-Aug-06 23:33
markkuk21-Aug-06 23:33 
GeneralRe: How to correctly send Telnet codes? Pin
Lord Kixdemp22-Aug-06 4:54
Lord Kixdemp22-Aug-06 4:54 
AnswerRe: How to correctly send Telnet codes? Pin
markkuk22-Aug-06 11:42
markkuk22-Aug-06 11:42 
QuestionGDI+ problem initialize. Pin
mostafa_pasha21-Aug-06 12:25
mostafa_pasha21-Aug-06 12:25 
AnswerRe: GDI+ problem initialize. Pin
mostafa_pasha21-Aug-06 12:41
mostafa_pasha21-Aug-06 12:41 
QuestionMixing frameworks and languages Pin
Andre xxxxxxx21-Aug-06 12:24
Andre xxxxxxx21-Aug-06 12:24 
My question doesn't really fit into any forum, but I hope to find the right audience here Wink | ;)

I've got a MFC app that I want to split into components using COM. The menus and toolbars are created by querying XML from the components, so the components doesn't need to know which framework/toolkit is beeing used to display the UI.

But for UI elements like MDI child windows, dialogs and panes I don't know how to make them framework and language independent.

Say I want to display a modal dialog using Java, how could this been done if the app is written with MFC? (I know that this might look odd Wink | ;) ) The MFC message loop doesn't know anything about the dialog.

I would like to be able to use MFC, .NET/WinForms, WPF and maybe Java to build the components. I would prefer a clean interface rather than any HWND hacks.

For example Office 2007 (maybe 2003) allows Add-Ins to create task panes with custom controls on it. AFAIK the task pane hosts an ActiveX control.

I guess the base app needs to offer interfaces for panes and child windows and maybe for dialogs, because otherwise it would be impossible to dock the panes to the main frame.

Maybe it would be better to drop the idea of beeing able to use Java (atleast for the UI) and write all components with the MFC and use the interop features with WinForms and WPF? But the disadvantage then would be that all component developers would need to be familiar with MFC.

There is a great article here on CP about interop/mixing MFC/WinForms/WPF (http://www.codeproject.com/managedcpp/HostMFC.asp[^]), but I'm not looking for a single mixed app.

The MFC base app should be replaceable with a WinForms or WPF app without having to modify/recompile the components.

Does anyone here use different frameworks and languages to build components for his app?

Thanks André
AnswerRe: Mixing frameworks and languages Pin
Joe Woodbury21-Aug-06 17:53
professionalJoe Woodbury21-Aug-06 17:53 
QuestionUser Control \ MFC Pin
Louai Haimour21-Aug-06 11:32
Louai Haimour21-Aug-06 11:32 
AnswerRe: User Control \ MFC Pin
Christian Graus21-Aug-06 18:39
protectorChristian Graus21-Aug-06 18:39 
GeneralRe: User Control \ MFC Pin
Louai Haimour27-Aug-06 8:56
Louai Haimour27-Aug-06 8:56 
GeneralRe: User Control \ MFC Pin
Christian Graus27-Aug-06 12:02
protectorChristian Graus27-Aug-06 12:02 
Question_getcwd Pin
stevelam21-Aug-06 10:10
stevelam21-Aug-06 10:10 
AnswerRe: _getcwd Pin
Chris Losinger21-Aug-06 10:15
professionalChris Losinger21-Aug-06 10:15 
AnswerRe: _getcwd Pin
Joe Woodbury21-Aug-06 19:16
professionalJoe Woodbury21-Aug-06 19:16 
QuestionHow to detect completion of Socket recv() function. Pin
Robert Palma Jr.21-Aug-06 10:01
Robert Palma Jr.21-Aug-06 10:01 
AnswerRe: How to detect completion of Socket recv() function. Pin
zzattack21-Aug-06 12:05
zzattack21-Aug-06 12:05 
GeneralRe: How to detect completion of Socket recv() function. Pin
Robert Palma Jr.22-Aug-06 6:28
Robert Palma Jr.22-Aug-06 6:28 
GeneralRe: How to detect completion of Socket recv() function. Pin
Robert Palma Jr.22-Aug-06 9:56
Robert Palma Jr.22-Aug-06 9:56 
GeneralRe: How to detect completion of Socket recv() function. Pin
zzattack22-Aug-06 10:14
zzattack22-Aug-06 10:14 
AnswerRe: How to detect completion of Socket recv() function. Pin
Ajesh.Sreevalsa21-Aug-06 18:44
Ajesh.Sreevalsa21-Aug-06 18:44 
GeneralRe: How to detect completion of Socket recv() function. Pin
Robert Palma Jr.22-Aug-06 6:26
Robert Palma Jr.22-Aug-06 6:26 
QuestionWhere to execute constructor? Pin
Oliver12321-Aug-06 9:37
Oliver12321-Aug-06 9:37 
AnswerRe: Where to execute constructor? Pin
Wes Aday21-Aug-06 9:47
professionalWes Aday21-Aug-06 9:47 

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.