The standard DLL entry point is called DllMain. The second param is DWORD ul_reason_for_call.
I have looked up on the MSDN to find all the values this can have, the following are obvious:
DLL_PROCESS_ATTACH:
DLL_THREAD_ATTACH:
DLL_THREAD_DETACH:
DLL_PROCESS_DETACH:
But what about :
DLL_PROCESS_VERIFIER
When will the entry point be...
I have a DLL that's compiled, and I don't have the source code for it anymore. The only thing I want from the DLL is the functions it provides, and how they are accessed, i.e. their signature.
How can I do this?
...
I have been writing DLL on C++, that will be use in C#.
DLL have some function, where I call
hres = CoInitializeEx(NULL, COINIT_MULTITHREADED);
and next call
hres = CoInitializeSecurity(
NULL,
-1, // COM authentication
NULL, // Authentication services
...
I ask since a project I work on generates a single, monolithic DLL of about 50 MB size.
Does a large library like this one impede performance, or can it bring other gotchas?
UPDATE:
I work with Embercadero RAD Studio Delphi 2010 on Windows (XP|Vista|7).
...
On linux, we have LIBRARY_PATH and LD_LIBRARY_PATH environment variables in order for programs to search for libraries. Do we have similar thing on windows? Particularly Windows 7?
Also, I would like to know best practices for DLL use (where to put them, use envs or not, etc.), since I want to work on windows like everyone does, and no...
I had never had this error before, and I didn't move any file, or exclude any reference.
I'm getting this error (link).
In the ajaxcontroltoolkit.dll.refresh file, I get a path to the DLL, but it is a path that was located in someone else's computer (who no longer is in charge of this).
It might as well work if I just re-do the refere...
On a Windows XP Professional SP3 with Internet Explorer 8 box, when I run Dependency Walker on an executable of mine it reports that:
IESHIMS.DLL and WER.DLL can't be found.
Do I need these DLL's?
Where can I get them?
I believe they are supposed to located in
C:\Windows\System32\Wer.dll and
C:\Program Files\Internet Explorer\Iesh...
I have a solution with several projects and one website.
The website uses some third-party DLLs.
I have to place the DLLs in the bin folder under the website. This is the same bin where the DLLs from the other projects get auto-loaded.
Is there a way I can place the third-party DLLs in a separate folder?
If I 'Add Reference' to the DLL ...
Hi,
In our application, we need to use a COM dll (namely msdia100.dll) which was not registered in the system before.
Earler, we have just called the DLL by calling its DllRegisterServer via this code:
// Register DIA DLL required by Breakpad
std::string diaLibPath = "msdia100";
HMODULE diaLib = LoadLibrary(diaLibPath.c_str());
if...
I am working on a project that requires some image processing. The front end of the program is C# (cause the guys thought it is a lot simpler to make the UI in it). However, as the image processing part needs a lot of CPU juice I am making this part in C++.
The idea is to link it to the C# project and just call a function from a DLL to...
In Visual Studio 2008 project properties, Application tab, I can set the Output type to Windows Application, Console Application, or Class Library. I have a project that I want to build as a stand-alone tool (console app) and be available to a couple other tools I'm working on as a class library.
The VS GUI only lets me choose one or th...
Hello,
I'm working on a C++ project that produces a lib that other teams use. It's being produced in a few different flavours:
Win32 Debug Dynamic
Win32 Debug Static
Win32 Release Dynamic
Win32 Release Static
x64 Debug Dynamic
x64 Debug Static
x64 Release Dynamic
x64 Release Static
I'm wondering what the best wisdom is on how to nam...
We are currently working on a new webservice that required some functions used by one of our websites. We decided to move these functions into a dll so that they could share the code and we wouldnt have it in two places. When I moved some of the functions over and added the dll to our webservice, all the calls through the DAL running our...
Hi,
Is it possible to obtain a list of functions declared in an unmanaged DLL? I want to create this list in a c# program.
Using dumpbin or System.Reflection.Assembly is not possible.
Thanks
...
I'm building a WPF application and working with the MVVM pattern.
I have 4 projects in my solution, 3 class libraries, Data, Model and ViewModel and the WPF executable View.
Is there anything wrong with the Model referencing WindowsBase so that I can use ObservableCollection<T> for example or can I just make use of what I intuitively f...
I am trying to use pantheios file stock back end to log from my dll in c++. The file gets created but nothing gets written to the file.
Here is a snippet of my code
if (pantheios::pantheios_init() < 0)
{
MessageBox(NULL, "Init Failed", "fvm", MB_OK);
}else {
MessageBox(NULL, "Init Passed", "fvm", MB_OK);
pantheios::log_IN...
I have a .DLL that i include in my Visual Studio 2008 project. The .DLL came with a .XML file that has all the comments for the properties and functions.
How do i make it so that VS loads up these comments as Intellisense, so that i have a definition for the functions?
-------------UPDATE---------------------
The files are placed unde...
I want to deploy an application with a license attached. However, I want to prevent that my dll can be easily referenced in visual studio.
What are the usual ways of doing this? I was thinking about ngen-ing the application to prevent this, however, then the code becomes architecture dependent. Im not targetting any other architecture/p...
Namely, a DLL name has an extra @8 at the end which is causing trouble. Apparently, using the --kill-at flag in gcc would solve this, but I can't find any similar suggestions for MSVC.
EDIT: A little more info:
I'm trying to get a C++ JNI dll to work, but I constantly get
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: ...
Hi
I have my project developed in MFC which is unmnaged code. Now i need to create a similar application in C#, by reusing most of the MFC classes.
Is it possible to directly export class/struct/enum from MFC dll, so that i can import it in my C# using dllimport and use it.?
...