Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: console to mfc again.. Pin
David Crow15-Jun-05 6:14
David Crow15-Jun-05 6:14 
GeneralRe: console to mfc again.. Pin
Assariah kingsly15-Jun-05 6:22
Assariah kingsly15-Jun-05 6:22 
GeneralRe: console to mfc again.. Pin
David Crow15-Jun-05 7:41
David Crow15-Jun-05 7:41 
Generalsearch engine Pin
gamitech14-Jun-05 8:26
gamitech14-Jun-05 8:26 
GeneralRe: search engine Pin
David Crow14-Jun-05 8:31
David Crow14-Jun-05 8:31 
GeneralXML namespace problem i think Pin
LCI14-Jun-05 3:40
LCI14-Jun-05 3:40 
GeneralRe: XML namespace problem i think Pin
Michael Dunn14-Jun-05 4:17
sitebuilderMichael Dunn14-Jun-05 4:17 
GeneralRe: XML namespace problem i think Pin
LCI14-Jun-05 7:24
LCI14-Jun-05 7:24 
GeneralRe: XML namespace problem i think Pin
Tom Archer14-Jun-05 7:34
Tom Archer14-Jun-05 7:34 
GeneralRe: XML namespace problem i think Pin
LCI14-Jun-05 7:41
LCI14-Jun-05 7:41 
GeneralRe: XML namespace problem i think Pin
Tom Archer14-Jun-05 8:25
Tom Archer14-Jun-05 8:25 
GeneralRe: XML namespace problem i think Pin
Tom Archer14-Jun-05 8:31
Tom Archer14-Jun-05 8:31 
GeneralRe: XML namespace problem i think Pin
LCI14-Jun-05 8:51
LCI14-Jun-05 8:51 
GeneralRe: XML namespace problem i think Pin
Tom Archer14-Jun-05 10:37
Tom Archer14-Jun-05 10:37 
GeneralRe: XML namespace problem i think Pin
LCI14-Jun-05 10:56
LCI14-Jun-05 10:56 
GeneralRe: XML namespace problem i think Pin
Tom Archer14-Jun-05 11:20
Tom Archer14-Jun-05 11:20 
GeneralRe: XML namespace problem i think Pin
LCI14-Jun-05 11:30
LCI14-Jun-05 11:30 
GeneralRe: XML namespace problem i think Pin
Tom Archer14-Jun-05 11:35
Tom Archer14-Jun-05 11:35 
GeneralRe: XML namespace problem i think Pin
LCI14-Jun-05 11:37
LCI14-Jun-05 11:37 
GeneralRe: XML namespace problem i think Pin
LCI14-Jun-05 11:48
LCI14-Jun-05 11:48 
GeneralRe: XML namespace problem i think Pin
Tom Archer14-Jun-05 12:17
Tom Archer14-Jun-05 12:17 
GeneralRe: XML namespace problem i think Pin
LCI15-Jun-05 5:56
LCI15-Jun-05 5:56 
GeneralMultiple languages in single resource file Pin
senseilee14-Jun-05 3:38
senseilee14-Jun-05 3:38 
GeneralRe: Multiple languages in single resource file Pin
Blake Miller14-Jun-05 9:19
Blake Miller14-Jun-05 9:19 
Are you using MFC?

Because 23 out of 24 calls to find a resource only use FindResource instead of FindResourceEx.

The FindResource function determines the location of a resource with the specified type and name in the specified module. To specify a language, use the FindResourceEx function.

I am 'guessing' that the FindResource function returns the first resource it finds matching the module, name, and type, regardles if it matches the user's current language settings or not. For exmaple, look into the MFC source code at AfxFindResourceHandle.

Your best bet might be to write a wrapper for FindResource, and get it linked ahead of ALL the other libraries your app uses, or else hijack it. It can obtain the user's current language (see AfxGetPropSheetFont in MFC source as a decent example) and then you might have better luck.

Review these article (by title) on CP for some ideas:
APIHijack - A Library for easy DLL function hooking.
DLL Injection and function interception tutorial
HookImportFunctionByName v1.0
General[out] parameters for ActiveX control interface Pin
Ian Bowler14-Jun-05 6:31
Ian Bowler14-Jun-05 6:31 

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.