Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWhere can i find a good socket class Pin
Atif Mushtaq25-Jan-04 19:21
Atif Mushtaq25-Jan-04 19:21 
GeneralRe: Where can i find a good socket class Pin
Rickard Andersson2025-Jan-04 21:05
Rickard Andersson2025-Jan-04 21:05 
GeneralRe: Where can i find a good socket class Pin
toxcct25-Jan-04 22:29
toxcct25-Jan-04 22:29 
GeneralRe: Where can i find a good socket class Pin
Rickard Andersson2025-Jan-04 22:35
Rickard Andersson2025-Jan-04 22:35 
GeneralRe: Where can i find a good socket class Pin
toxcct25-Jan-04 23:10
toxcct25-Jan-04 23:10 
GeneralRe: Where can i find a good socket class Pin
Imran Farooqui26-Jan-04 0:52
Imran Farooqui26-Jan-04 0:52 
GeneralRe: Where can i find a good socket class Pin
Atif Mushtaq26-Jan-04 1:43
Atif Mushtaq26-Jan-04 1:43 
GeneralMFC DLG - Killing an app Pin
Ashman25-Jan-04 19:17
Ashman25-Jan-04 19:17 
Hi, Im using the FindWindow() function to find an application called Fullscreen.exe and then sending a WM_CLOSE call to it. However I get this error:

nPOSDlg.cpp(367) : error C2440: '=' : cannot convert from 'class CWnd *' to 'struct HWND__ *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
nPOSDlg.cpp(374) : error C2660: 'SendMessageA' : function does not take 4 parameters



This is the code that I have put into my OnAppExit(); because I want it to kill Fullscreen.exe when nPOSdlg closes.

HWND hWnd;<br />
	hWnd = FindWindow(NULL, TEXT("Fullscreen"));<br />
	if(hWnd == NULL)<br />
	{<br />
    	}<br />
	else<br />
	{<br />
    SendMessage(hWnd, WM_CLOSE, 0, 0);<br />
    	}


How do I convert from CWnd to HWND or what do I need to do?

Please help, thanks!

Ashman
GeneralRe: MFC DLG - Killing an app Pin
ohadp25-Jan-04 19:26
ohadp25-Jan-04 19:26 
GeneralReadFile Return Value Pin
IceBerG7125-Jan-04 17:38
IceBerG7125-Jan-04 17:38 
GeneralPropertySheet Pin
Ming Yan25-Jan-04 17:36
Ming Yan25-Jan-04 17:36 
GeneralRe: PropertySheet Pin
David Crow26-Jan-04 2:42
David Crow26-Jan-04 2:42 
Generalcreating web server using isapi Pin
laurentz_wei25-Jan-04 16:45
laurentz_wei25-Jan-04 16:45 
Generalwebserver using cgi Pin
laurentz_wei25-Jan-04 16:17
laurentz_wei25-Jan-04 16:17 
GeneralPostMessage(): Debug vs. Release Pin
reymano25-Jan-04 14:21
reymano25-Jan-04 14:21 
GeneralRe: PostMessage(): Debug vs. Release Pin
Michael Dunn25-Jan-04 18:37
sitebuilderMichael Dunn25-Jan-04 18:37 
GeneralRe: PostMessage(): Debug vs. Release Pin
reymano26-Jan-04 5:40
reymano26-Jan-04 5:40 
GeneralMFC - Displaying time in dialog Pin
Ashman25-Jan-04 12:04
Ashman25-Jan-04 12:04 
GeneralRe: MFC - Displaying time in dialog Pin
Maximilien25-Jan-04 12:47
Maximilien25-Jan-04 12:47 
GeneralRe: MFC - Displaying time in dialog Pin
toxcct25-Jan-04 22:26
toxcct25-Jan-04 22:26 
GeneralKernel32.dll DBG error Pin
TriggerJ25-Jan-04 11:21
TriggerJ25-Jan-04 11:21 
GeneralRe: Kernel32.dll DBG error Pin
toxcct25-Jan-04 22:07
toxcct25-Jan-04 22:07 
GeneralRe: Kernel32.dll DBG error Pin
TriggerJ26-Jan-04 2:25
TriggerJ26-Jan-04 2:25 
GeneralRe: Kernel32.dll DBG error Pin
toxcct27-Jan-04 1:44
toxcct27-Jan-04 1:44 
Questionsolving Brouncker's fraction expansion? Pin
a_hyams25-Jan-04 11:12
a_hyams25-Jan-04 11:12 

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.