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
0
votes
0 answers

How to load mixed-mode assembly in Windows 8 service without .NET 3.5?

I have (source code) a mixed-mode (.NET 2.0) DLL-assembly that is a TAPI telephony service provider. So it is loaded by the Windows Telephony Service (svchost). This works as expected in Windows XP, Vista and Windows 7 when .NET 2.0 or 3.5 is…
Gandalf
  • 2,350
  • 20
  • 28
0
votes
1 answer

Create a mixed mode C++/CLI DLL

I hope not to repeat something already asked..I search around but I haven't found something similar. I have developed a native sdk which expose some classes and interfaces. Now, I need to implement a mixed mode DLL which uses this SDK. But the…
Barzo
  • 1,039
  • 1
  • 11
  • 37
0
votes
3 answers

C++/CLI: Implementing an abstract C# class that implements INotifyPropertyChanged results in C++ compiler error C3766

I'm trying to implement an abstract C# class in C++/CLI. This abstract base class is already implementing INotifyPropertyChanged and as mentioned written in C#: public abstract class BaseClass : INotifyPropertyChanged In the C++/CLI assembly, I do…
barnacleboy
  • 539
  • 8
  • 18
0
votes
0 answers

convert std::vector into Dataset^

I have a vector of c++ structs, and I need to put this into a managed, typed dataset. std::vector record_collection; class Record{ public: Record(){}; virtual ~Record(){}; virtual void serialize(std::ostream& dest){ dest << "Record" <<…
Melanie
  • 1,349
  • 2
  • 17
  • 27
0
votes
3 answers

Observer pattern in c++/cli for mixed managed/unmanaged

I have a system comprising a C# UI, a C++/CLI mixed mode interop wrapper, and some native c++ projects. What I need to do is set up a system such that the native c++ code can send a log message, and the UI can report it. I set up a native…
Melanie
  • 1,349
  • 2
  • 17
  • 27
0
votes
1 answer

Mixed Mode C++ DLL function call failure when app launched from network share. Called from unmanaged c application

Mixed-mode DLL called from native C application fails to load: An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module. Additional information: Could not load file or assembly 'XXSharePoint, Version=0.0.0.0,…
Steve
  • 1,065
  • 15
  • 34
0
votes
0 answers

How to load a .NET 3.5 mixed-mode C++ assembly into a 4.0 web application?

I have a .NET 3.5 web app (built with VS2008) that I am trying to port to a .NET4.0 web app (built with VS2010). It contains mostly pure managed C# assemblies, but it also contains a mixed mode C++ assembly. It is not currently an option to port…
redec
  • 577
  • 2
  • 13
0
votes
1 answer

How to incorporate "weighted study" into plot graph

My data were collected from the literature for a meta-analysis: Study Eeff Neff Weight (%) 1 34.83181476 50.04959144 0.1 1 33.76824264 49.53210571 0.1 1 32.67390287 47.77214774 0.1 1 33.05520666 47.30254996…
hn.phuong
  • 835
  • 6
  • 15
  • 24
0
votes
3 answers

"The breakpoint will not currently be hit" error while debugging a mixed mode application (c# and unmanaged c++)

While debugging a mixed mode application in VS2010, the breakpoint set on a line of code contained in an unmanaged c++ dll source file (called from a managed c# wrapper class) shows the infamous "The breakpoint will not currently be hit. No symbols…
signitariat
  • 111
  • 1
  • 6
0
votes
1 answer

Unable to compile mixed-mode C++/CLR library in VS2010 that compiles in VS2008 and compiles using MSBuild

Here's an odd one that I came across this afternoon ... I have a mixed-mode library that I made a while back that builds just fine with VS2008. I am in the process of converting over to VS2010, and went to try and build this library using the VS2010…
0
votes
1 answer

How to export a native class from a dll (namely a protobuf generated class)

I'm trying to write a wrapper dll in C++/CLI to use some native classes in c#. For Testing I created another C++/CLI Project that consumes the dll. My Problem is, that I would like to use one of the native classes in the dll project in the test…
Thomas
  • 8,397
  • 7
  • 29
  • 39
0
votes
1 answer

getting errors while instantiating pointer for structs of native c++ code from c++/cli

below mentioned is my c++/cli "*.h" file // rmsCInterfaceWrapper.h #ifndef RMSCINTERFACE_H #define RMSCINTERFACE_H #ifndef RMSREQINFO_H #define RMSREQINFO_H #ifndef RMSCLIENTINFO_H #define RMSCLIENTINFO_H #ifndef RMSPHYSICIANINFO_H #define…
krishna555
  • 223
  • 5
  • 18
-1
votes
1 answer

CrossContext exception on native to managed boundary

I have developed managed C++ application which return an object of ManagedSubscription to C# clients. ManagedSubscription receives a callback from C# clients, internally makes its own callback to communicate to native C++ code. While crossing…
Nipun
  • 2,217
  • 5
  • 23
  • 38
-1
votes
1 answer

C++/cli to c++: Error s incompatible with "void (__stdcall *)(int i, std::string str)"

I am new to C++/cli so please excuse me for silly questions or core mistakes: My C++/CLI class Library that is called by C# has only one method: ThreadsCppWrapper.h namespace namespace ThreadsCppWrapper { public ref class ThreadsCppWrapperClass …
-1
votes
1 answer

WinAPI C++/CLR status codes to C# Win32Exception or not?

I'm writing a VC++/CLI <-> C# interface for a small unmanaged library. This library uses and implements WINAPI methods, so it mainly uses constructs as DWORD getResult(__out LPWSTR* result); Which means it does not return the requested result, but…
Martin Pecka
  • 2,953
  • 1
  • 31
  • 40
1 2 3
16
17