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

C / C++ / MFC

 
GeneralRe: Tab control clips its children Pin
PJ Arends10-Jul-04 12:26
professionalPJ Arends10-Jul-04 12:26 
GeneralRe: Tab control clips its children Pin
peterchen10-Jul-04 21:55
peterchen10-Jul-04 21:55 
GeneralRe: Tab control clips its children Pin
Jörgen Sigvardsson10-Jul-04 23:11
Jörgen Sigvardsson10-Jul-04 23:11 
QuestionHow do I get extension button coords from IE? Pin
foxbat10-Jul-04 6:59
foxbat10-Jul-04 6:59 
GeneralCannot load strings from VC++String table Pin
femi ashiru10-Jul-04 6:44
femi ashiru10-Jul-04 6:44 
GeneralRe: Cannot load strings from VC++String table Pin
Johan Rosengren10-Jul-04 9:16
Johan Rosengren10-Jul-04 9:16 
GeneralRe: Cannot load strings from VC++String table Pin
femi ashiru10-Jul-04 15:53
femi ashiru10-Jul-04 15:53 
GeneralRe: Cannot load strings from VC++String table Pin
Johan Rosengren10-Jul-04 20:50
Johan Rosengren10-Jul-04 20:50 
It is possible to load a string in a DLL, but there are some things that will have to be considered first. A short background:

Resources are loaded from an application/DLL using the app/DLL HINSTANCE (that is a unique identifier for this instance of the app/DLL - a little bit like a window handle for the whole module, if I'm allowed to stretch my analogies). MFC hides this, in the API-wrappers normally taking the HINSTANCE as an in-parameter (such as ::LoadString), a hidden HINSTANCE for the application is used. A DLL gets to be a part of the application, so if you access resources from the DLL, they are loaded from the application instead of the DLL. Fiasco!

It is possible to switch the context over to the DLL for the call, you will want to search for and read about - firstly - AfxSetResourceHandle and secondly AFX_MANAGE_STATE in MSDN.
Generalmenubar custom draw Pin
s o v a n n10-Jul-04 5:46
s o v a n n10-Jul-04 5:46 
GeneralRe: menubar custom draw Pin
Mike Dimmick10-Jul-04 7:44
Mike Dimmick10-Jul-04 7:44 
GeneralCTreeView and CImagelist Pin
Monty210-Jul-04 3:57
Monty210-Jul-04 3:57 
GeneralRe: CTreeView and CImagelist Pin
inlandchris10-Jul-04 5:54
inlandchris10-Jul-04 5:54 
Generalplease help me. winsock help Pin
deep_george9-Jul-04 22:55
sussdeep_george9-Jul-04 22:55 
GeneralRe: please help me. winsock help Pin
Mike Dimmick10-Jul-04 7:47
Mike Dimmick10-Jul-04 7:47 
Questionfopen,ftell & AMD64..... they fails??!? Pin
Paolo Ponzano9-Jul-04 22:29
Paolo Ponzano9-Jul-04 22:29 
AnswerRe: fopen,ftell & AMD64..... they fails??!? Pin
bikram singh11-Jul-04 3:57
bikram singh11-Jul-04 3:57 
Generaltracking a service Pin
Rubin Boban9-Jul-04 22:20
Rubin Boban9-Jul-04 22:20 
GeneralRe: tracking a service Pin
ThatsAlok10-Jul-04 5:27
ThatsAlok10-Jul-04 5:27 
GeneralRe: tracking a service Pin
bikram singh11-Jul-04 0:14
bikram singh11-Jul-04 0:14 
GeneralA intresting problem,hope any Felloow Programmer solve it Pin
ThatsAlok9-Jul-04 22:16
ThatsAlok9-Jul-04 22:16 
GeneralRe: A intresting problem,hope any Felloow Programmer solve it Pin
Michael P Butler10-Jul-04 0:57
Michael P Butler10-Jul-04 0:57 
GeneralRe: A intresting problem,hope any Felloow Programmer solve it Pin
ThatsAlok10-Jul-04 3:10
ThatsAlok10-Jul-04 3:10 
GeneralRe: A intresting problem,hope any Felloow Programmer solve it Pin
Johan Rosengren10-Jul-04 3:39
Johan Rosengren10-Jul-04 3:39 
GeneralRe: A intresting problem,hope any Felloow Programmer solve it Pin
ThatsAlok10-Jul-04 5:00
ThatsAlok10-Jul-04 5:00 
GeneralRe: A intresting problem,hope any Felloow Programmer solve it Pin
Johan Rosengren10-Jul-04 8:55
Johan Rosengren10-Jul-04 8:55 

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.