Hi, there is a way to set a class and a caption in a C (console)program ?
I mean force it in some way...
That can help me handling with another program the process of the first one.
thanx!
(dev cpp)
Hi, there is a way to set a class and a caption in a C (console)program ?
I mean force it in some way...
That can help me handling with another program the process of the first one.
thanx!
(dev cpp)
I'm sorry, I have to say I don't understand your question at all. Can you rephrase it or be more specific please?
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
sure and sorry for my bad english !!
ok..
U know, I can terminate or "use" a process calling it by his Class e Caption, like :
SciCalc is the Class and Calcolatrice is the Caption of the window created by my calc.exeCode:hWnd = FindWindow ("SciCalc", "Calcolatrice")
But if i create a C program that works in dos (the black windows that appears when i doubleclick the executable) i know that i cant terminate or "use" that process by its Class because a dos shell AFAIK doesn't have a Class.
I want to know if there is a magic trick to force a Class and Caption in a program (in the source code i mean) like that one...a C program that run in a dos windows.
Anyway i'm interessed in how to do that in C++ too coz i can import/export modify the source i'm writting
Thanks !
This is more of a Windows API question than anything. I'll move your thread to the Windows forum.
You might find that the Console's Caption is the full path and program name for the executable you're running....
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
You can set the caption of a console window, it is covered in part 2 of my consoles tutorials here.
You can pass NULL as the first parameter to FindWindow().
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
thax to everyone, this forum is great
Last edited by BianConiglio; 04-01-2004 at 05:43 AM.