Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Change of Background Color of dialog box Pin
Eytukan16-Dec-05 3:38
Eytukan16-Dec-05 3:38 
GeneralRe: Change of Background Color of dialog box Pin
khan++16-Dec-05 3:58
khan++16-Dec-05 3:58 
GeneralRe: Change of Background Color of dialog box Pin
VikramDelhi16-Dec-05 4:52
VikramDelhi16-Dec-05 4:52 
GeneralRe: Change of Background Color of dialog box Pin
Eytukan16-Dec-05 5:02
Eytukan16-Dec-05 5:02 
GeneralRe: Change of Background Color of dialog box Pin
ddmcr16-Dec-05 5:46
ddmcr16-Dec-05 5:46 
AnswerRe: Change of Background Color of dialog box Pin
Arman S.16-Dec-05 1:36
Arman S.16-Dec-05 1:36 
AnswerRe: Change of Background Color of dialog box Pin
ThatsAlok16-Dec-05 21:56
ThatsAlok16-Dec-05 21:56 
Questionw32 api (hooking) : Problem with GetProcAddress and callback (__stdcall) function Pin
INA_ctive16-Dec-05 0:53
INA_ctive16-Dec-05 0:53 
I have a function inside a DLL that acts as a hook procedure. it has an __stdcall attribute. When i tried to retrieve the function pointer via another exe with GetProcAddress it always fails, and it only works after i remove the __stdcall attribute. How can i retrieve the function pointer of this callback function properly?
Is there any difference in the way of retriving function pointer of regular function and callback function?

*** code ***
this is the hookproc function:
LRESULT CALLBACK HookProc(int nCode, WPARAM w, LPARAM l)
{
return CallNextHookEx(NULL, nCode, w, l);
}

and this is how i call it in another exe:
FARPROC HookProc = NULL;
HookProc = GetProcAddress(HookDLL, "HookProc");

*** end of code ***

thank you very much.

- Ganeshwara
AnswerRe: w32 api (hooking) : Problem with GetProcAddress and callback (__stdcall) function Pin
James Brown16-Dec-05 1:02
James Brown16-Dec-05 1:02 
GeneralRe: w32 api (hooking) : Problem with GetProcAddress and callback (__stdcall) function Pin
INA_ctive16-Dec-05 1:50
INA_ctive16-Dec-05 1:50 
AnswerRe: w32 api (hooking) : Problem with GetProcAddress and callback (__stdcall) function Pin
Blake Miller16-Dec-05 4:55
Blake Miller16-Dec-05 4:55 
QuestionRich Edit Control Pin
ZaebanB16-Dec-05 0:48
ZaebanB16-Dec-05 0:48 
AnswerRe: Rich Edit Control Pin
Arman S.16-Dec-05 1:40
Arman S.16-Dec-05 1:40 
GeneralRe: Rich Edit Control Pin
ZaebanB16-Dec-05 1:46
ZaebanB16-Dec-05 1:46 
AnswerRe: Rich Edit Control Pin
Mark F.23-Dec-05 10:49
Mark F.23-Dec-05 10:49 
QuestionNetworking Pin
Girish60116-Dec-05 0:25
Girish60116-Dec-05 0:25 
AnswerRe: Networking Pin
VikramDelhi16-Dec-05 4:51
VikramDelhi16-Dec-05 4:51 
AnswerRe: Networking Pin
ThatsAlok16-Dec-05 21:58
ThatsAlok16-Dec-05 21:58 
QuestionCString and STL's string Pin
Putta_V16-Dec-05 0:22
Putta_V16-Dec-05 0:22 
AnswerRe: CString and STL's string Pin
David Crow16-Dec-05 2:48
David Crow16-Dec-05 2:48 
GeneralRe: CString and STL's string Pin
Rage16-Dec-05 4:27
professionalRage16-Dec-05 4:27 
GeneralRe: CString and STL's string Pin
David Crow16-Dec-05 4:38
David Crow16-Dec-05 4:38 
GeneralRe: CString and STL's string Pin
Rage20-Dec-05 6:34
professionalRage20-Dec-05 6:34 
AnswerRe: CString and STL's string Pin
Rage16-Dec-05 4:24
professionalRage16-Dec-05 4:24 
Questionopen a default fil by using the CFileDialog class Pin
vikas amin16-Dec-05 0:16
vikas amin16-Dec-05 0:16 

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.