Link to home
Start Free TrialLog in
Avatar of gull
gull

asked on

Is it possible to run other applications in a Delphi component?

If i have another windows application (not activex, not dll just an everyday 10000$ apllication) can i run it in a Panel or anyathing else, without opening a new window?
Avatar of roundcrisis
roundcrisis

you should be able to call shellexecute()

for example to open word put a button or wathever and in the procedure add
ShellExecute(Self.Handle, nil, 'winword.exe', nil, nil, SW_NORMAL);

and , it is working

R.
Roundcrisis - that's not what he meant obviously.

Gull - in short - no you can't
Avatar of Wim ten Brink
Maybe you can if you go deep in the Windows API, Hijack the Windows handle of whatever you want to show in the panel and tell that window that it has a parent window...

But the API HELL that you'll have to go through would be enormous and I would not even know where to start...

But perhaps there's another option, by capturing the output of that application and displaying it in your panel. If you continuously update this image and pass events back to the other application, you might get something to work...
ASKER CERTIFIED SOLUTION
Avatar of insomniac92
insomniac92
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gull

ASKER

Thanks,
Excellent solution!