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
1 answer

C++ how to change private members of managed object using a native one?

I'm working on a student project. It's a network card game. The solution contains 3 projects. Client's GUI using Windows Forms so it has managed classes. Static client's library in native C++. GUI's project has reference to it thus uses 'Mixed…
Syb3rian
  • 171
  • 2
  • 14
0
votes
0 answers

C# UI update using native C++ library

For the previous couple of years, I have developed user interfaces using MFC. The main reason being, the libraries used to interface with the cameras being used are only available in C++. Generally 60% of project time has been spent trying to build…
tuskcode
  • 317
  • 2
  • 14
0
votes
1 answer

How to create array buffer to hold series of string vector

This is my object class vector build as class doinfo, function printtoxml inherited from class doinfo, #include "stdafx.h" #include #include #include #include #include #include #include…
koklimabc
  • 53
  • 2
  • 12
0
votes
1 answer

C++/CLI Mixed Mode does not allow FILE struct?

I have an old Visual Studio C++ 6.0 DLL that I am trying to get call in a managed C++/CLI Code. Here are the project settings that I used: Add the additional header directory for the unmanaged code Add the additional library directory for the…
Nap
  • 8,096
  • 13
  • 74
  • 117
0
votes
1 answer

Library .NET version exception

Im trying do my first steps in Winforms development with C# and .NET framework. I want to make a little users CRUD application. I have the SQLite db populated with test data. So, i create a blank project solution, and added a "Class library" project…
ramiromd
  • 2,019
  • 8
  • 33
  • 62
0
votes
1 answer

Visual studio 2012 mixed mode debugging

I have a dll built from mixed code in VS 2012. This dll is loaded from a .exe built in native C++. When I debug the dll (via F5 from VS 2012), the breakpoints are not hit. The message is : No executable code is associated with this line. Possible…
Brainless
  • 1,522
  • 1
  • 16
  • 30
0
votes
1 answer

BinaryFormatter issues converting intrinsic objects like Int32 and Double

I am writing a c++ mixed mode DLL and converting objects read from a database to unmanaged code variables. I am trying to convert the object into a byte array so I can copy its value byte by byte to unmanaged memory. When I do the conversion I get…
Michael Fitzpatrick
  • 682
  • 3
  • 8
  • 18
0
votes
2 answers

Getting a "ComponentActivatorException" using Castle Windsor from a .net 4.0 application using a .net 2.0 component

I have an application which is being developed in VS2010, and makes use of the Castle-Windsor IoC, through a configuration file. One of the components I am registering, also developed in VS2010, references a .net 2.0 component (LeadTools), so…
Hugo
  • 1,814
  • 1
  • 15
  • 23
0
votes
0 answers

Crash only happens when logging out and into Windows 7 without Explorer

Our application runs in a kiosk environment, that is, just Windows and our program, no Explorer. Our app is started automatically as Windows starts. If it is closed when the user is logged into our app with a low privileges profile, Windows is shut…
dario_ramos
  • 7,118
  • 9
  • 61
  • 108
0
votes
1 answer

Can't use SharpSvn on IIS Express

When I try and create an instance of SharpSvn.SvnClient on my local development system, I'm getting System.InvalidProgramException (SharpSvn.SvnClient..ctor() in g:\dist\src\sharpsvn\svnclient.cpp:36). I'm using 32bit IIS Express 8.0 with…
ulu
  • 5,872
  • 4
  • 42
  • 51
0
votes
1 answer

MFC / C#.NET mixed mode localization (multi language / multilingual application)

we have a complex application here which is written in MFC and C# and running in mixed-mode. We're now trying to set up a multi-lingual version of this application. So I created English resource files (in the .NET part) for every existing resource…
0
votes
2 answers

Add Company Name, Product Name, etc to Mixed Mode Assembly DLL

I'm building a mixed-mode assembly with C++/CLI but I can't figure out how to add standard Windows Assembly attributes like Company Name, Copyright, Product Name, Version, etc. There isn't a resource file that works like AssemblyInfo.cs does in C#.…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
0
votes
0 answers

mixed mode assembly is built against version 'v2.0.50727'

I am trying to make a COM for my old project. The COM is built successfully, but when I tried to use the COM to call some functions, this error comes out: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be…
Flysword
  • 13
  • 4
0
votes
0 answers

xperf profiling mixed mode code won't show native functions

I'm profiling part of my application using Visual Studio 2012, it's a dll containing native C++ and .net C++/CLI managed code. The performance report nicely shows information for all my managed code, but any place the managed code calls into native…
Jeff McClintock
  • 1,242
  • 10
  • 27
0
votes
1 answer

C++ Creating enhanced metafile results in an empty file

I'm trying to create an enhanced metafile like this: // Obtain a handle to a reference device context. HDC hdcRef = GetDC(hwnd); // Determine the picture frame dimensions. int iWidthMM = GetDeviceCaps(hdcRef, HORZSIZE); int iHeightMM =…
tube-builder
  • 686
  • 1
  • 13
  • 29