jascam / CodePlexFoo

0 stars 0 forks source link

Hosting Exe inside WPF #309

Open jascam opened 7 years ago

jascam commented 7 years ago

I want a code sample to run a Win32 Exe application in side a WPF window. Not to run an external Exe from my WPF application, but to run the application inside a WPF window. If this is possible to be achieved then please help.   Regards

Migrated CodePlex Work Item Details

CodePlex Work Item ID: '8767' Vote count: '3'

jascam commented 7 years ago

Hello ONiehus,

Thank you for using our code sample request service.

I'd like to confirm with you my understanding of the sample request:

As far as I know, WPF application can invoke win32 excute file and vice versa. I think your sample idea has feature but it is hard to composed because of no scenario. if it is possible,please give us a integrated scenario such as which environment and which way these win32 functions is existence in. According to above summary, we can arrange for submitting it to our sample idea system.

Is my understanding right? Please feel free to let me know.

Thanks All-In-One Code Framework http://1code.codeplex.com

This comment was posted by orichisonic on 5/10/2011

jascam commented 7 years ago

Hi thanks for the reply.

I's like to confirm my understanding to your reply, that i could call an exe from my WPF application. The thing is I don't want to just invoke a executable file from my application using: Peocess.Start(pInfo) and the exe just runs as if I clicked on a shortcut on the desktop. What i want to do is invoke the application and let it run inside maybe a panel or a new WPF child window to my application. Maybe this scenario would clarify what my goal is: I want to write a simple WPF windows shell. The mainwindow will have a button "Notepad" for example, when I click this button, a new WPF windows (created from my application) is shown and "notepad.exe" is running inside that newly shown window.

Is this possible?

Thanks,

This comment was posted by mrabie on 5/14/2011

jascam commented 7 years ago

Hi, I have understood your idea which applies HwndHost namespace such as http://msdn.microsoft.com/en-us/library/system.windows.interop.hwndhost.aspx. And it should simulate keystroke when customer hit the command according to keyboard. Certainly, it refers to the window style because of embing in the XAML file. Finally, It should capture window handle and send message to the actual win32 program which looks like messsage loop. Your idea mixes c++ technology and it has high enough to make it. I submit it to our system and wait for its agreement.

Thank you for your sample idea. All-In-One Code Framewokr http://1code.codeplex.com

This comment was posted by orichisonic on 5/15/2011

jascam commented 7 years ago

This comment was posted by on 5/15/2011

jascam commented 7 years ago

Thanks a lot for the information. I'll look into it, and i'll wait hopefully it gets approved and see a sample from your team.

Thanks again really appreciate your help

This comment was posted by mrabie on 5/15/2011

jascam commented 7 years ago

hi,

Your sample idea is so nice that I have to submit it. Thank you for more suggestion.

Sincerely All-In-One Code Framework http://1code.codeplex.com

This comment was posted by orichisonic on 5/16/2011

jascam commented 7 years ago

I have a client who is still using VB6 !!!, I want to take them into C# WPF or to VB dot net WPF. To scrap their existing VB6 application and COM DLLs is not practical or desirable. It occurs to me that a migration path might be to use a host WPF application that calls into parts of the VB6 infrastructure. It would be useful to explore the technical challenges of running VB6 screens inside a WPF window. This would open up a number of choices if this is a viable path.

This comment was posted by KeithSware on 7/12/2011

jascam commented 7 years ago

This comment was posted by on 7/12/2011

jascam commented 7 years ago

This comment was posted by on 2/21/2013