External Application inside my Application

External Application inside my Application

Postby FGamboa » Thu Jun 26, 2008 11:32 pm

[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 !!

Postby FGamboa » Fri Jun 27, 2008 4:58 pm

STATIC FUNCTION Calculadora()
LOCAL nhWin
WinExec( "Calc" )
nhWin:=FindWindow( 0, "Calculadora" )
Setparent(nhWin, oWnd:oWndClient:hWnd)
RETURN NIL
FGamboa
 
Posts: 25
Joined: Wed Apr 12, 2006 1:51 am

Postby Antonio Linares » Sat Jun 28, 2008 10:40 am

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Bad to Hear

Postby FGamboa » Wed Jul 02, 2008 4:10 am

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 50 guests