Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows 7 visual studio 2008 problem. Pin
Richard MacCutchan1-Aug-12 7:03
mveRichard MacCutchan1-Aug-12 7:03 
GeneralRe: Windows 7 visual studio 2008 problem. Pin
Member 41945931-Aug-12 9:24
Member 41945931-Aug-12 9:24 
GeneralRe: Windows 7 visual studio 2008 problem. Pin
Richard MacCutchan1-Aug-12 21:29
mveRichard MacCutchan1-Aug-12 21:29 
GeneralRe: Windows 7 visual studio 2008 problem. Pin
Member 41945932-Aug-12 6:22
Member 41945932-Aug-12 6:22 
GeneralRe: Windows 7 visual studio 2008 problem. Pin
Member 419459331-Jul-12 7:37
Member 419459331-Jul-12 7:37 
GeneralThe third way to load Dynamic-Link Libraries? Pin
Falconapollo29-Jul-12 4:58
Falconapollo29-Jul-12 4:58 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
Richard Andrew x6429-Jul-12 6:06
professionalRichard Andrew x6429-Jul-12 6:06 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
pasztorpisti29-Jul-12 7:51
pasztorpisti29-Jul-12 7:51 
I wrote such piece of code and its surprisingly short. It has many drawbacks you might not spot at first sight but here is a list that came to my mind from the time I played with this: some module related features won't work because your DLL doesn't have a valid windows HMODULE/HINSTANCE handle, so you can't easily use for example resources, your library wont receive DLL_THREAD_ATTACH/DETACH events, you have to write your own GetProcAddress(). You can also use Resources (for examaple dialogs) if you write your own FindResource() and you use CreateDialogIndirect() instead of CreateDialog(), lot of resources have an "indirect" version fortunately. To sum it up: its pain in the ass to load your library "manually" but its fun to experiment with it, and it can hide a "hack" very well in the process space. With this load method you can skip loading the DLL PE header that makes thing harder to detect even for memory sweeps, thats why we used it.
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
Richard Andrew x6429-Jul-12 8:08
professionalRichard Andrew x6429-Jul-12 8:08 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
pasztorpisti29-Jul-12 8:20
pasztorpisti29-Jul-12 8:20 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
Richard Andrew x6429-Jul-12 8:22
professionalRichard Andrew x6429-Jul-12 8:22 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
pasztorpisti29-Jul-12 8:28
pasztorpisti29-Jul-12 8:28 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
pasztorpisti29-Jul-12 12:51
pasztorpisti29-Jul-12 12:51 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
Richard Andrew x6429-Jul-12 13:06
professionalRichard Andrew x6429-Jul-12 13:06 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
pasztorpisti29-Jul-12 13:07
pasztorpisti29-Jul-12 13:07 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
pasztorpisti30-Jul-12 4:31
pasztorpisti30-Jul-12 4:31 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
Richard Andrew x6430-Jul-12 6:07
professionalRichard Andrew x6430-Jul-12 6:07 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
jschell29-Jul-12 6:49
jschell29-Jul-12 6:49 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
Falconapollo29-Jul-12 14:17
Falconapollo29-Jul-12 14:17 
GeneralRe: The third way to load Dynamic-Link Libraries? Pin
Richard Andrew x6429-Jul-12 18:18
professionalRichard Andrew x6429-Jul-12 18:18 
QuestionMFC app only works on one system... I need ideas... Pin
charlieg28-Jul-12 17:42
charlieg28-Jul-12 17:42 
AnswerRe: MFC app only works on one system... I need ideas... Pin
Richard MacCutchan28-Jul-12 21:03
mveRichard MacCutchan28-Jul-12 21:03 
GeneralRe: MFC app only works on one system... I need ideas... Pin
charlieg29-Jul-12 3:03
charlieg29-Jul-12 3:03 
AnswerRe: MFC app only works on one system... I need ideas... Pin
Wes Aday29-Jul-12 1:52
professionalWes Aday29-Jul-12 1:52 
GeneralRe: MFC app only works on one system... I need ideas... Pin
charlieg29-Jul-12 3:09
charlieg29-Jul-12 3:09 

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.