dll

How can I free up a DLL that is referred to by an exe that isn't running?

I've got a windows service that relies on a DLL. Whether the service is running or not, its executable is keeping a handle to that DLL, which is preventing me from updating it automatically. Why is this, and how can I remove that handle programatically (preferably via .Net)? Update: I know that the service's executable is the one with ...

Ways to provide a framework for DLLs to depend on each other and expose functionality?

Essentially, how to write a plugin system, where each plugin is a DLL. (Or is there a better way of a plugin system where each plugin is written natively?) Suppose that each DLL offers some functionality available to other plugins. If plugin A does provides FuncA and plugin B wants FuncA, how should dependency be managed? How should plu...

Adding 3rd party libraries to Visual Studio source control

This is a problem that has been eating at me for a while, and I just haven't found a good solution (no pun intended) for it. I'm using Visual Studio 2010 with Subversion and Ankhsvn. It works very well, however, my biggest problem with it is that it only retrieves and manages files that are "included in the project". This is great in ...

How to create a formating and indentaion code in C#

How to start with creating a program to format C and their derived code into .net style formatted code so that if I input any program. This program can recognize and reformat by properly adding indentation and other things. ...

adding a new component and what is Interop.dll file?

Hi.I add a component to my project and now in ..\bin\Debug folder this file is added:Interop.t1.dll. i want to make setup file for my project ,because of Interop file that is created in ..\bin\Debug ,i don't need be worry about registering the component(t1), is it true?if i should do more task for making setup ,please guide me.thanks a...

Is "IMPORT ADDRESS TABLE" of PE per dll or per exe?

Does anyone know whether the 'import address table' in the PE executable format on Windows is 'per dll' or 'per exe'? ...

Update application's libraries (DLLs) during runtime?

Is there a way to update DLL while application is running in C#? For example, if there is DLL with a function that looks like this: void write() { Console.WriteLine("LALALA"); } And it is called in a thread with 1 second sleep between calls. Now, I wrote the new version: void write() { Console.WriteLine("LA LA LA\n"); } Ca...

.Net compiled 3rd party dll reference conflict

I am using Umbraco (.Net CMS) and it has a reference to a specific version of a dll (see 1 Umbraco Reference below). This is fine until I try to hook into the .Net MailChimp API which references a different vesion of the same DLL (see 2 PerceptiveMCAPI below). I can think of a couple of options for resolving this a. Get either the U...

Delphi DLL / Form communication

I have embedded a form in a DLL and can call the DLL and show the form and return various functions from the DLL back to the main app, however I cannot figure out how to get the DLL to trigger events in the main applications form. For example in the main app I have a dataset and I want to have a button on the form in the DLL to goto a ...

FileNotFoundException trying to load a DLL from managed code

Hello guys, To start off, I'd like to say I'm rather unfamiliar with the Windows linking system. (Most of my programming experience was acquired on Mac OS, on which linking libraries and framework is radically different. I'm also not much of a Windows user.) This is my setup: I've got two projects in the same solution. The first is a C...

Symbol eliminated by linker (Delphi)

Help! I am receiving this error when viewing the contents of an inbound function parameters in my Delphi 4 application. The code calls a function in a dll with 3 parameters (app.handle, pchar, boolean) The declaring function is in externs.pas and declared as: function AdjustVoucherDifference(hOwner :HWnd; Receipt_ID :PChar; bCommit...

dlclose problem

plugin1.cpp: #include <iostream> static class TestStatic { public: TestStatic() { std::cout << "TestStatic create" << std::endl; } ~TestStatic() { std::cout << "TestStatic destroy" << std::endl; } } test_static; host.cpp #include <dlfcn.h> #include <iostream> int main(int argc,char argv*[]) { void* handle = dlop...

SetWindowsHookEx, CBTProc and g++3.4.5 (mingw)

Hi, I'm currently working on an application that needs to add a menu to each application's system menu. I can accomplish that for the existing windows with the EnumWindows function. For the new windows (applications starting up after mine) I'm trying to do this with windows hooks. More specifically with CBTProc. This is where I'm stuck....

What is an un/managed DLL? What is un/managed code?

Could someone please explain? Thank you. ...

when we need inject dll

hi i learn some way to inject dll into another process ok when we will use it or why use it and please give me some roadmap ...

CreateProcess (binary injection) cannot reference DLL's

In following this example code for binary injection: http://www.security.org.sg/code/loadexe.html I can get it to work, inject a second exe into the primary exe's memory space and run. The trouble is that the second exe can not access any DLL's in the startup folder. For example: c:\1.exe c:\2.exe c:\helper.dll If 2.exe is injected...

C# interface C++ DLL?

How do I call functions from a C++ DLL? The C++ DLL contains functions like this: __declspec(dllexport) bool Setup () { return simulation.Setup (); } The C# program does this: [DllImport("mydll.dll")] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool Setup(); The C# program crashes with the following message wh...

Visual Studio unable to load necessary dll's to run project

I am trying to run a project in Visual Studio 2010, and for some reason it seems like I can't... the command-line window is closed instantly and the debug info is the following: 'exercise01.exe': Loaded 'E:\e\work spaces\C++ projects\exercise01\Debug\exercise01.exe', Symbols loaded. 'exercise01.exe': Loaded 'C:\WINDOWS\system32\ntdll.dl...

Removing external dependencies to MFC DLL project

Im developing a MFC DLL project in VS2008. The dll compiles OK and I can call it fine from an GUI exe that a contractor has developed for me. Visual C++ Redistributables are required to be installed for my dll (and maybe the exe which is developed in C++ too) Another company wants to licence my dll to use with their C++ exe. They have ...

create a simple dll file with JNI

Im trying to create a simple dll file.Im following the tutorial http://java.sun.com/docs/books/jni/html/start.html when i try to compile the c program i get following error : Warning W8057 HelloWorld.c 10: Parameter 'env' is never used in function Java_He lloWorld_print Warning W8057 HelloWorld.c 10: Parameter 'obj' is never used in ...