Re: Adding C code to my C# application

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Most likely a Win32 DLL project.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"cyberco" <cyberco@xxxxxxxxx> wrote in message
news:1164321113.127564.261570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm a newbie when it comes to creating C++ applications (for Windows
Mobile) using Visual Studio 2005. Now I'm stuck trying to invoke an
existing DLL (Iphlpapi.dll, which is a common DLL on windows) from my
own C++ class which in turn is invoked from C#: Schematic:

---------------------------------------------------------------------------------------------
MyC# ==invokes==> MyC++ ==invokes==> existingDLL

---------------------------------------------------------------------------------------------
My problems are with using VS. What type(s) of project should I use?
How do I reference the existing DLL in my C++ code?



.



Relevant Pages

  • Re: Integrating with legacy code
    ... Removed nochkclr.obj as a linker input ... Extention DLL. ... access them from within the web service, ... >order to add managed code to it: ...
    (microsoft.public.dotnet.general)
  • Re: Strange file not found exception
    ... Assemblies *must* reside in same directory. ... DLL on Windows Server 2003 x64 using PIA interop. ... I find creating a COM coclass object in managed code is ok, ...
    (microsoft.public.vc.language)
  • Dependency walker msvcr80d.dll missing coredll.dll and dwmapi.dll
    ... I've completed migrating one of our company's C++ Managed Code ... The dll is written in MFC with sections of C++ ... The dll exports its objects in the same manner as any VS2005 Solution Wizard ... In fact when I peer into the dll with the DepedencyWalker app, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Error using P/Invoke with Winsock API using CF.NET
    ... You aren't going to be able to pass a callback function from managed code, ... It might be significantly easier to create a native DLL ... setting up the socket in secure mode, ... >>> public static extern int ioctlsocket(int s, uint controlCode, object ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: create a wrapped managed dll that can be used from pure unmanaged code
    ... > code which calls into managed code" and some of those unmanaged ... Exporting a class based interface from a DLL ... public void SayHello() ... GCHandle gch; ...
    (microsoft.public.dotnet.languages.vc)