Click here to Skip to main content
16,007,072 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_PAINT in View Pin
Jonathon Lockett10-Jun-01 16:39
Jonathon Lockett10-Jun-01 16:39 
GeneralRe: WM_PAINT in View Pin
BryanBHU10-Jun-01 16:48
BryanBHU10-Jun-01 16:48 
GeneralRe: WM_PAINT in View Pin
Christian Graus11-Jun-01 0:33
protectorChristian Graus11-Jun-01 0:33 
GeneralRe: WM_PAINT in View Pin
Tomasz Sowinski11-Jun-01 3:01
Tomasz Sowinski11-Jun-01 3:01 
GeneralRe: WM_PAINT in View Pin
BryanBHU11-Jun-01 8:11
BryanBHU11-Jun-01 8:11 
GeneralRe: WM_PAINT in View Pin
Tomasz Sowinski11-Jun-01 0:22
Tomasz Sowinski11-Jun-01 0:22 
Generalmfc dll Pin
Nitish Kumar10-Jun-01 7:23
Nitish Kumar10-Jun-01 7:23 
GeneralRe: mfc dll Pin
Tim Deveaux10-Jun-01 12:46
Tim Deveaux10-Jun-01 12:46 
Partial answer to a tough question (and I'm stretching my knowledge here) but I think the app invoking the DLL needs to know about the resource template for the dialog as well as the resource defines. You will need to include a resource header that defines IDD_DIALOG, and also the .rc file that contains the dialog template.

As a simple test, I made a test DLL that exported a fn that invoked a dialog (as opposed to exporting a CDialog based class) and had no success showing it until I added the .rc file for the DLL into the apps Resource Includes (on the View menu).

I don't think this is very robust though, as resource ID conflicts are bound to occur in a large project - you might want to be careful about the 'exported' ids. I think the idea is to use at least 2 .rc files on the DLL side. One that can be included by consumer apps that has stuff they need, and one to hold DLL internal version info etc.

MFC has several .rc files that are included by standard apps depending on what resouces (e.g. font dilaog) they need. I think there is an advantage here in that you can override templates in your app to customize common dialogs etc. Not something I do everyday. Smile | :)


Generalchar* return problem Pin
10-Jun-01 4:01
suss10-Jun-01 4:01 
GeneralRe: char* return problem Pin
Stan Shannon10-Jun-01 4:12
Stan Shannon10-Jun-01 4:12 
GeneralRe: char* return problem Pin
10-Jun-01 4:29
suss10-Jun-01 4:29 
GeneralRe: char* return problem Pin
Stan Shannon10-Jun-01 5:11
Stan Shannon10-Jun-01 5:11 
GeneralRe: char* return problem Pin
Michael Dunn10-Jun-01 10:00
sitebuilderMichael Dunn10-Jun-01 10:00 
GeneralRe: char* return problem Pin
Masaaki Onishi10-Jun-01 4:58
Masaaki Onishi10-Jun-01 4:58 
GeneralAppending text in last ... Pin
Hadi Rezaee9-Jun-01 23:59
Hadi Rezaee9-Jun-01 23:59 
GeneralRe: Best way...? Pin
Masaaki Onishi10-Jun-01 5:11
Masaaki Onishi10-Jun-01 5:11 
GeneralRe: Best way...? Pin
Hadi Rezaee10-Jun-01 7:33
Hadi Rezaee10-Jun-01 7:33 
GeneralRe: Study by yourself! Pin
Masaaki Onishi10-Jun-01 12:39
Masaaki Onishi10-Jun-01 12:39 
GeneralCinternetSession Pin
Hushpappy9-Jun-01 23:58
Hushpappy9-Jun-01 23:58 
GeneralRe: CinternetSession Pin
l a u r e n10-Jun-01 3:43
l a u r e n10-Jun-01 3:43 
GeneralRe: Kill the connection? Pin
Masaaki Onishi10-Jun-01 4:23
Masaaki Onishi10-Jun-01 4:23 
GeneralComboBox Pin
9-Jun-01 23:31
suss9-Jun-01 23:31 
GeneralRe: ComboBox Pin
Stan Shannon10-Jun-01 0:59
Stan Shannon10-Jun-01 0:59 
GeneralRe: ComboBox Pin
10-Jun-01 1:59
suss10-Jun-01 1:59 
GeneralRe: ComboBox Pin
Stan Shannon10-Jun-01 2:04
Stan Shannon10-Jun-01 2:04 

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.