dll

How do I find out which missing DLL is making my .NET application crash on startup?

When dependencies on 3rd party assemblies are added to a typical .NET application it's very easy to forget to add them to the installer. This problem tends to reveal itself only after the application is installed, and in the form of a crash on startup with little helpful information readily available. What are the best tools and techniq...

Microsoft.ExceptionMessageBox not being "found"

I have a winform solution that I deploy through clickOnce. There is the Main Project and then a Project called psWinForms. That project has a Reference to Microsoft.ExceptionMessageBox that I use in my custom error reporting. I have psWinForms as a reference in my Main Project with Copy Local = True. I have Microsoft.ExceptionMessa...

How to use C++ Classes exported by a dll in Delphi

Hi, is there a way to use C++ classes exported by a win32 dll in Delphi for win32? Are there other ways to archieve similar things (COM, .NET, ...)? ...

java.lang.UnsatisfiedLinkError in my java program :(

Hi, I created a program which uses JNI. I compiled it, generated header file, created a corresponding C program, and created dll for it. I am running into an exception: Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\examples\FirstJNIExample.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.l...

How to create native DLL in Visual Studio from C# code?

I have the source code of a C# program. I want to create a DLL out of it which I want to use in C++. Is it possible to create a native DLL in Visual Studio 2008 which can be used in C++? ...

How to decompile a .dll file created in VS.net

Hi all, I need to decompile a dll file created in VS.net. Is there any tool available to do this? Or Can I have some code to do this? Please help. ...

Compile asp.net web site and certain references are not being copied to Temporary ASP.NET Files Folder

Scenerio: I have an asp.net website that I am compiling successfully but keep getting an error in the browser saying that it can not find a referenced dll in the solution. I checked the directory in the Temporary ASP.NET File location and all of my referenced dll's are there except for the one it is failing to retrieve. I manually added ...

How does .NET allow API exploration of compiled DLLs?

The title says it all... ...

Is it safe to pass a pointer to a method as a member of a record?

Hi quick question. I want to implement a function in a dll that accepts a record as a parameter and this record as a few fields that hold pointers to callback routines. Would this be safe? ...

Visual Studio 2008 IDE - Static Linking a C Dll Library

I am experiencing Frustration ^ Frustraion with this %&$^& VS IDE. I am using Visual C++ 2008 3.5 SP1 (but I also have the pro edition if that is needed and I dont want to use loadlibrary()) I have a test Dll created in another language (basic not C in fact) that contains a CDECL function that adds an 'int' to a 'double'. I would really...

Setting up dependencies on Visual C++ 2008 Express

How do I set up Visual C++ 2008 Express to point to the required libraries and include directories of a 3rd party C library? ...

Disable automatic DLL loading in C++

My scenario is as follows: my application depends on a certain DLL (I use it's lib during linkage). However, when my application executes, I want to explicitly load that DLL using LoadLibrary. However, by default, when the code reaches a scope where that DLL is needed, the environment automatically look it up, and then loads it. I want t...

Can a DLL link to another DLL with an import library if the first DLL is linked at runtime?

I'm writing a DLL for an audio-player (foobar2000) using its SDK. My DLL links to another DLL, and I've done so using an import library (.lib). However, at run-time, the audio player complains that my DLL (the one that links to the other) is missing a dependency. I don't know if this can be generalized or not, but if the first DLL is l...

permissions issues with ADCCSharp.dll c#

I have used the ADCCSharp.dll to check if a user exists in Active Directory. I use this in the login form of a windows application. The problem is that some users can not access the program and they are (exists) in active directory. I guess there must be some right| permissions|security problem. How can i set rights to the dll i use? t...

Cleanest Method for copying Native DLLs in a .NET Project

I have a C# GUI application that references a Managed C++ project, which requires 7 native C++ DLLs. I'm looking for the cleanest method for copying these 7 DLLs to the final project output. What works Add all DLLs to the C# applications, specifying: Build Action == "Content" Copy To Output Directory == Copy Always" This will ...

A .NET DLL question

I created a C# file and wish to compile it into a DLL for future use. However, this .cs file depends on another DLL. In my code inside my .cs file I am doing something like: using anotherlib.dll; When I try to compile it into a DLL, the compiler tells me that it can't find that anotherlib.dll (missing directive or assembly reference)....

Sharepoint 2007 Web Part Exception Handling for Missing DLL references

I know that you can wrap problematic code in a try/catch block to prevent an error from taking out your webpart. But what can you do for missing references/dlls? Is there anyway of catching those errors before they blow up your SharePoint page? ...

How do I access functions from libsndfile-1.dll in MSVC?

Hi,   I'm having trouble getting libsndfile-1.dll to work in my MSVC project. I can load the library and retrieve the version string from the dll by calling sf_command() from my code. However, I can't seem to get sf__open() to return a SNDFILE pointer. I've also noticed that I can't get fopen() to return a FILE pointer either (maybe th...

Refer a dll which is inside another dll in WPF

How to refer a dll which is inside another dll in WPF? For example if I have two dlls A.dll and B.dll. A.dll contains a reference to B.dll and I build A.dll. Now I want to get a component in B.dll from A.dll I use as /A;component/B;component/Original.xaml" But it is not working? ...

Share dll data among different processes.

I have to implement a dll in C# which contains a list of tasks. The responsibility of this dll is to manage these tasks. Different processes will interact with this dll, each for its own task, identified by the task ID. But since each process will have its own copy of the dll data, the challange is how to manage this list. This list has...