Page 1 of 1

External Application inside my Application

Posted: Thu Jun 26, 2008 11:32 pm
by FGamboa
[English]
Hi Everybody:
Can I run "notepad.exe" in a MDI enviroment as a child window?
I've Seen wcapture or recently ActiveX-"shell.explorer" in action, containing webpages in the way I want for "notepad...." (not wcapture).
Are there any ActiveX or method out there, wich can acomplish this?
I just want to know is the child application is open, minimize, restore or close.
I Just wondering.

Regards and Thanks for your help in advance.

[Español]
se puede llamar a una aplicación, como "notepad.exe" dentro de una ventana hija de un Ambiente MDI? con wcapture, se puede hacer algo parecido, aunque el funcionamiento del ActiveX-"shell.explorer" permite una pagina web con dichas características.
Hay algún método por ahi?
bastaría (por el momento) con saber si dicha aplicación esta abierta o cerrada, minimizar y restaurar.

Saludos y gracias por sus comentarios.

Fco Gamboa

It works - Funciona !!

Posted: Fri Jun 27, 2008 4:58 pm
by FGamboa
STATIC FUNCTION Calculadora()
LOCAL nhWin
WinExec( "Calc" )
nhWin:=FindWindow( 0, "Calculadora" )
Setparent(nhWin, oWnd:oWndClient:hWnd)
RETURN NIL

Posted: Sat Jun 28, 2008 10:40 am
by Antonio Linares
Fco,

Though you can use SetParent() for that purpose, you may unstabilize the system. In other words: your application may crash, depending on the window that gets "adopted" as child.

Bad to Hear

Posted: Wed Jul 02, 2008 4:10 am
by FGamboa
Hi Antonio:

Sad to know that, mmm, I just wanted to call another modules from delphi or basic to my apps without fight with dlls.
Can youd give me any guideness to know what I'm dealing with? (like links or searching words)

Thanks

Fco Gamboa