hosting an unmanaged app in a C# app

  • Thread starter Thread starter eggie5
  • Start date Start date
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!
 
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
 
Back
Top