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

C / C++ / MFC

 
GeneralRe: IBM DB2 SQL Error Code to String Pin
Christopher Stratmann3-Jul-06 5:32
Christopher Stratmann3-Jul-06 5:32 
QuestionProblem in CSocket Pin
zahid_ash3-Jul-06 0:34
zahid_ash3-Jul-06 0:34 
AnswerRe: Problem in CSocket Pin
Ganesh_T3-Jul-06 2:29
Ganesh_T3-Jul-06 2:29 
QuestionVisual C++ Pin
tamasan3-Jul-06 0:16
tamasan3-Jul-06 0:16 
AnswerRe: Visual C++ Pin
_AnsHUMAN_ 3-Jul-06 0:20
_AnsHUMAN_ 3-Jul-06 0:20 
AnswerRe: Visual C++ Pin
Benoy Bose3-Jul-06 1:27
Benoy Bose3-Jul-06 1:27 
AnswerRe: Visual C++ [modified] Pin
Niklas L3-Jul-06 3:22
Niklas L3-Jul-06 3:22 
QuestionTrying to Display HWND as String Pin
redfish342-Jul-06 23:37
redfish342-Jul-06 23:37 
I am a beginner. I am trying to display the HWND when i use certain Win32 functions such as GetForegroundWindow() for debugging purposes. When i use MessageBox or OutputDebugString such as below...

m_foreHwnd1 = GetForegroundWindow();
MessageBox(NULL, (LPCSTR)m_foreHwnd1, "INFO", MB_OK);

OutputDebugString("ForeHwnd1: ");
OutputDebugString((LPCSTR)m_foreHwnd1);
OutputDebugString("\n");

... I get errors like the following:

First-chance exception at 0x77e26673 in SendFocusWin.exe: 0xC0000005: Access violation reading location 0x00090548.
Unhandled exception at 0x77e26673 in SendFocusWin.exe: 0xC0000005: Access violation reading location 0x00090548.

Can i display the HWND so i can see what the heck is going on in my code? What is the How To?


AnswerRe: Trying to Display HWND as String Pin
Justin Tay2-Jul-06 23:58
Justin Tay2-Jul-06 23:58 
AnswerRe: Trying to Display HWND as String Pin
see me2-Jul-06 23:58
see me2-Jul-06 23:58 
AnswerRe: Trying to Display HWND as String Pin
Abhi Lahare3-Jul-06 0:04
Abhi Lahare3-Jul-06 0:04 
AnswerRe: Trying to Display HWND as String Pin
see me3-Jul-06 0:19
see me3-Jul-06 0:19 
AnswerWrong Forum Pin
redfish343-Jul-06 23:03
redfish343-Jul-06 23:03 
Questionplz Tell me Pin
ashish dogra2-Jul-06 23:34
ashish dogra2-Jul-06 23:34 
AnswerRe: plz Tell me Pin
_AnsHUMAN_ 2-Jul-06 23:44
_AnsHUMAN_ 2-Jul-06 23:44 
GeneralRe: plz Tell me Pin
ashish dogra3-Jul-06 0:02
ashish dogra3-Jul-06 0:02 
GeneralRe: plz Tell me Pin
_AnsHUMAN_ 3-Jul-06 0:05
_AnsHUMAN_ 3-Jul-06 0:05 
GeneralRe: plz Tell me Pin
Abhi Lahare3-Jul-06 0:12
Abhi Lahare3-Jul-06 0:12 
QuestionListbox Scrollbar issue Pin
Sarath C2-Jul-06 23:32
Sarath C2-Jul-06 23:32 
QuestionChanging Active View Pin
_Tom_2-Jul-06 23:27
_Tom_2-Jul-06 23:27 
AnswerRe: Changing Active View Pin
Viorel.2-Jul-06 23:38
Viorel.2-Jul-06 23:38 
GeneralRe: Changing Active View Pin
_Tom_3-Jul-06 0:59
_Tom_3-Jul-06 0:59 
GeneralRe: Changing Active View Pin
Viorel.3-Jul-06 1:26
Viorel.3-Jul-06 1:26 
AnswerRe: Changing Active View [modified] Pin
Cliff Hatch3-Jul-06 11:36
Cliff Hatch3-Jul-06 11:36 
QuestionUrgent :- How to read the unicode file with C/C++ Pin
Rocky Marrone2-Jul-06 23:26
Rocky Marrone2-Jul-06 23:26 

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.