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 ...
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...
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 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.
...
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...
Does anyone know whether the 'import address table' in the PE executable format on Windows is 'per dll' or 'per exe'?
...
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...
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...
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 ...
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...
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...
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...
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....
Could someone please explain?
Thank you.
...
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
...
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...
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...
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...
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 ...
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 ...