473,511 Members | 14,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to embed a win32 application in a .NET application

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
1 2086
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1586
by: Vio | last post by:
My story: I played with a little embedded python piece of code (python interpreter embedded in wxWidgets app), and used SWIG to extend this embedded py interpreter. I did it in Linux, after some...
1
3141
by: babylon | last post by:
if I have a Win32 DLL - X.DLL can I embed it to a .Net Application and invoke it's exported functions? normally i have to put the X.DLL in the file system and use DllImport to import/invoke the...
8
4750
by: Tony Johansson | last post by:
Hello! I just wonder what the difference is between a native win32-app and MFC. What I know is that you can use Win32 API in both cases. I think an MFC application is connected with a GUI...
1
3428
by: snicks | last post by:
I have a series of XLS files which I need to embed into a PowerPoint presentation on an IIS server. I’ll be using VB.NET. I’ve tried using an ASPOSE.PowerPoint control to do this and it does...
2
3522
by: Matt | last post by:
all, trying to load an application (notepad for instance) and have it sit inside a Python application window. When the main window maximises or minimises, the (notepad) app follows. I am...
1
1649
by: stoj | last post by:
I have a smallish C# application that i wish to distribute as a standalone executable (ie. without installer or other support files). Easy enough if everyone has .Net Framework 2.0 installed as...
8
2526
by: Tomasz J | last post by:
Hello Developers, It may sound like a stupid question, but how to embed a resource in ASP.Net 2.0 web application? I mean, without using a separate library. There is no "build action" property....
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.