Click here to Skip to main content
15,894,297 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: FindWindowEx, 'handle' and notepad.exe Pin
David Crow21-Oct-09 8:54
David Crow21-Oct-09 8:54 
AnswerRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 9:23
Ismaele.Jr21-Oct-09 9:23 
QuestionRe: FindWindowEx, 'handle' and notepad.exe Pin
David Crow21-Oct-09 9:29
David Crow21-Oct-09 9:29 
AnswerRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 9:55
Ismaele.Jr21-Oct-09 9:55 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
«_Superman_»21-Oct-09 11:11
professional«_Superman_»21-Oct-09 11:11 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 11:26
Ismaele.Jr21-Oct-09 11:26 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
«_Superman_»21-Oct-09 11:43
professional«_Superman_»21-Oct-09 11:43 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 21:09
Ismaele.Jr21-Oct-09 21:09 
Good morning Superman ! (or Supercoder !!!) Smile | :)

Very, you centred my objective.

Very tnx for the code that yuo posted me, but he doesn't compile with "Borland C++ Builder 3" under Windows XP : why?

I disclose that i admire your knowlege in C/C++ ! It's enviable

The code after your suggestion :
//---------------------------------------------------------------------------
#include <condefs.h>
#include <windows.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char **argv)
{
HANDLE notepad = FindWindow(0, _T("Untitled - Notepad"));
HANDLE dialog = FindWindowEx(notepad, 0, 0, _T("Open"));
HANDLE edit = FindWindowEx(dialog, 0, _T("EDIT"), 0);
::SetWindowText(edit, _T("ABRACADABRA"));
return(0);
}
//---------------------------------------------------------------------------


The compiler write me that : [C++Error] provaIndiano.cpp(11): Call to undefined function '_T'.
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
«_Superman_»21-Oct-09 21:25
professional«_Superman_»21-Oct-09 21:25 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
j4v14-Sep-10 14:31
j4v14-Sep-10 14:31 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
David Crow21-Oct-09 16:58
David Crow21-Oct-09 16:58 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr1-Dec-09 0:42
Ismaele.Jr1-Dec-09 0:42 
QuestionRe: FindWindowEx, 'handle' and notepad.exe Pin
Randor 21-Oct-09 11:44
professional Randor 21-Oct-09 11:44 
AnswerRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr22-Oct-09 7:08
Ismaele.Jr22-Oct-09 7:08 
AnswerRe: FindWindowEx, 'handle' and notepad.exe Pin
Adam Roderick J21-Oct-09 18:37
Adam Roderick J21-Oct-09 18:37 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 21:13
Ismaele.Jr21-Oct-09 21:13 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Adam Roderick J22-Oct-09 0:32
Adam Roderick J22-Oct-09 0:32 
QuestionRe: FindWindowEx, 'handle' and notepad.exe Pin
David Crow22-Oct-09 3:39
David Crow22-Oct-09 3:39 
AnswerRe: FindWindowEx, 'handle' and notepad.exe Pin
Adam Roderick J22-Oct-09 18:20
Adam Roderick J22-Oct-09 18:20 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
David Crow23-Oct-09 2:39
David Crow23-Oct-09 2:39 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr22-Oct-09 7:02
Ismaele.Jr22-Oct-09 7:02 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Randor 22-Oct-09 17:23
professional Randor 22-Oct-09 17:23 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Adam Roderick J22-Oct-09 18:23
Adam Roderick J22-Oct-09 18:23 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr1-Dec-09 0:45
Ismaele.Jr1-Dec-09 0:45 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr1-Dec-09 0:45
Ismaele.Jr1-Dec-09 0:45 

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.