![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Retrieving a handle to a window with a particular text in the title barHi guys, I am attempting to retrieve a handle to a window based upon the text in its title bar. For the sake of example let us presume that I am trying to retrieve a handle to the "Calculator" window. So far I have the following code:
CPP / C++ / C Code:
However when I attempt to compile this I get the following error message: Code:
Please can you recommend how I fix this? Other than the above error, should my program work OK? Sincerely, Simon Pearson |
|
#2
|
||||
|
||||
Re: Retrieving a handle to a window with a particular text in the title barTaking a hint from the 2nd arg type of tmain, probably need the same type applied to your string: change the 'char' portion to _TCHAR.
See the Visual studio help for _TCHAR type mapping, there's a table that shows the difference depending on what is defined. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help with a console menu system | BullBuchanan | C++ Forum | 6 | 20-Aug-2006 15:46 |
| moving a window without using the title bar | markiv | MS Visual C++ / MFC Forum | 1 | 07-Jun-2006 13:50 |
| Help with syntax errors | PeteGallo | C Programming Language | 7 | 08-Aug-2005 21:30 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 11:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 12:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The