dll

DLL Hell - Need to have C# assembly (DLL) link to C DLLs from a specific location

This problem of mine has me pulling my hair out. It's related to the issue I had earlier with needing to write a Mutex that will get destroyed when going out of scope. It turns out that I was stupid and didn't need the Mutex -- the things I needed to lock out wouldn't observe the lock because they were actually being called from the sa...

Resharper + Sharepoint = locked DLL in GAC

If you develop to Sharepoint with Resharper, there are DLL locks in GAC. This issue blocking you to publish your DLLs to GAC. How to deal with it? UPD: here is my development scenario: VS 2008, resharper 4.5 I'm developing website for '_layouts' directory and some DLLs for this website (data access level (DAL.dll) for exapmple) In t...

How can Find all dependencies of an application?

In a Portable-Exe ,there is possibilities to find the imported section ,and also all imported dll names (using import descriptor).Here Ex, One application Exe has many imported dlls(kernel32,advapi,user,comctl32....etc),Now i want to find all dependencies in that app exe(imported dlls)..give me the logic using recursive function calling....

Plugin DLLs that depend on other DLLs

I am writing a DLL to plug into another (3rd party) application. The DLL will need to depend on another set of DLLs (for license reasons I cannot link statically). I would like my DLL to be "xcopy-deployable" to any directory. I would also like not to require adding this directory to the path. If I just build the DLL the usual way, Win...

How to use WM2003 binary (dll) on Windows Mobile 6.1 (WM6.1) device ? (PE-loader can't accept old binaries)

Hi! I have an old plugin (as binary, dll), used by my application. It was build for WM2003. And now it crashes the app, if loaded on Windows Mobile 6.1 (WM5 works fine, WM6 too). The source code is not available and it's no more supported by developer. So I can't rebuild it for WM6.1. Is it possible to patch or convert the binary to a...

Can't get DLL to work on Visual Studio.

I've been following the tutorial from msdn and it just doesn't work. First problem I have is that sometimes the .dll and .lib aren't built. Instead I only get .objs. Whenever I build the .dll project, it gives me a popup asking to "please specify the name of the executable file to be used for the debug session". I was told to change my ...

Callback from Delphi dll to C# app

Inside a c# application a c#-method with parameter is to be called from a delphi dll: The C# method gets called, but the int param is not transfered correctly: some "random" value arrives. The C#-method is passed to the delphi dll via a register method: [UnmanagedFunctionPointer(CallingConvention.ThisCall)] public delegate void...

Debugging the dreaded 'Application has failed to initialize' error

I occasionally run into this error when trying run an executable I've built on windows, but I have no idea what causes it or how to fix it. With the normal MSVC debugger, it just pops up a dialog and exits with no chance to do anything or look at anything. I've managed to at least catch something and get a stack trace with the Microsof...

Loading managed dll into AppDomain from native c++ code.

Hi, I want to load managed assembly into the AppDomain from native c++ code. If it worth something the native code is a CLR profiler so I get notification each time AppDomain is created. ...

What are some of the possible causes of "entry point not found" runtime error?

I am trying to compile a program that is created from Visual Studio 8, converted it to Visual Studio 9. After giving all the required .DLL, .lib, and #include directories, I successfully compiled the program. However, when I tried to launch it, it always give out an error: The procedure entry point SwapBuffers could not be located in t...

WriteFile with DLLs

Hey, Im writing a DLL and I want to write some data to a file (150k+) The problem is - WriteFile is not writing everything it should write It looks like the thread gets terminated before WriteFile finish its work. any ideas ? thanks ...

Defining a C++ type in C#

I have a .DLL and a .h file. I'm using c#, but the .DLL is written in C++. I have to problem with calling certain function within the .DLL. The problem comes when I need to call functions that have types defined in them . For example include with the .DLL was a .h file and it has a type defined like follows: struct device_info { HANDL...

Trouble referencing an f# dll in a c# project

Forgive me if the answer seems obvious. I created a Visual Studio solution and added two projects to it, one an f# Library (called MathLibrary) and the second, a c# frontend (called frontend, I'm aware of my creativity). So I add a reference to the MathLibrary DLL in my frontend project, compiled the MathLibrary DLL (to make sure) and ...

COM DLL - using Mono instead of MS .NET Framework

I have a DLL written in C# which is acessed by a native EXE (written in Delphi) via COM. Now I was asked to make it work with Mono (on Windows, not Linux) instead of Microsoft .NET Framework. Is it possible to be done? If it is, how can I do it? ...

Why doesn't my wxPerl application for Windows start?

Hi, I've developed an application with Strawberry Perl 5.8.9.4 using wxPerl. The application is compiled using: wxpar -f Crypto -F Crypto -M Filter::Crypto::Decrypt --compress=9 --gui --icon=icon.ico --lib=./lib --module=App::Order --module=Wx --module=App::GUI::Main --module=App::GUI::Frame --module=App::GUI::Forms::Settings --mod...

Protect assembly?

I have a .NET DLL (C#/VB) with custom controls, extension and other stuff. I want that it should be available for me only. Is there any way to restrict unauthorized access to a DLL? ...

Replacement for the site "Dll Help"

I just found out about the site DllHelp, and it turns out it was retired yesterday! :-( The site is: (according to Joel on software) a complete database of every DLL Microsoft has ever shipped, and which versions of which product it shipped with. Is anyone aware of a replacement / equivalent site, or is this information simply no ...

using microsoft enterprise library logging in c++/cli

I am trying to use microsoft enterprise library logging framework in a c++/cli dll. I tested it in a c++ application, and it worked beatifully. it is compiling in the dll, but does not work when I try to run it, and the error is not getting caught in my catch clause. I have all the correct import and using statements in place - as it c...

Deploying a .NET service after updating a COM DLL

I'm trying to update a vb6 DLL and redeploy a .NET service, but I'm getting the following error: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {D01BF589-BC04-4119-8168-AE6180BBD021} failed due to the following error: 80040154. The steps I'm taking in de...

What are the advantages of loading DLLs dynamically?

Looking for the advantages of loading DLLs dynamically as opposed to letting your application load the DLLs by default. ...