Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalgetchar() help Pin
gentleguy28-Jan-08 15:04
gentleguy28-Jan-08 15:04 
QuestionRe: getchar() help Pin
David Crow28-Jan-08 15:56
David Crow28-Jan-08 15:56 
GeneralGetForegroundWindow() Pin
dellthinker28-Jan-08 8:12
dellthinker28-Jan-08 8:12 
GeneralRe: GetForegroundWindow() Pin
David Crow28-Jan-08 8:20
David Crow28-Jan-08 8:20 
GeneralRe: GetForegroundWindow() Pin
dellthinker28-Jan-08 13:20
dellthinker28-Jan-08 13:20 
GeneralRe: GetForegroundWindow() Pin
Mark Salsbery28-Jan-08 13:47
Mark Salsbery28-Jan-08 13:47 
GeneralRe: GetForegroundWindow() Pin
dellthinker28-Jan-08 14:48
dellthinker28-Jan-08 14:48 
AnswerRe: GetForegroundWindow() Pin
fd012900228-Jan-08 13:51
fd012900228-Jan-08 13:51 
hi, dellthinker

The string "Notepad" can be in any other window's title.
strstr(s, "Notepad") == 0 doesn't mean any thing.

Try this one, hope it will be helpful.

HWND hWnd = FindWindow("Notepad", NULL);
if (hWnd)
{
    printf("Notepad is open! ");
}
else
{
    printf("Its not open");
}


============
Einstein

Seeing is believing.

Generaltest Pin
Member 462175228-Jan-08 7:44
Member 462175228-Jan-08 7:44 
GeneralRe: test Pin
CPallini28-Jan-08 7:56
mveCPallini28-Jan-08 7:56 
GeneralRe: test Pin
Hamid_RT28-Jan-08 19:16
Hamid_RT28-Jan-08 19:16 
GeneralGDI+ NOISE problem Pin
followait28-Jan-08 5:32
followait28-Jan-08 5:32 
GeneralRe: GDI+ NOISE problem Pin
Iain Clarke, Warrior Programmer28-Jan-08 5:34
Iain Clarke, Warrior Programmer28-Jan-08 5:34 
GeneralRe: GDI+ NOISE problem Pin
followait28-Jan-08 5:46
followait28-Jan-08 5:46 
GeneralQuestion regarding exported C++ symbols/objects Pin
Lea Hayes28-Jan-08 4:24
Lea Hayes28-Jan-08 4:24 
GeneralSmart Card Service Problem Pin
Federico Milano28-Jan-08 2:28
Federico Milano28-Jan-08 2:28 
GeneralRe: Smart Card Service Problem Pin
Maxwell Chen28-Jan-08 3:25
Maxwell Chen28-Jan-08 3:25 
GeneralRe: Smart Card Service Problem Pin
Federico Milano28-Jan-08 3:39
Federico Milano28-Jan-08 3:39 
GeneralRe: Smart Card Service Problem Pin
Maxwell Chen28-Jan-08 4:13
Maxwell Chen28-Jan-08 4:13 
GeneralLinker Error 2005 Pin
quastman28-Jan-08 1:29
quastman28-Jan-08 1:29 
QuestionRe: Linker Error 2005 Pin
CPallini28-Jan-08 1:50
mveCPallini28-Jan-08 1:50 
GeneralRe: Linker Error 2005 Pin
quastman28-Jan-08 2:19
quastman28-Jan-08 2:19 
GeneralRe: Linker Error 2005 Pin
CPallini28-Jan-08 2:32
mveCPallini28-Jan-08 2:32 
GeneralRe: Linker Error 2005 Pin
quastman28-Jan-08 3:10
quastman28-Jan-08 3:10 
GeneralOUT Of MEMORY exception handling. Pin
Le@rner28-Jan-08 1:10
Le@rner28-Jan-08 1:10 

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.