Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalinconsistent dll linkage dllexport assumed Pin
Anonymous10-Dec-03 7:37
Anonymous10-Dec-03 7:37 
GeneralRe: inconsistent dll linkage dllexport assumed Pin
David Crow10-Dec-03 7:49
David Crow10-Dec-03 7:49 
GeneralRe: inconsistent dll linkage dllexport assumed Pin
Anonymous10-Dec-03 7:58
Anonymous10-Dec-03 7:58 
General.def files Pin
Anonymous10-Dec-03 7:23
Anonymous10-Dec-03 7:23 
GeneralRe: .def files Pin
David Crow10-Dec-03 7:45
David Crow10-Dec-03 7:45 
GeneralRe: .def files Pin
Anonymous10-Dec-03 8:01
Anonymous10-Dec-03 8:01 
GeneralRe: .def files Pin
David Crow10-Dec-03 8:12
David Crow10-Dec-03 8:12 
GeneralPointer to another Window Pin
tjkrz10-Dec-03 7:00
tjkrz10-Dec-03 7:00 
Within my program, I want to bring a window to another program to the foreground. I'm doing the following:

	CWnd *pFV;<br />
<br />
	pFV = CWnd::FindWindow(NULL, _T("Another Program Title"));


Then if FindWindow was successful, I call pFV->SetForegroundWindow() to bring it to the front.

This works great in most cases, but it sometimes fails... The program I'm referencing changes its name in the titlebar depending on which options are selected. I don't have the source to the program, so I can't modify it. How can I get a pointer to this window without knowing what the title is going to be? Is there a way to link to the process name?

I also know that the first x characters in the title will always be the same. Is there some way to search through all the titles of open windows to do a comparison?

Any help would be greatly appreciated. Thanks.


Todd Krzeminski
tkrzeminski@nlxcorp.com
GeneralRe: Pointer to another Window Pin
Antti Keskinen10-Dec-03 7:46
Antti Keskinen10-Dec-03 7:46 
GeneralRe: Pointer to another Window Pin
tjkrz10-Dec-03 8:44
tjkrz10-Dec-03 8:44 
GeneralRe: Pointer to another Window Pin
Antti Keskinen11-Dec-03 7:10
Antti Keskinen11-Dec-03 7:10 
GeneralRe: Pointer to another Window Pin
David Crow10-Dec-03 7:47
David Crow10-Dec-03 7:47 
GeneralRe: Pointer to another Window Pin
Joel Lucsy11-Dec-03 4:08
Joel Lucsy11-Dec-03 4:08 
GeneralRe: Pointer to another Window Pin
tjkrz15-Dec-03 9:21
tjkrz15-Dec-03 9:21 
Generaltemplate design question Pin
pankajdaga10-Dec-03 6:30
pankajdaga10-Dec-03 6:30 
GeneralRe: template design question Pin
Jörgen Sigvardsson10-Dec-03 11:34
Jörgen Sigvardsson10-Dec-03 11:34 
GeneralRe: template design question Pin
pankajdaga10-Dec-03 12:50
pankajdaga10-Dec-03 12:50 
GeneralRe: template design question Pin
Andrew Walker10-Dec-03 12:44
Andrew Walker10-Dec-03 12:44 
GeneralRe: template design question Pin
pankajdaga10-Dec-03 12:52
pankajdaga10-Dec-03 12:52 
QuestionHyperthreading Windows API? Pin
solla10-Dec-03 6:03
solla10-Dec-03 6:03 
AnswerRe: Hyperthreading Windows API? Pin
valikac10-Dec-03 6:20
valikac10-Dec-03 6:20 
GeneralRe: Hyperthreading Windows API? Pin
solla10-Dec-03 6:24
solla10-Dec-03 6:24 
GeneralRe: Hyperthreading Windows API? Pin
David Crow10-Dec-03 8:50
David Crow10-Dec-03 8:50 
GeneralRe: Hyperthreading Windows API? Pin
solla11-Dec-03 1:43
solla11-Dec-03 1:43 
GeneralCreating and Using Static lib Pin
Anonymous10-Dec-03 5:31
Anonymous10-Dec-03 5:31 

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.