Click here to Skip to main content
15,900,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat is "dialog template resource"? Pin
Vaclav_19-Sep-13 4:55
Vaclav_19-Sep-13 4:55 
AnswerRe: What is "dialog template resource"? Pin
pasztorpisti19-Sep-13 6:32
pasztorpisti19-Sep-13 6:32 
Every module (exe or dll or whatever) can contain a resource tree that contains different kind of resources (icon, dialog template, cursors, wav sound, popup menus, binary data, ... the list is increasing). You usually compile an .rc file into a .res file and currently you can link only one .res file into the final module (exe or dll) and the linker composes the (search) tree from the resource list. Resources declared in a static libs don't link to the modules from which you use the static libs themselves. Correct me if I'm wrong but I've burnt myself with this several times so I avoid using resources in static libs. To my best knowledge there is no solution to this problem in newer visual studio versions. http://stackoverflow.com/questions/531502/vc-resources-in-a-static-library[^]

If you compile your library as a DLL then your DLL can have its own resources and you can use the HMODULE received as the first parameter of the DllMain() as your hInst when you call FindResource().

Additional advice: Use ResHacker to check out the resource tree of an exe or dll.
GeneralRe: What is "dialog template resource"? SOLVED Pin
Vaclav_20-Sep-13 4:06
Vaclav_20-Sep-13 4:06 
GeneralRe: What is "dialog template resource"? SOLVED Pin
pasztorpisti20-Sep-13 4:31
pasztorpisti20-Sep-13 4:31 
GeneralRe: What is "dialog template resource"? SOLVED Pin
Vaclav_20-Sep-13 5:46
Vaclav_20-Sep-13 5:46 
Questionhow to registered activex contols Pin
joshikkishore18-Sep-13 7:48
joshikkishore18-Sep-13 7:48 
AnswerRe: how to registered activex contols Pin
Richard Andrew x6418-Sep-13 10:21
professionalRichard Andrew x6418-Sep-13 10:21 
AnswerRe: how to registered activex contols Pin
«_Superman_»18-Sep-13 18:35
professional«_Superman_»18-Sep-13 18:35 
QuestionHow to retrive / enumerate CDialog controls Pin
Vaclav_18-Sep-13 3:49
Vaclav_18-Sep-13 3:49 
AnswerRe: How to retrive / enumerate CDialog controls Pin
pasztorpisti18-Sep-13 4:22
pasztorpisti18-Sep-13 4:22 
GeneralRe: How to retrive / enumerate CDialog controls Pin
Vaclav_18-Sep-13 7:43
Vaclav_18-Sep-13 7:43 
GeneralRe: How to retrive / enumerate CDialog controls Pin
pasztorpisti18-Sep-13 10:58
pasztorpisti18-Sep-13 10:58 
GeneralRe: How to retrive / enumerate CDialog controls Pin
Vaclav_18-Sep-13 12:01
Vaclav_18-Sep-13 12:01 
Questionbytes to mb conversion upto two decimal places. Pin
Le@rner17-Sep-13 18:55
Le@rner17-Sep-13 18:55 
AnswerRe: bytes to mb conversion upto two decimal places. Pin
Richard MacCutchan17-Sep-13 21:06
mveRichard MacCutchan17-Sep-13 21:06 
GeneralRe: bytes to mb conversion upto two decimal places. Pin
Le@rner17-Sep-13 21:27
Le@rner17-Sep-13 21:27 
GeneralRe: bytes to mb conversion upto two decimal places. Pin
Richard MacCutchan17-Sep-13 21:35
mveRichard MacCutchan17-Sep-13 21:35 
GeneralRe: bytes to mb conversion upto two decimal places. Pin
Le@rner17-Sep-13 21:38
Le@rner17-Sep-13 21:38 
AnswerRe: bytes to mb conversion upto two decimal places (fixed). Pin
CPallini17-Sep-13 21:47
mveCPallini17-Sep-13 21:47 
SuggestionRe: bytes to mb conversion upto two decimal places. Pin
pasztorpisti17-Sep-13 23:21
pasztorpisti17-Sep-13 23:21 
GeneralRe: bytes to mb conversion upto two decimal places. Pin
CPallini17-Sep-13 23:32
mveCPallini17-Sep-13 23:32 
AnswerRe: bytes to mb conversion upto two decimal places. Pin
_Flaviu17-Sep-13 22:19
_Flaviu17-Sep-13 22:19 
AnswerRe: bytes to mb conversion upto two decimal places. Pin
pasztorpisti17-Sep-13 23:19
pasztorpisti17-Sep-13 23:19 
QuestionCreating a DLL with Web Browser Embedded Pin
Don Guy17-Sep-13 9:48
Don Guy17-Sep-13 9:48 
AnswerRe: Creating a DLL with Web Browser Embedded Pin
Richard Andrew x6417-Sep-13 15:34
professionalRichard Andrew x6417-Sep-13 15:34 

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.