Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalipc programming Pin
Member 10128694-May-04 3:27
Member 10128694-May-04 3:27 
GeneralMAPI Pin
asv4-May-04 3:15
asv4-May-04 3:15 
GeneralRe: MAPI Pin
David Crow4-May-04 3:54
David Crow4-May-04 3:54 
GeneralRe: MAPI Pin
asv4-May-04 4:05
asv4-May-04 4:05 
GeneralRe: MAPI Pin
David Crow4-May-04 4:57
David Crow4-May-04 4:57 
GeneralRe: MAPI Pin
asv4-May-04 19:06
asv4-May-04 19:06 
GeneralMFC Exntension-DLL Resource-Access question Pin
ohadp4-May-04 3:01
ohadp4-May-04 3:01 
GeneralRe: MFC Exntension-DLL Resource-Access question Pin
Blake Miller6-May-04 8:18
Blake Miller6-May-04 8:18 
The CDynLinkLibrary is a list of libraries loaded dynamically during the run of the MFC program. When the MFC program requires a resource, it will traverse the chain of the dll in the list and stop once it finds the resource that matches. If you want the MfcExt.dll to only use resources from the MfcExt-Res.dll, you have two easy choices as I see it:

1. Always adjust the AfxSetResourceHandle() prior to any calls within MfcExt.dll that might load resources to the MfcExt-Res.dll and then set it BACK once you are done loading resources, which will cause it to load resources from the desired resource dll

2. Only use resouce identifiers in the MfcExt-Res.dll that do not overlap any within the MfcApp-Res.dll module. When the MfcApp.exe tries to load a resource, it will check MfcApp-Res.dll and then search in MfcExt-Res.dll. The MfcExt.dll will do the same search, but it will only find the resources in the MfcApp-Res.dll.

I prefer to PLAN my resource utilitization, assign numerical identifier ranges, and go with option 2 myself. It saves tracking down resource loading and a lot of busy work associaed with option 1.

GeneralConvert HDC to long Pin
Kannan Kalyanaraman4-May-04 3:00
Kannan Kalyanaraman4-May-04 3:00 
GeneralRe: Convert HDC to long Pin
Anonymous4-May-04 3:12
Anonymous4-May-04 3:12 
GeneralRe: Convert HDC to long Pin
Kannan Kalyanaraman4-May-04 3:35
Kannan Kalyanaraman4-May-04 3:35 
GeneralO.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Kuniva4-May-04 2:09
Kuniva4-May-04 2:09 
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Kuniva4-May-04 2:15
Kuniva4-May-04 2:15 
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Mike Dimmick4-May-04 5:14
Mike Dimmick4-May-04 5:14 
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Kuniva4-May-04 8:11
Kuniva4-May-04 8:11 
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Mike Dimmick4-May-04 12:11
Mike Dimmick4-May-04 12:11 
GeneralCFile size in bytes Pin
Jamie Kenyon4-May-04 2:02
Jamie Kenyon4-May-04 2:02 
GeneralRe: CFile size in bytes Pin
David Crow4-May-04 2:16
David Crow4-May-04 2:16 
GeneralRe: CFile size in bytes Pin
andyxia4-May-04 2:33
andyxia4-May-04 2:33 
GeneralRe: CFile size in bytes Pin
Alexander M.,4-May-04 3:18
Alexander M.,4-May-04 3:18 
GeneralRe: CFile size in bytes Pin
Jamie Kenyon4-May-04 4:50
Jamie Kenyon4-May-04 4:50 
QuestionSetDIBitsToDevice causes image to flip, why? Pin
uus994-May-04 2:02
uus994-May-04 2:02 
AnswerRe: SetDIBitsToDevice causes image to flip, why? Pin
Monty24-May-04 2:15
Monty24-May-04 2:15 
GeneralRe: SetDIBitsToDevice causes image to flip, why? Pin
uus994-May-04 2:27
uus994-May-04 2:27 
GeneralC2440: 'static_cast' Error Pin
sweep1234-May-04 1:51
sweep1234-May-04 1:51 

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.