Loading two CF2 EXE into the same thread?

I

ink

Hi All,

Dose any one have any idea on how to load one CF2 windows application from
another into the same thread? (not shell)

For example:
AppA.exe has a button, when this button is clicked it loads AppB.exe and
shows splash screen but it must all be in the same thread.

Thanks,
ink
 
G

Guest

That's not possible from an OS perspective. Not in managed or native code.
Not in Windows or CE (or Linux or anything else). Each process gets its own
primary thread that the scheduler manages.

Why not tell us what you're trying to achieve, rather than how you think you
should go about it? You want app A to wait for App B to finish before
continuing maybe?


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
I

ink

The load button keeps throwing an error.

i think it is to do with the fact that the Program Class is static and the
Main method is also Static.

In the example on the website the developer is using VS2003 so the
Application.Run is infact in the First screen that loads up but in VS2005
there is a new layout and the example does not port simply.

This is the first time i think i have used reflection so i don't have a
fantastic understanding of how this is working.

I have managed to with some tinkering get the application i am trying to
debug to flash on screen just before both applications crash.

i do know that when i run it on the desktop it works no problem. But when i
port it to CF2.0 it crashes on the Application.Run line.

thanks,
ink
 

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