Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Run App Inside Delphi

ole run app INSIDE

  • Please log in to reply
3 replies to this topic

#1 Saeed7007

Saeed7007

    CC Regular

  • Member
  • PipPipPip
  • 43 posts

Posted 25 April 2012 - 04:28 AM

hi
how can we run an app inside Delphi application.... i mean something like OleContainer...
for example, running NOTEPAD into olecontainer or inside a panel or something similar...

THANKS.
  • 1

#2 Luthfi

Luthfi

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts
  • Programming Language:PHP, Delphi/Object Pascal, Pascal, Transact-SQL
  • Learning:C, Java, PHP

Posted 25 April 2012 - 06:55 AM

If the application already have ActiveX module(s), you can import the module(s) into Delphi then use them in your form as if ordinary Delphi component/control. TWebBrowser is perfect example of this.

Beside the above approach, I really can't recommend running other process/application inside your application. There will be too much headache to develop and maintain such project. If you willing to try anyway, take a look into windows api SetParent. Using SetParent you can find window handle of a running application then embed it to your Delphi form (using the form's Handle property).
  • 1

#3 Saeed7007

Saeed7007

    CC Regular

  • Member
  • PipPipPip
  • 43 posts

Posted 27 April 2012 - 06:30 AM

thanks.
i got the answer!
  • 1

#4 Luthfi

Luthfi

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts
  • Programming Language:PHP, Delphi/Object Pascal, Pascal, Transact-SQL
  • Learning:C, Java, PHP

Posted 27 April 2012 - 07:54 AM

Nice. Good luck with the project.
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download