Click here to Skip to main content
15,888,106 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dialog focus Pin
Carlos Antollini28-Jun-01 6:42
Carlos Antollini28-Jun-01 6:42 
GeneralRe: dialog focus Pin
28-Jun-01 6:53
suss28-Jun-01 6:53 
QuestionSharing dynamically allocated data across DLL instances? Pin
Jim A. Johnson28-Jun-01 5:38
Jim A. Johnson28-Jun-01 5:38 
AnswerRe: Sharing dynamically allocated data across DLL instances? Pin
Stephen Kellett29-Jun-01 5:25
Stephen Kellett29-Jun-01 5:25 
GeneralRe: Sharing dynamically allocated data across DLL instances? Pin
Jamie Nordmeyer6-Aug-01 18:14
Jamie Nordmeyer6-Aug-01 18:14 
AnswerRe: Sharing dynamically allocated data across DLL instances? Pin
Matt Gullett6-Aug-01 18:48
Matt Gullett6-Aug-01 18:48 
AnswerRe: Sharing dynamically allocated data across DLL instances? Pin
6-Aug-01 19:05
suss6-Aug-01 19:05 
Questionkeyboard Hook that before was working outsida a DLL now it don't... could you take a look at it? Pin
Joan M28-Jun-01 5:37
professionalJoan M28-Jun-01 5:37 
Hello, today I've done my first DLL...

----------------------------------------
Environment:
VC++6 SP4.
MFC DLL.
The DLL must be called from a service.
----------------------------------------

I have placed on it the code that worked for me in another program.

I have exported the function (there is only one function in the DLL) using __declspec (dllexport) in the ".h" file, after doing so I have modified the DEF file and I've placed on it the name of the function a whitespace and @1.

(I don't know why the compiler knows wich is the function owner of that name, but this is only a little thing...)

After doing so I've compiled && linked the DLL, the service exe and the dll are in their respective RELEASE modes.

if in the dll function that starts the keyboard hook I write down a AfxGetApp()->m_hInstance, it crashes, if I write there a NULL, it doesn't make anything and if I write there a GetModuleHandle("aaa.DLL") it don't make anything too.

the code is correct (I think, at least it worked outside the DLL) and I know that I call the f(x) in the DLL because of some messageboxes placed in the DLL f(x).

I don't know why the keyboard hook is not working.

I need a Wide system keyboard hook...

As always thank you very much for your time and help.

if anybody wants to see the code or something else I can send it, I've not done it now because it would be a large download for everybody.
QuestionHow to capture an app's stdout? Pin
Alvaro Mendez28-Jun-01 5:22
Alvaro Mendez28-Jun-01 5:22 
AnswerRe: How to capture an app's stdout? Pin
Tomasz Sowinski28-Jun-01 5:35
Tomasz Sowinski28-Jun-01 5:35 
GeneralMessage Box Pin
28-Jun-01 4:57
suss28-Jun-01 4:57 
GeneralRe: Message Box Pin
Michael P Butler29-Jun-01 3:22
Michael P Butler29-Jun-01 3:22 
GeneralRe: Message Box Pin
29-Jun-01 4:34
suss29-Jun-01 4:34 
GeneralRe: Message Box Pin
2-Jul-01 20:06
suss2-Jul-01 20:06 
GeneralWM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 4:03
suss28-Jun-01 4:03 
GeneralRe: WM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 4:50
suss28-Jun-01 4:50 
GeneralRe: WM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 5:15
suss28-Jun-01 5:15 
GeneralRe: WM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 9:49
suss28-Jun-01 9:49 
Generalcatch value with vc++ Pin
Gérald Mercet28-Jun-01 4:03
Gérald Mercet28-Jun-01 4:03 
Generalcatch value with vc++ Pin
28-Jun-01 3:59
suss28-Jun-01 3:59 
GeneralVirtual directory Pin
28-Jun-01 2:59
suss28-Jun-01 2:59 
GeneralRe: Virtual directory Pin
Erik Funkenbusch28-Jun-01 11:17
Erik Funkenbusch28-Jun-01 11:17 
QuestionHow to use RegQueryMultipleValues fnc Pin
28-Jun-01 2:44
suss28-Jun-01 2:44 
Generalmouse click problem in ownerdraw menu Pin
Paul Goodyear28-Jun-01 1:47
Paul Goodyear28-Jun-01 1:47 
GeneralRe: mouse click problem in ownerdraw menu Pin
Paul Goodyear28-Jun-01 5:33
Paul Goodyear28-Jun-01 5:33 

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.