dll

Merging Assemblies

I m working on a project which contain about 17 projects in it, means 17 DLL's. i want to merge some assemblies together. after googling i found ILMerge . is Ilmerge good ? n how to use it? can anyone tell me ? i tried it but so many errors came when i try to run the .exe. Anyone ? ...

Impact of Microsoft Security Advisory (2269637) on .NET coding

Microsoft released Security Advisory (2269637) Insecure Library Loading Could Allow Remote Code Execution. The note refers to a tool that will help to detect this problem and programming guidelines on Dynamic-Link Library Security. How do these guidelines translate to .NET development? I assume this only affects Platform Invoke. Does...

C# code - Using a VC++ executable which refers another VC++ dll.

Hello, Am facing quite a nagging problem from quite sometime. The entire process is described below and please let me know what I am doing wrong: I have a VC++ project, say, "MyVC++Project" which references a third party dll named "thirdparty.dll". I am concerned about calling two methods from the dll, namely a.)::Validate(), which va...

Debugging both, native (ANSI C DLL) and managed (C# Assembly) code.

Hello, I'm having some troubles debugging a solution which contains both a native ANSI C DLL project and a managed C#/WPF application project. I call the functions exported by the DLL using the LoadLibrary/GetProcAddress Win32 API functions (DllImport attribute is not applicable for my program as the DLL is selected by the user). Both ...

returning std::string/std::list from dll...

Short question. I just got a dll I'm supposed to interface with. Dll uses crt from msvcr90D.dll (notice D), and returns std::strings, std::lists, and boost::shared_ptr. Operator new/delete is not overloaded anywhere. I assume crt mixup (msvcr90.dll in release build, or if one of components is rebuilt with newer crt, etc) is bound to ca...

How do I reference a 32 bit DLL in a 64 bit project?

I've got a C# 2.0 project which is set to target 'Any Cpu', however it is referencing a C++ project that's building a 32 bit dll. When I try to run my program on a 64bit machine I get the following error: System.BadImageFormatException was unhandled Message: Could not load file or assembly TreeTMHook, Version=1.0.2889.19619, ...

Invoking a COM Server Dll on a 64-bit Windows Machine

Hi! I'm having some 64-bit issues. Here's the scoop: I have 32-bit COM exe (written in FoxPro). This exe invokes a 32-bit COM dll (also written in FoxPro). In the 32-bit Windows world, the dll is placed in C:/Windows/System32 directory, registered with C:/Windows/System32/regsvr32.exe and all is well. The exe can be launched and an...

How to include a dll file that is been wrapped into a new dll?

In my application I have to explicitly link to a dll. The application is in QT with gcc compiler. The dll the application have to link to is a wrapper around another old dll. The purpose is to fit the old dll to a new interface. I use implicit linking when compiling the new dll. The new dll is compiled with msvc 2008. The reason is th...

Possible to Pass an Object as a Parameter to a Fortran Method?

I'm currently working on being able to import a DLL written in Fortran into Visual Basic. I've got all the basics down, so now I'm trying to take it a step further. The title basically says it all, but I'll explain what it is I'm trying to do anyways. For kicks and giggles, let's just assume I want to pass an object that has three doubl...

Adding reference to external .dll on Linux.

Hello, I'm building an F# application with Mono on a Linux box but need to reference a DLL from the F# Power Pack. How can I do this? ...

All registered dll in the system in .net

Hello, Is it possible in .NET to get a list of all registered dll in Windows OS. Can anyone provide me with C# code. Thanks. ...

A warning with building 64bit dll

dll export header extern "C" void _declspec(dllexport) __stdcall foo(); .def file EXPORTS foo @1 When I build the dll by 64bit build config, I meet this warning. warning LNK4197: export 'foo' specified multiple times; using first specification But If I build the dll by 32bit build config, the warning never occurs. Wha...

No creation of a WPF window in a DLL project?

Is there a reason why Visual Studio won't let me create a WPF window in a DLL project? I "solved" it by creating a window in an Application Project and copying it to my DLL project. I also found that I could just create a UserControl and change the base class to "Window". But if I had to do it this way, it's maybe because I shouldn't d...

how do i use the c++ dll in c#

i like import c++ dll in my c# application how can i Do this?, what is concept i need to use for this? ...

Dependency error while trying to use dll

Hello, I am trying to connect the quantumsoftware winforms components (http://www.quantumsoftware.com.au/Products/WindowsFormsComponents.aspx) to my visual studio 2010 (.net 4) project. The following warning always pops up when I try to use one of the components. Afterwards it results in an error: namespace not found.: The referenced a...

Creating a C++ DLL loadable by Lua

I have a small app that uses Lua linked as dll (not static). I want to load my own c++-written dll via Lua using package.loadlib (libname, funcname). For this purpose I need to export a function that follows the Lua's lua_CFunction protocol. Clearly for that reason I have to incorporate lua.h into my project and use Lua's functions to pa...

Looking for how to debug into an exported dll function in VS 9. Possible?

Got a big MFC C++ project. Our VS version is 2008. It loads a regular dll (for some optional functionality) and calls exported functions from it. When debug through the MFC app and get to the point where we call the exported function you can't step into the dll function. Is there a way to get debugging inside the dll functions. Eve...

MFC App loading dialog from another DLL

Hi! We have a very big MFC application that have 16 projects in the solution. Each project is a DLL. Four(4) of these projects are what we call "Network". In each network, there is a dialog that we will call X. This dialog is VERY different in each of the network but the name of the dialog itself is the same in each of the resource.h. I...

How do I use a C++ library from C# and .NET?

My question is closely related to how a DLL exports C++ classes and generic methods (wrt C++ language features without a C# parallel). I believe you can call functions inside an extern "C" block from C# by just referencing the DLL and using DLLImport. But can you instantiate a templated C++ type? What if the C++ type does somethin' c...

C# VS2005 : Possibly Corrupt DLL

Hi, I am getting following error when I run an exe referencing a particular DLL. Could not load file or assembly 'XYZ.ABC.DEF, Version=1.0.3801.24033, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied. Could the above error be due to XYZ.ABC.DEF.DLL being corrupt? What could be wrong with the DLL to c...