Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / August 2007

Tip: Looking for answers? Try searching our database.

Loading two CF2 EXE into the same thread?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ink - 10 Aug 2007 10:40 GMT
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
<ctacke/> - 10 Aug 2007 13:15 GMT
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?

Signature

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

> Hi All,
>
[quoted text clipped - 7 lines]
> Thanks,
> ink
ink - 10 Aug 2007 14:15 GMT
Hi,

Thanks for getting back to me.

This is what i am trying to achieve but on a windows mobile device.
http://msdn.microsoft.com/msdnmag/issues/03/01/UITestAutomation/default.aspx

Thanks,
ink

> 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
[quoted text clipped - 15 lines]
>> Thanks,
>> ink
<ctacke/> - 10 Aug 2007 14:46 GMT
And what part isn't working for you?  Reflection exists in the CF.

Signature

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

> Hi,
>
[quoted text clipped - 25 lines]
>>> Thanks,
>>> ink
ink - 10 Aug 2007 18:20 GMT
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

> And what part isn't working for you?  Reflection exists in the CF.
>
[quoted text clipped - 27 lines]
>>>> Thanks,
>>>> ink

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.