Can I create a C# COM server using the compact framework that I can call
from C++ through COM? Thanks.
Timothy Dean
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"Timothy Dean" <my_e...@this.com> wrote in message
news:eYAXYMnR...@TK2MSFTNGP02.phx.gbl...
Timothy Dean
"Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> wrote in message
news:uwxtl72R...@TK2MSFTNGP03.phx.gbl...
Why you could select "register for COM interop" on device projects in VS '05
would simply be a bug. I guarantee that you never could actually have used
the generated object for COM.
Until the CF team sees fit to give us Hosting, this is just not a use case
that can be done. There's not even a hack or kludge to get it to work.
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"Timothy Dean" <my_e...@this.com> wrote in message
news:O%23tmdGNS...@TK2MSFTNGP05.phx.gbl...
Timothy Dean
"Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> wrote in message
news:%23q%23wbONS...@TK2MSFTNGP02.phx.gbl...
Correct. Native code in the CF simply cannot call into managed code unless
the managed code is in a process started by a managed application. So you
can pass a managed callback to a native DLL and it can make the call, or a
native app can post a message or queue an item and the managed side can get
it, but there is simply no way to host a managed assembly in a native app.
If an OEM provides a .NET-only API (unlikey I would suspect) you're probably
not sunk. There's no way they're writing a driver, and unlikely they're
doing any hardware access in native code (for the very same reason you can't
do this), so they'll likey have a native shim that they're calling in to.