Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFirst error for the night.... Pin
Nick Parker29-Oct-02 17:06
protectorNick Parker29-Oct-02 17:06 
GeneralRe: First error for the night.... Pin
Anatari29-Oct-02 17:28
Anatari29-Oct-02 17:28 
GeneralRe: First error for the night.... Pin
Nick Parker29-Oct-02 17:39
protectorNick Parker29-Oct-02 17:39 
GeneralRe: First error for the night.... Pin
Anatari29-Oct-02 17:48
Anatari29-Oct-02 17:48 
GeneralRe: First error for the night.... Pin
Nick Parker29-Oct-02 17:50
protectorNick Parker29-Oct-02 17:50 
GeneralRe: First error for the night.... Pin
Christian Graus29-Oct-02 18:21
protectorChristian Graus29-Oct-02 18:21 
GeneralRe: First error for the night.... Pin
Nick Parker29-Oct-02 18:28
protectorNick Parker29-Oct-02 18:28 
GeneralGetWindowLong problem Pin
Dan_P29-Oct-02 16:55
Dan_P29-Oct-02 16:55 
Hi,

I'm trying to get the address of the windows proc of a running application using:

WNDPROC AppWndProc = (WNDPROC)GetWindowLong(m_hWnd, GWL_WNDPROC);<br />
	DWORD errVal = GetLastError();


The call to GetWindowLong fails (returns null) and the value returned from GetLastError() is 5, which is an access denied result.

I'm not sure if i'm missing something, but how is it that this application is preventing me from getting this address ? Is there some way to prevent people from using GetWindowLong ? I want to subclass this app so that when a user moves it i can be notified as well.

Thanks
GeneralRe: GetWindowLong problem Pin
Paul M Watt29-Oct-02 17:12
mentorPaul M Watt29-Oct-02 17:12 
GeneralPlease Help!! File Transfer!!! Pin
Pett29-Oct-02 16:22
Pett29-Oct-02 16:22 
GeneralRe: Please Help!! File Transfer!!! Pin
Christian Graus29-Oct-02 18:24
protectorChristian Graus29-Oct-02 18:24 
GeneralRe: Please Help!! File Transfer!!! Pin
Pett30-Oct-02 1:28
Pett30-Oct-02 1:28 
Questionactive window hwnd? Pin
imran_rafique29-Oct-02 15:38
imran_rafique29-Oct-02 15:38 
AnswerRe: active window hwnd? Pin
Christian Graus29-Oct-02 15:55
protectorChristian Graus29-Oct-02 15:55 
GeneralRe: active window hwnd? Pin
imran_rafique29-Oct-02 16:11
imran_rafique29-Oct-02 16:11 
GeneralCompiling questions Pin
00zero29-Oct-02 15:14
00zero29-Oct-02 15:14 
GeneralRe: Compiling questions Pin
Christian Graus29-Oct-02 15:22
protectorChristian Graus29-Oct-02 15:22 
GeneralAdding a Toolbar Pin
Anonymous29-Oct-02 14:08
Anonymous29-Oct-02 14:08 
GeneralRe: Adding a Toolbar Pin
Christian Graus29-Oct-02 15:23
protectorChristian Graus29-Oct-02 15:23 
GeneralIM Client Pin
WSK29-Oct-02 14:00
WSK29-Oct-02 14:00 
GeneralRe: IM Client Pin
Paul Ingles29-Oct-02 14:26
Paul Ingles29-Oct-02 14:26 
GeneralSDI Question Pin
Cerb29-Oct-02 13:54
Cerb29-Oct-02 13:54 
GeneralRe: SDI Question Pin
Maximilien29-Oct-02 15:02
Maximilien29-Oct-02 15:02 
GeneralRe: SDI Question Pin
Anatari29-Oct-02 17:33
Anatari29-Oct-02 17:33 
QuestionQuestion, How to fill modal dialog combo box at runtime? Pin
work_to_live29-Oct-02 13:25
work_to_live29-Oct-02 13:25 

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.