By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,836 Members | 2,097 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,836 IT Pros & Developers. It's quick & easy.

How to embed a win32 application in a .NET application

P: n/a
Udi
Hi All,
I need to embed the ethereal process inside my .NET app. ( http://www.ethereal.com
)
I assume the best solution would be getting hands on the ethereal main
window form
and host it in my app. (BTW - unmanaged code...)
However, I'm not sure how easy it is or even if its possible, so I was
thinking about launching the ethereal process from my application and
"just" displaying it's main form in one of my application's panes. (My
app contains a docking manager in it).

Any ideas on how to do it?
Thanks!

Sep 3 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Udi,

You can always try to call SetParent through the P/Invoke layer. That's
probably where I would start, but in general, apps that embed other apps
within them are never a good idea, as the application is within it's rights
to assume that it is in control of the main window.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Udi" <Ud**********@gmail.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
Hi All,
I need to embed the ethereal process inside my .NET app. (
http://www.ethereal.com
)
I assume the best solution would be getting hands on the ethereal main
window form
and host it in my app. (BTW - unmanaged code...)
However, I'm not sure how easy it is or even if its possible, so I was
thinking about launching the ethereal process from my application and
"just" displaying it's main form in one of my application's panes. (My
app contains a docking manager in it).

Any ideas on how to do it?
Thanks!

Sep 4 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.