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

C / C++ / MFC

 
GeneralOnChange() Pin
RobJones10-Jul-01 13:05
RobJones10-Jul-01 13:05 
GeneralRe: OnChange() Pin
Christian Graus10-Jul-01 13:22
protectorChristian Graus10-Jul-01 13:22 
GeneralRe: OnChange() Pin
RobJones10-Jul-01 13:42
RobJones10-Jul-01 13:42 
GeneralRe: OnChange() Pin
RobJones10-Jul-01 13:47
RobJones10-Jul-01 13:47 
GeneralRe: OnChange() Pin
Christian Graus10-Jul-01 14:14
protectorChristian Graus10-Jul-01 14:14 
GeneralRe: OnChange() Pin
10-Jul-01 16:54
suss10-Jul-01 16:54 
GeneralMultiple resource dlls Pin
Troels_Gram10-Jul-01 12:18
Troels_Gram10-Jul-01 12:18 
GeneralRe: Multiple resource dlls Pin
Ben Burnett10-Jul-01 12:37
Ben Burnett10-Jul-01 12:37 
I think the simplest method would be to export a function that returns the DLL's resource handle -- see AfxGetResourceHandle(). Then when you’re loading your resources from that DLL, all you would need to do is call AfxSetResourceHandle() and pass it that DLL's handle...

HINSTANCE hInstOld = AfxGetResourceHandle ();<br />
ASSERT ( NULL != hInstOld );<br />
ASSERT ( NULL != hMyDLLResourceHandle );<br />
AfxSetResourceHandle ( hMyDLLResourceHandle );<br />
<br />
//<br />
// ... load the resource your looking for here<br />
//<br />
<br />
AfxSetResourceHandle ( hInstOld );


-Ben

---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic" Wink | ;)
GeneralBeginner Question: Updating Items in a list control Pin
10-Jul-01 9:07
suss10-Jul-01 9:07 
GeneralRe: Beginner Question: Updating Items in a list control Pin
Michael Dunn10-Jul-01 10:58
sitebuilderMichael Dunn10-Jul-01 10:58 
GeneralEnumerating sibling windows in MFC Pin
Patrick Hogan10-Jul-01 8:39
Patrick Hogan10-Jul-01 8:39 
GeneralRe: Enumerating sibling windows in MFC Pin
Tomasz Sowinski10-Jul-01 9:32
Tomasz Sowinski10-Jul-01 9:32 
GeneralP Pin
10-Jul-01 8:23
suss10-Jul-01 8:23 
GeneralExcuse me on the missing title:" PropertySheet and PropertyPages," Please URGENT !!! Pin
10-Jul-01 8:29
suss10-Jul-01 8:29 
GeneralRe: P Pin
Carlos Antollini10-Jul-01 8:29
Carlos Antollini10-Jul-01 8:29 
QuestionVirtual message map functions? Pin
Jake Palmer10-Jul-01 8:11
Jake Palmer10-Jul-01 8:11 
AnswerRe: Virtual message map functions? Pin
Tomasz Sowinski10-Jul-01 8:19
Tomasz Sowinski10-Jul-01 8:19 
QuestionAvoid the availability of F8 when loading win2k? Pin
Joan M10-Jul-01 6:27
professionalJoan M10-Jul-01 6:27 
GeneralON_CONTROL_RANGE Pin
10-Jul-01 6:08
suss10-Jul-01 6:08 
GeneralRe: ON_CONTROL_RANGE Pin
Tim Deveaux10-Jul-01 7:08
Tim Deveaux10-Jul-01 7:08 
GeneralNT Service with a GUI Pin
James Spibey10-Jul-01 5:54
James Spibey10-Jul-01 5:54 
GeneralRe: NT Service with a GUI Pin
10-Jul-01 6:28
suss10-Jul-01 6:28 
GeneralRe: NT Service with a GUI Pin
Joan M10-Jul-01 6:33
professionalJoan M10-Jul-01 6:33 
GeneralRe: NT Service with a GUI Pin
Tim Deveaux10-Jul-01 7:21
Tim Deveaux10-Jul-01 7:21 
GeneralRe: NT Service with a GUI Pin
Giles10-Jul-01 8:28
Giles10-Jul-01 8:28 

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.