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

How to get solution for mixed model using nlme package

My data look like this Study NDF ADF CP Eeff 1 35.8 24.4 18.6 34.83181476 1 35.8 24.4 18.6 33.76824264 1 35.8 24.4 18.6 32.67390287 1 35.8 24.4 18.6 33.05520666 2 39.7 23.4 16.1 33.19730252 2…
hn.phuong
  • 835
  • 6
  • 15
  • 24
1
vote
1 answer

Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime

I'm trying to make a simple video player so i wont to use Microsoft.DirectX.AudioVideoPlayback.dll but when i'm using this dll file programe raise this error Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be…
BlackRoot
  • 504
  • 1
  • 9
  • 29
1
vote
1 answer

PHP Response directly from C / C++ language

I am looking for an efficient way of responding to an http request. When a http request is received (apache/php webserver environment), I want to know if I can obtain a reference to php's response instance inside a c++ library method and write the…
jsa
  • 369
  • 2
  • 7
1
vote
0 answers

Printer DLL gets loaded/unloaded many times when accessing PageSettings from within a mixed-mode application

var settings = new System.Drawing.Printing.PageSettings(); System.Diagnostics.Debug.WriteLine( "Landscape: " + settings.Landscape ); When I run this code in a managed application, everything is OK. However, in a mixed-mode (C# & C++) application,…
crypto_rsa
  • 341
  • 1
  • 12
1
vote
2 answers

Mixed-mode C++/CLI app not shutting down CLR correctly

My mixed-mode MFC application is creating false memory leaks because the CRT doesn't have time to shut down before the MFC dll is shut down. I have a very simple little app that shows the problem: #include #include struct…
Cechner
  • 849
  • 7
  • 19
0
votes
1 answer

Mixing different versions of libraries in code for Linux

The program that I am working on is statically linked to a 3rdPartyLibrary.lib. We wanted to take advantage of a newer version of the same 3rdPartyLibrary, say 3rdPartyLibraryNewVersion.lib. So the decision is to include the…
Tim
0
votes
4 answers

Load PHP and HTML code to a PHP variable echoed in a

Here is my case. I have the following script:
Ginger Opariti
  • 1,282
  • 5
  • 23
  • 41
0
votes
1 answer

Using mixed-mode debugging on a managed unit test in an SDK-style project in Visual Studio 2022

I have a C# unit test project that I would like to debug with mixed-mode debugging when I select Debug on a test from the Test Explorer. In the properties dialog for non-SDK-style projects I can choose "Enable native code debugging" under the Debug…
poizan42
  • 1,461
  • 17
  • 22
0
votes
1 answer

How can I debug into Fortran code from C#?

I have a mixed language class library used for numerical modeling. It is C# calling a native DLL that is created using C++ wrapping Fortran libraries. My solution contains a unit testing project, from which I can debug from the C# into the C++ and…
spainchaud
  • 365
  • 3
  • 12
0
votes
0 answers

set mixed mode authentication in SQLCMD

Is it possible to set mixed mode authentication from within SQLCMD? I installed SQL Server 2012 Express last week because I forgot my old installation password. It didn't help. I've been through a ton of stuff just trying to get back to square…
0
votes
2 answers

Compiling C and C++ with single makefile

I'm trying to create an executable that uses my earlier created shared library, which by the way is now static which includes the openSSL static library. So I used the same Makefile that I was using to create that library, and hacked it to make it…
AjB
  • 890
  • 13
  • 34
0
votes
1 answer

How to reference an assembly which is built against version 'v2.0.xxx' of the runtime in IronPython 2.7?

I am trying to create wrapper for an assembly (thirdPartyDLL) which was built against version 'v2.0.50727' of the runtime. But whenever I try to reference it in IronPython code, it always results in following error IOError:…
Amey Vartak
  • 309
  • 2
  • 5
0
votes
2 answers

.net 4 debugging api causes access violations in debugee

is there any way the .net 4 debugging api can somehow corrupt the state of an application during startup? the issue i have is the following: if i start my application from within a debugger using the .net debugging api (visual studio 2010, sharp…
0
votes
1 answer

How to transfer datatype declaration from .cpp file to .cu file?

I found that cuda support use "template" keyword for the code, now I would like to link the usage of "template" between nvcc and g++. But it seems that I cannot find a proper way to implement it, so I use the string of datatype to deliever the…
Lekayef
  • 11
  • 4
0
votes
1 answer

How to convert from 'cli::array^' to 'CDWordArray &'

My MFC code has a function: SelectItems(CDWordArray & awTop); I invoke this thorugh another CPP project, as: array< unsigned int >^ selectedItems; DWORD cnt = m_handle->SelectItems(selectedItems); But i get error can not convert parameter 1 from…
Jaqen H'ghar
  • 1,839
  • 7
  • 37
  • 66