DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 10 Aug 2007 10:40:38 +0100,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    ink
          2    ctacke/ ctacke[at]opennetcf[dot]com
          3    ink
                 4    ctacke/ ctacke[at]opennetcf[dot]com
          5    ink


Loading two CF2 EXE into the same thread?   
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
Date:Fri, 10 Aug 2007 10:40:38 +0100   Author:  

Re: Loading two CF2 EXE into the same thread?   
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



"ink"  wrote in message 
news:uRKZDKz2HHA.3900@TK2MSFTNGP02.phx.gbl...

> 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
> 
Date:Fri, 10 Aug 2007 07:15:25 -0500   Author:  

Re: Loading two CF2 EXE into the same thread?   
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



"<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message 
news:%231y8xg02HHA.5852@TK2MSFTNGP02.phx.gbl...

> 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
>
>
>
> "ink"  wrote in message 
> news:uRKZDKz2HHA.3900@TK2MSFTNGP02.phx.gbl...
>> 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
>>
>
> 
Date:Fri, 10 Aug 2007 14:15:23 +0100   Author:  

Re: Loading two CF2 EXE into the same thread?   
And what part isn't working for you?  Reflection exists in the CF.


-- 

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


"ink"  wrote in message 
news:%23wtBEC12HHA.1208@TK2MSFTNGP03.phx.gbl...

> 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
>
>
>
> "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message 
> news:%231y8xg02HHA.5852@TK2MSFTNGP02.phx.gbl...
>> 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
>>
>>
>>
>> "ink"  wrote in message 
>> news:uRKZDKz2HHA.3900@TK2MSFTNGP02.phx.gbl...
>>> 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
>>>
>>
>>
> 
Date:Fri, 10 Aug 2007 08:46:20 -0500   Author:  

Re: Loading two CF2 EXE into the same thread?   
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













"<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message 
news:OlADoT12HHA.536@TK2MSFTNGP06.phx.gbl...

> And what part isn't working for you?  Reflection exists in the CF.
>
>
> -- 
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Managed Code in an Embedded World
> www.OpenNETCF.com
>
>
> "ink"  wrote in message 
> news:%23wtBEC12HHA.1208@TK2MSFTNGP03.phx.gbl...
>> 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
>>
>>
>>
>> "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message 
>> news:%231y8xg02HHA.5852@TK2MSFTNGP02.phx.gbl...
>>> 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
>>>
>>>
>>>
>>> "ink"  wrote in message 
>>> news:uRKZDKz2HHA.3900@TK2MSFTNGP02.phx.gbl...
>>>> 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
>>>>
>>>
>>>
>>
>
> 
Date:Fri, 10 Aug 2007 18:20:23 +0100   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us