dll

reflection dll comments

Hi, Is it possible to read the comments on the dll. Comments are listed under Version when one looks at the property of the dll. I know that i can get the version number but would rather get the comments as it is user friendly. Assembly.GetName.Version.ToString --will give version number thanks ...

How can I know if a dll is x86, x64 or any architecture?

Possible Duplicate: How to determine if .NET assembly was built for x86 or x64? How can I know if a .Net DLL was compiled for x86, x64 or any architecture? ...

How to use WndProc from a C++ dll?

I want to handle some SAPI messages from a DLL, which is some sort of plugin. How to handle messages/events inside a VC++ dll. The SAPI event handling is shown in the example at: http://msdn.microsoft.com/en-us/library/ms720165%28VS.85%29.aspx ...

Is there an ideal size for executable modules on Windows?

I've been taking note of the .exe file size of many applications. I saw that Visual Studio 2005 has an .exe size of 453KB, and VS2008 of 1.04MB because they divide the application into many parts (.exe + many .dll files). I saw also that MS Outlook has a very large .exe file (11.8MB) while MS Word is very small (398KB)! After ponderi...

Writing a replacement for a C DLL?

I'd like to write a very simple replacement for w3btrv7.dll so I can pass Btrieve API calls to another library (written in .NET and called via COM). Basically, I need to mimic the signature of the BTRCALL function in C. However, I'm not a C programmer... at all. I think I have a pretty good idea of how to write a DLL that exports functio...

Using external libraries in a C program

To me (a beginner in C) it looks like a program can magically access external libraries just by declaring #include "something.h" at the top of a C source file. How is it done? I want to use the POSIX library (unistd.h). I've got the header file itself and a couple of dll's, but I can't link them together and get the compiler (GCC MinGW)...

calling dll from kernel mode c++ windows

How would I go about calling a dll from kernel mode? I have tried making a custom lib file using multiple techniques but I cannot get anything to work. I have also researched on google but cannot seem to find anything. I was also curious if it was possible to create entries in the import addres table from c++ or at link time? Thanks for...

Overriding / modifying C++ classes using DLLs

I have a project with a large codebase (>200,000 lines of code) I maintain ("The core"). Currently, this core has a scripting engine that consists of hooks and a script manager class that calls all hooked functions (that registered via DLL) as they occur. To be quite honest I don't know how exactly it works, since the core is mostly und...

Why do we still need a .lib stub file when we've got the actual .dll implementation ?

hi folks, i'm wondering why linkers can not do their job simply by consulting the information in the actual .dll files that got the actual implementation code ? i mean why linkers still need .lib files to do implicit linking ? are not the export and relative address tables enough for such linking ? is there anyway by which one can do i...

Max number of times a DLL can be registered/unregistered?

Is there a maximum number of times that a DLL can be registered and unregistered in a specific time period? Here's what I mean and why: I have a Continuous Integration package that builds my VB6 applications and in order to build each of the 80 components of the solution, I: retrieve each project's dependencies in turn register the dl...

DLL file and not Application Extension for domain libraries

I have dll's in my folder and Windows is the displaying the 'Type' of file as a 'DLL file' and not as an 'Application Extension' file. How can I correct this association? ...

Debug DLL's under Windows with GDB

Hello! I have some project consisting of a couple of DLL's which have been compiled with MinGW with debug information, and another project with EXE target which uses these DLLs (compiled with MinGW too). The problem is, I need to put breakpoints on functions inside those DLLs, but GDB, although sets them, just silently ignores them at ...

To start debug mode in Visual C++ 2005, do I have to provide debug version linked library?

Hi there, I have an annoying problem with the debug mode of Visual C++ 2005. My scientific program uses FFTW3 library which is a FFT transformation calculation library. Sadly, there is no official VC++ pre-compiled version of FFTW3 library. More sadly, compiling FFTW3 from source code with VC++ 2005 is very hard. The FFTW3 official webs...

using activex dll in vc++ win32 project

hi i have got a ScreenCameraSDK and it comes with a 11kb dll file, it has a documentation too which lists the functions which can be used. It says ScreenCamera SDK ActiveX Reference Documentation ActiveX Reference The ActiveX ID on the system is: ScreenCameraSDK.RemoteControl Every method on the interface returns FAIL or SUCCES...

Identify if a file(dll/exe) is locked or not by a process or library

I'am planning to write a sample program which identifies a file (a dll file) locked by / used by some process. How can we achieve this programmatically using WIN API (a C/C++ function)? Actually, when we are performing some software upgrade process some other process might be using the library which will interim fail the upgrade operati...

Why do I get a http response 206 when loading a .Net control .dll (activex) file in IE?

So I'm still struggling with the sucky fact that if you make a .net user control deploy as a .dll file to embed it in IE you have to have the user add the site as a trusted site AND modify their .Net security settings. If I don't do the above two things (add trusted site and modify .Net security settings) I get a http response 206 when ...

How do I expose erl_interface (Erlang's C library) through a DLL?

I've been working non-stop for the last three days on a completely managed interface to Erlang. At this point, I've decided that there simply must be an easier way. I've got a little over 3000 lines and it's not even in a compilable state yet. To be honest, I'm getting lost in my own code. So, I then remembered that Erlang has a C libra...

Why isn't cl.exe producing a valid Windows module?

I have a simple C DLL that exposes functions from a static library. The DLL compiles without errors and I can run DUMPBIN on it to see the exports. However, when I attempt to load it with DllImport in C#, it says this: System.DllNotFoundException: Unable to load DLL 'ei.dll': The specified module could not be found. (Exception from H...

Strange dll behavior (Question overhaul)

I have a dll project that references Microsoft.Practices.EnterpriseLibrary.Common.dll (="the dll") from my install dir of the Microsoft Enterprise Library 3.1. It has a public key that starts with "b03f". I have another project that references Miner.Geodatabase.dll version 9.30.2.5168 (It shows 9.2.0.0 in the GAC folder). The Miner dll h...

How to decompile a DLL in C++

I have an old DLL that stopped working (log2vis.dll) and I want to look inside it to see what objects it uses. The DLL was written in C++ (not .NET). Is there a tool that will decompile/disassemble C++ files? ...