How do I get the application name from within a dll?
If I had a dll (foo.dll) that was LoadLibrary'd into an application (bar.exe), how do I get the string "bar.exe" from within foo.dll? ...
If I had a dll (foo.dll) that was LoadLibrary'd into an application (bar.exe), how do I get the string "bar.exe" from within foo.dll? ...
I have 2 dlls: A and B. From a code in dll A, I am loading dynamically the dll B (using dlopen on Unix and LoadLibrary on Windows). Is it guaranteed that B will be unloaded before A? Is there any difference between Unix and Windows behavior? ...
Hello, I thought the problem is inside my C++ function,but I tried this C++ Function in C++ dll: bool __declspec( dllexport ) OpenA(std::string file) { return true; } C# code: [DllImport("pk2.dll")] public static extern bool OpenA(string path); if (OpenA(@"E:\asdasd\")) I get an exception that the memory is corrupt,why? If ...
I am using Delphi 2009 on Vista Ultimate 64 bit. I run my application from within the Delphi IDE, and after some time (a minute or 2) my application will hang. Looking at the event log, the hang is associated with a thread exiting. It is not the main thread, but a thread that has been started just after the module RSAENH.DLL has been l...
I have a C++ class I'd like to access from a C# application. I'll need to access the constructor and a single member function. Currently the app accepts data in the form of stl::vectors but I can do some conversion if that's not likely to work? I've found a few articles online which describe how to call C++ DLLs and some others which de...
I have a project that references a particular DLL (dllA) at a particular location. This DLL (dllA) is updated automatically (i.e. there is a version number update on every build) Now in case I try using the project built DLL (dllB) in another application (Parse the DLL in), which already has a reference to dllA - it will throw me a Fil...
I am trying to use the JACOB library with Clojure using Clojure Box. I have added this to my .emacs: (setq swank-clojure-library-paths (list "c:/dev/dlls")) C:/dev/dlls/ contains the jacob-1.14.3-x86.dll. I have added a .clojure dir to my ~/ dir and that contains the jacob.jar. At the Clojure Box REPL, (System/getProperty "java.cl...
Hi there, Let's say in the constructor of my .NET class I want to write code that will actually add methods to my class dynamically. So now when I reflect over my class I will see the methods where as when I first built the project the methods didn't exist How can I achieve this? I've been looking up CodeDom but it's all a bit confusi...
Hi, I have application which needs to use a dll (also written by me) which has be independently verified by a government agency. We plan to modify the dll very rarely due to the re-verification which would be required. I want to prevent inadvertent modifications to this dll being picked up by my application. Is there a way to create a h...
Hi, i have 9 DTD files example xhtml dtd1 xhtml dtd2 i want to create a DLL file which includes all the 9 dtd's. So any of you can help me in creating it or tell me from where to start? Thanks ...
Hi, I am working on an application that has more than a few dlls written in VB6. VB6 code includes COM dlls and ocx controls. The rest of the code is in C++ and C#. I have been assigned the task to make the application code base compatible with 64bit architectures. Loads of help material is available for C/C++ code so thats not a proble...
I am having a VB application request a list of users from a C DLL: VB will ask the DLL how many users there are, and then initialize an array to the appropriate size. VB will then pass its array by reference to a DLL function, which will fill it with usernames. I started writing the C function like this: foo(char **bar); which would be ...
Context: I have a handful of plug-ins (which are really just DLLs with a different extension) that need to be installed in a sub-folder of a 3rd party application. Usually it's enough to simply copy them to said folder, but occasionally there are other libraries that need to be installed as well. I'd like to make this process less error-...
I was looking at the differences between POCO and DTO (It appears that POCO's are dto's with behaviour (methods?))and came across this article by Martin Fowler on the anaemic domain model. Through lack of understanding, I think I have created one of these anaemic domain models. In one of my applications I have my business domain entit...
I have a library (lib file + .h header file). I like to turn it into a DLL so I can easiliy use it in VB6. Is there a convenient way to do this? ...
Hi! I'm learning to develop apps using Qt Creator. I have built a simple app under Windows, depends on uses mingwm10.dll, QtCore4.dll, QtGui4.dll, QtNetwork4.dll. Out of QtQui4.dll I use only a a couple of widgets, and don't need all of the rest... Is it possible to either shrink the size of QtGui4.dll or do something else to decrease de...
I have a situation in which a managed DLL calls some unmanaged DLL. I know the CLSID of the unmanaged DLL, is there any way to find out what binary file houses that CLSID? ...
My application depends on OpenSSL libraries (through Qt networking modules; you can't compile it into Qt statically, because of legal issues) There's this project - Win32 OpenSSL Seems like all I need is to copy the two dlls into System32 and register them. copy ssleay32.dll %WINDIR%\System32\ssleay32.dll copy libeay32.dll %WINDIR%\S...
Hope I'm asking this correctly: I have a project Projects.Client I have my class library ( infrastructure stuff I use all the time ) Library Assuming these are both projects, how can I do this from a class in the "Projects.Client" using Library; public class xxx { public void DoSomething() { Library.SomeDll.DoS...
I created an application, with the mingw compiler in a WinXP system. It worked fine. I then tried to run it in an older WinXP box(this has been in the shelf for some 6 months). The application terminated with an exception --'The application could not initialize (0xc0150002)'. Running depends.exe on the app shows two unavailable dlls(ie...