About 30,600 results
Open links in new tab
  1. Allocate memory in a C++ dll, use in C# app

    Dec 6, 2009 · One option is to use LocalAlloc in your C++ code instead of new; this could be freed in C# using System::Runtime::InteropServices::FreeHGlobal. Another is to use CoTaskMemAlloc instead …

  2. Problem Marshalling Fixed Sized Structure from C++ to C#

    Jun 24, 2010 · C++ long is 32bits, that's an int in C#. To pass a pointer to a structure, you use ref (in/out parameter) or out (out parameter). public static extern int GetDeviceInfo (int DeviceId, out DEVINFO …

  3. C++ COM/OLE Equivalents of CreateObject () and GetObject ()

    May 8, 2012 · I have written an application in C++ using COM/OLE interfaces (mostly IDispatch) to build an Excel workbook with several worksheets. That is all working correctly.

  4. How to forward declare a method in C++/CLI to match the signature …

    Dec 1, 2010 · I just want to call one of the methods. In order to do this, since I'm calling from within the same assembly, I need to forward declare the method in the c++/cli code (I can't include the header …

  5. Windows forms advantage in C# - social.msdn.microsoft.com

    Mar 14, 2013 · Can someone explain the advantages for Windows Forms programming in C# instead of other programming languages as C++ for instance.

  6. CallByName in C++. - social.msdn.microsoft.com

    Dec 9, 2005 · Its possible if you use C++/CLI or managed Extension, also by reflection.

  7. where is #include <mutex>? - social.msdn.microsoft.com

    Sep 12, 2011 · As part of the added support in Visual Studio 11 Developer Preview for the C++11 specification, the Standard Template Library (STL) support in Visual Studio is extended to provide …

  8. Not able to debug (step into) into the function/method (C++) of …

    Jan 10, 2013 · I've implemented a static library in C and windows phone runtime component which is C++ based and a windows phone app (C# based). I'm getting the expected output when I call the …

  9. Using C++ unmanaged dll in Web Application developed in C#

    Sep 4, 2012 · A simple C# web application, which has to load a dll (unmanaged) written in C++ and invoke the functions written in C++ from the dll.

  10. How to call C# dll from C++ - social.msdn.microsoft.com

    Feb 22, 2013 · How to call a c# dll from C++ code. Please share any sample code or any link related to this which have code. Thanks in advance.