External Application inside my Application

Post Reply
FGamboa
Posts: 25
Joined: Wed Apr 12, 2006 1:51 am

External Application inside my Application

Post 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
FGamboa
Posts: 25
Joined: Wed Apr 12, 2006 1:51 am

It works - Funciona !!

Post by FGamboa »

STATIC FUNCTION Calculadora()
LOCAL nhWin
WinExec( "Calc" )
nhWin:=FindWindow( 0, "Calculadora" )
Setparent(nhWin, oWnd:oWndClient:hWnd)
RETURN NIL
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
FGamboa
Posts: 25
Joined: Wed Apr 12, 2006 1:51 am

Bad to Hear

Post 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
Post Reply