The current version of .NET CF does not provide a mechanism to directly
call from native code to managed code. Managed object are not exposed as
native COM objects. Short of re-architecting a application to make use of
the fact that it is relatively simple to call from managed to native, the
cleanest work-around to enable calling from native to managed is using a
message passing mechanism such as the MessageWindow class. There are a few
examples on MSDN and elsewhere of how to use MessageWindow to communicate
from native code to managed such as
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/messagewindow.asp and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/asynchcallbacks.asp.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Raul Santelices" <
[email protected]>
| References: <
[email protected]>
<#ZFq#
[email protected]>
| Subject: Re: runtime hosting in Compact Framework?
| Date: Thu, 27 Nov 2003 11:19:26 -0300
| Lines: 42
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <
[email protected]>
| Newsgroups:
microsoft.public.dotnet.framework.interop,microsoft.public.dotnet.framework.
compactframework
| NNTP-Posting-Host: moe.ing.puc.cl 146.155.13.199
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:39719
microsoft.public.dotnet.framework.interop:20691
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Thanks for the info.
| So, if I wanted to use .NET components inside my legacy eVC++ 3.0
| application, I would have to use the .NET interfaces which are
(supposedly)
| automatically exposed as COM interfaces?
| --
| Raul Santelices A, M.Sc.
| Edunova S.A. |
http://www.edunova.cl
|
|
| | > Not readily no. I've seen a crazy hack from Alex Feinman for debugging
| DLLs
| > from managed code, but I wouldn't use it in anything production.
| >
| > --
| > Chris Tacke, eMVP
| > Co-Founder and Advisory Board Member
| >
www.OpenNETCF.org
| > ---
| > Windows CE Product Manager
| > Applied Data Systems
| >
www.applieddata.net
| >
| >
| > | > > Hello,
| > > I would like to know whether it's possible to host the runtime in
| > PocketPC,
| > > just as you do in PC. Also, are there any special issues concerning CF
| > > hosting?
| > > Thanks in advance,
| > > --
| > > Raul Santelices A, M.Sc.
| > > Edunova S.A. |
http://www.edunova.cl
| > >
| > >
| >
| >
|
|
|