Click here to Skip to main content
15,898,987 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with worker thread Pin
ThatsAlok8-Sep-05 18:16
ThatsAlok8-Sep-05 18:16 
QuestionEdit a record in a DB table opened with ODBC Pin
sirtimid8-Sep-05 3:52
sirtimid8-Sep-05 3:52 
AnswerRe: Edit a record in a DB table opened with ODBC Pin
David Crow8-Sep-05 6:01
David Crow8-Sep-05 6:01 
QuestionUsing the Registry Pin
sweep1238-Sep-05 3:39
sweep1238-Sep-05 3:39 
AnswerRe: Using the Registry Pin
kakan8-Sep-05 3:55
professionalkakan8-Sep-05 3:55 
AnswerRe: Using the Registry Pin
Marc Soleda8-Sep-05 4:02
Marc Soleda8-Sep-05 4:02 
AnswerRe: Using the Registry Pin
David Crow8-Sep-05 7:40
David Crow8-Sep-05 7:40 
Questionhow do I turn off a hidden variable?? Pin
IlanTal8-Sep-05 3:37
IlanTal8-Sep-05 3:37 
Questionmap<string, set<string> > Pin
Achim Klein8-Sep-05 3:15
Achim Klein8-Sep-05 3:15 
AnswerRe: map<string, set<string> > Pin
Niklas L8-Sep-05 3:42
Niklas L8-Sep-05 3:42 
GeneralRe: map<string, set<string> > Pin
Achim Klein8-Sep-05 4:01
Achim Klein8-Sep-05 4:01 
AnswerRe: map<string, set<string> > Pin
Niklas L8-Sep-05 3:58
Niklas L8-Sep-05 3:58 
GeneralRe: map<string, set<string> > Pin
Niklas L8-Sep-05 4:01
Niklas L8-Sep-05 4:01 
GeneralRe: map<string, set<string> > Pin
Achim Klein8-Sep-05 4:08
Achim Klein8-Sep-05 4:08 
GeneralRe: map<string, set<string> > Pin
Niklas L8-Sep-05 4:29
Niklas L8-Sep-05 4:29 
GeneralRe: map<string, set<string> > Pin
Achim Klein8-Sep-05 5:43
Achim Klein8-Sep-05 5:43 
Questionfunction pointers and dlls Pin
dave2k8-Sep-05 2:50
dave2k8-Sep-05 2:50 
hi guys.

i am trying to use pointers to functions in my dll to call a function in my .exe

i am storing my pointer in a global variable, so it can be called by any function.

the trouble is, i am finding that it can be only called by my addeventCallback function

i.e.
Code:
#include "dll.h"


EVENTCALLBACK evtcb = NULL;


BOOL WINAPI AddEventCallback(EVENTCALLBACK ptr) {
evtcb = ptr;
evtcb("pass on the message!");
evtcb("pass on the message!");
}


LRESULT CALLBACK GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam) {
if(nCode < 0)
return CallNextHookEx(0, nCode, wParam, lParam);


evtcb("pass on the message!");

this displays "pass on the message" twicein the console, but when i try to cal evtcb() from GetMsgProc, it does not show again, meaning it has failed somewhere.

i know my GetMsgProc is fine as i have used other indicators such as MessageBepp(0) to show it is working.

what is the problem here?

cheers.

-- modified at 8:50 Thursday 8th September, 2005
QuestionAbout Wizard based project Pin
parims8-Sep-05 1:53
parims8-Sep-05 1:53 
AnswerRe: About Wizard based project Pin
Cedric Moonen8-Sep-05 2:07
Cedric Moonen8-Sep-05 2:07 
QuestionRetrieve text from cursor position Pin
Samik Karmakar8-Sep-05 1:47
Samik Karmakar8-Sep-05 1:47 
AnswerRe: Retrieve text from cursor position Pin
Cedric Moonen8-Sep-05 2:08
Cedric Moonen8-Sep-05 2:08 
GeneralRe: Retrieve text from cursor position Pin
Samik Karmakar8-Sep-05 2:23
Samik Karmakar8-Sep-05 2:23 
GeneralRe: Retrieve text from cursor position Pin
David Crow8-Sep-05 2:44
David Crow8-Sep-05 2:44 
QuestionAltering pattern for a brush Pin
Niklas L8-Sep-05 1:21
Niklas L8-Sep-05 1:21 
QuestionHow to play mp3 repeatedly Pin
Laffis8-Sep-05 1:15
Laffis8-Sep-05 1:15 

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.