Questions tagged [mixed-mode]

A mixed-mode application is any application that combines native code (C++) with managed code (such as Visual Basic, Visual C#, or C++/CLI that runs on the common language runtime).

From MSDN:

A mixed-mode application is any application that combines native code (C++) with managed code (such as Visual Basic, Visual C#, or C++/CLI that runs on the common language runtime).

Mixed assemblies are capable of containing both unmanaged machine instructions and MSIL instructions. This allows them to call and be called by .NET components, while retaining compatibility with components that are entirely unmanaged. Using mixed assemblies, developers can author applications using a mixture of managed and unmanaged functionality.

249 questions
-1
votes
1 answer

C++/CLI Native or Managed?

I have a C# project and I need a C++ native code to interact with the C# code. To do so, I am using a C++/CLI class wrapper that will call a C++ class. As far as I understand, if a C++ class has a ref behind it's declaration, it's going to be…
Michel Feinstein
  • 13,416
  • 16
  • 91
  • 173
-1
votes
1 answer

Compare VARIANT bstr to System::String^

I have a method that takes in a System::String^ and internally obtains a VARIANT. I want to compare the var.bstrVal with my string and it never seems to find a match even though I know it does. Here is the code (NOTE: I have updated this with more…
JustinC
  • 29
  • 5
-1
votes
1 answer

Linking boost Filesystem and Serialisation libraries in MSVC in a mixed-mode C++-CLI project

I try to use C++-CLI in Visual Studio 2013 to create a GUI. My project use a C++ lib this lib use Boost Filesystem and Serialisation libraries, but I get the following linker error: visual c++ error lnk1104 cannot open file…
-1
votes
1 answer

Win8 app CLI library integration issue

I have a Win8 app that is purely native (c++) and I've already used a library that is written using managed code AFAIK. No issues there, I created objects and addressed them using C++/CX with ref counted pointers etc. I need to add a new library, I…
Protheus
  • 3,068
  • 4
  • 17
  • 25
-1
votes
1 answer

mixed mode debugging in vs2010 with .net 3.5

For some strange reason, I just can't get VS2010 to stop at breakpoints in managed code within my solution. I am working solely in C++ and C++/CLI. two projects: One DLL compiled with /clr. One .exe compiled without /clr so its a native win32,…
moliad
  • 1,503
  • 8
  • 13
-2
votes
1 answer

How to Marshall C++ Native Objects to Managed C++ CLI

I have bunch of native C++ objects and classes contains DTL maps, maps of maps and lists and vectors. I need to call managed C++ functions from C++ native code and need to pass these native objects and STL containers(lists,maps , maps of maps) to…
Usman
  • 77
  • 2
  • 9
-2
votes
1 answer

Wrapper for native functions

I'm trying to create a C++/CLI wrapper for some native DLLs. There are seven of these DLLs and more in the future so I need to load them dynamically. They all have the same set of functions. LoadLibrary and GetProcAddress worked great in a native…
Ray
  • 243
  • 2
  • 4
-2
votes
1 answer

facing error LNK error

I want to have this or should I say I want to fire or call the functions like Wfs_StartUp, Wfs_Open, Wfs_Execute etc within the Form1(void) but I'm getting these errors: error LNK2028: unresolved token (0A000371) "int _cdecl…
-2
votes
1 answer

Mixed managed C++ method does not always return the same result to the calling C# code

A C++ method returns the correct value when I use a conditional breakpoint, but an incorrect value without a breakpoint. C# method which calls C++: bool SetProperty(Element element, Node referencePoint, List materializers, List
1 2 3
16
17