Can Windows find the unmanaged (non-COM) DLLs of a mixed-mode application if these DLLs are not in the application directory or Windows path? I noticed VS 2008 does not appear on the path, and I was wondering how this is done.
...
I'm trying to understand my options for calling a C# library implementation from unmanaged C++.
My top level module is an unmanaged C++ COM/ATL dll. I would like to integrate functionality of an existing managed C# dll. I have, and can recompile the source for both libraries.
I understand from reading articles like this overview on MSD...
My whole application (which is rather big, with a 20MB executable) is written in unmanaged C++.
Because I can clearly see the advantages in using managed code, I want to start introducing managed code in my application, but where do I start?
Can I easily start to use C++/CLI and link it with the rest of my application? (although the C++...
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 recompiling the 2.0 project isn't an option. When the wrapping component's registration is done...
I have to maintain a large C++ mixed-mode application (VC++ 2005, CLR-support: /clr:oldsyntax). I suspect the program has a number of memory leaks but it's hard to find them manually. For native C++ applications we use Purify (and Valgrind on Linux).
Unfortunately Purify does not support mixed mode assemblies. Anybody here knows a dece...
Hi All
I have a scenario whereby I require users to be able to authenticate against an ASP.NET MVC web application using either Windows authentication or Forms authentication. If the user is on the internal network they will use Windows authentication and if they are connecting externally they will use Forms authentication. I’ve seen qu...
I'm reorganzing a legacy mixed (managed and unmanaged DLLs) application so that the main application segment is unmanaged MFC and that will call a C++ DLL compiled with /clr flag that will bridge the communication between the managed (C# DLLs) and unmanaged code. Unfortuantely, my changed have resulted in an Access violation that occurs...
I've got a native C++ DLL that I would like to have a C++/CLI wrapper layer for. From what I understood, if you simple added a C++/CLI class to the project, VS would compile as mixed mode, but I was apparently wrong as VS doesn't seem to be even touching the managed code.
So, given a pre-existing native code-base what exactly, step-by-...
Hello,
I am calling LoadTypeLib for loading unmanaged type libraries in C++/CLI. I need to compile some code(some code areas) as managed and some code areas as unmanaged(native) code and form a mixed mode class library as executable.
What i need to mention between the lines of code so that whatever the part i need to be compiled as man...
Previously we had software in MFC (VC6), VB6 and C# applications that needed to call the same engine written in C++ (and MFC). The engine required C++ for speed. At the time we decided to use COM as the interface because all three could use it with the least issues in marshalling, etc.
Our MFC application is now deprecated and we have...
Hello,
I am facing an exception in C++/CLI while dynamically loading assembly which itself an EXE created in C++/CLI managed mode using Assembly.Load. It successfully loads a dll assembly, but fails to load EXE assembly and generates following exception:
An unhandled exception of type 'System.IO.FileLoadException' occurred in TestManag...
I wrote a class library in .NET 2.0 for database access some 2 years ago and have been using it all along on .NET 2.0, 3.0 and 3.5.
In the current project I'm working on (which is a .NET 4.0 application), tried using the old faithful class library and I got the following exception:
System.InvalidOperationException was unhandled
Me...
I am using visual studio 2008 and i have a native c++ project that loads a managed c++ dll, but on the last one, the intellisense doenst work anymore only por the managed code.
this project (dll) has a mixed code (native and managed) and if i write only "::" on a clean line, the intellisense gives me the methods inherits from the base c...
Hi!
my user will use form authentication against Active Directory or database. Theres no Windows Integrated Authentication there!!
What i want is when the user submit the authentication form, it will try to validate the user against Active Directory and if it fail, try with the database.
How can i do that? What i had in mind was to bu...
hi,
i have a mixed mode assembly that targets .net 3.5 using the vc 9.0 runtime. i do wan't to support .net 4.0 yet still remain compatible to the old framework as well (the library should work for 4.0 and for 3.5 processes).
if i update to .net 4.0 i have to use the vc 10.0 runtime. however from this runtime i can't target an old .ne...
Hello,
I am working with mixed mode assemblies in C++/CLI. All managed mode assemblies pdb's get loaded when successfully in mixed mode assembly. But native dll's pdb's not getting loaded even no information shown of native pdb in Modules pane (i.e in VS Debug->Windows->Modules).
Note:
I am using native dll and calling its exported fu...
I have a mixed-mode executable and I noticed that the constructor of my native global variables is called in the main thread, but the destructor is called in some other thread.
The name of thread is 'Thread::intermediateThreadProc'.
The global variables are
What is the reason for this? And what is this 'Thread::intermediateThreadProc'...
A user reported to us that some strange behaviour in our application can be resolved after installing .NET 4:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>
I wasn't aware that if you didn't specify an assembly it might be loaded in a high...
Hello,
I am using Inline asm in C++/CLI. Horrible problem infact could be a bug I obsereved.
I passed vector from one function call to another. If I comment the whole code snippet of _asm{....some assembly code here} inside the called function where vector used which are provided to it from other function, then no problem whole vector...
I want to start migrating a WebForms App to MVC. The process will be gradual, so both systems must co-exist.
The question is: Should I have two MasterPages, one for the WebForms pages and other for the MVC views? Is there a way to have only one?
...