hosting an unmanaged app in a C# app

E

eggie5

Hi,

I have a small unmanaged app that I would like to somehow "host" in my
C# app. Can I somehow put it in a window in my C# app, so as far as the
unmanaged app can tell, it's just running as normal?

Any pointers would be helpfull!
 
M

Michael C

eggie5 said:
Hi,

I have a small unmanaged app that I would like to somehow "host" in my
C# app. Can I somehow put it in a window in my C# app, so as far as the
unmanaged app can tell, it's just running as normal?

Any pointers would be helpfull!

This sort of thing rarely works well. You can find the handle to the
unmanaged app's window and use SetParent to put it inside another window in
your app. I'm not sure this can even be done cross process? I think I tried
once to make calc.exe look like it was a popup calculator inside my app but
even something that simple was quite buggy and difficult. In the end I gave
up.

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top