Calling C++ dll's from C# in Windows CE 4.2 .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking for a way to call functions in a dll written in C++, from an assebly written in C#

i have allready been looking at tlbexp.exe but cant get it to work
Most of the examples i have found calling C# assemblies from C++ uses an "managed wrapper" written in C++ to accomplish the task, but this is not an option in .NET CF. (PLease correct me if i am mistanken

Can anyone help me ?
 
Thi may help:
http://msdn.microsoft.com/library/d.../en-us/dnnetcomp/html/netcfdumpbinpinvoke.asp

-Chris


Finn Larsen said:
I am looking for a way to call functions in a dll written in C++, from an assebly written in C#.

i have allready been looking at tlbexp.exe but cant get it to work.
Most of the examples i have found calling C# assemblies from C++ uses an
"managed wrapper" written in C++ to accomplish the task, but this is not an
option in .NET CF. (PLease correct me if i am mistanken)
 
Thanks, i just made a small mistake, messing up the order..
What i need is to call into a C# assembly from a C++ dll
The other way around i allready figured out
sorry for the mistake.
 
Version 1 of .NET CF does not provide a mechanism to call directly from
native code to managed code. Short of re-architecting your application to
make use of the fact that it is relatively simple to call from managed to
native, the cleanest work-around is usually to use 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/asynchcallbacks.asp.

--------------------
Thread-Topic: Calling C++ dll's from C# in Windows CE 4.2 .NET
From: "=?Utf-8?B?Rmlubg==?=" <[email protected]>
Subject: Re: Calling C++ dll's from C# in Windows CE 4.2 .NET
Date: Mon, 29 Mar 2004 03:36:05 -0800

Thanks, i just made a small mistake, messing up the order..
What i need is to call into a C# assembly from a C++ dll.
The other way around i allready figured out.
sorry for the mistake.
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top