dll

Flexible reporting system with dynamically loaded assemblies

I want to build a flexible reporting system for my application. So far I only have a concept in my head and need some tips on implementation. I'm using Crystal Reports to render reports and I know how to load reports dynamically. Now, the idea is that every report will be packaged as a separate assembly (.dll). The reporting framework w...

Version resource in DLL not visible with right-click

I'm trying to do something which is very easy to do in the regular MSVC, but not supported easily in VC++ Express. There is no resource editor in VC++ Express. So I added a file named version.rc into my DLL project. The file has the below content, which is compiled by the resource compiler and added to the final DLL. This resource is vi...

Communicate between a COM DLL and C#

I asked a question the other day regarding overlay icons. With help, I figured out how to get that working. Here's how an icon overlay works (as far as I understand): Before the shell draws an icon it contacts all the icon overlay handlers in the system to determine whether it should draw an overlay on the that particular icon. My se...

How can I load dll within FireFox xpi to local PC directory before extension install is complete

My FireFox extension has an external dll dependency for functioning. So I include that dll inside my xpi and copy that dll to the right directory in first run. But it does not work for me because I found my own dll (written in XPCOM C++) expects to see that external dll during install. So every time I have to manually put the external dl...

Is there a tool where you can edit a .NET dll directly?

Is there a tool where you can edit a .NET dll directly? .net reflector allows you to view the dll but doesn't allow you to modify it directly. ...

Why the native DLL is not copied to the output directory

I have a C# project A which uses a .net wrapper DLL and a native DLL. I add the .net wrapper DLL to the reference list of project A. Since the wrapper DLL only works with the native DLL when they are in the same folder, the native DLL should be copied to the output directory of project A. I achieve this by adding the native DLL as a cont...

How do I search an ActiveX/COM object for a method?

I have an ActiveX/COM DLL. It contains many methods and properties. I would like to be able to ask it if it has a particular symbol, as per the following snippet: If HasMethod( "StdLib.DLL", "ReadFileE" ) Then ... End If Is there a way to do this from, say, VBScript or JScript? If not, where do I go to get the information I need? ...

Why is it necessary to add new events to the *end* of an IDL interface?

I have found that when I add new events to an existing COM/IDL interface, I sometimes run into strange issues unless they are added to the end of the interface. For example, say I have the following interface: interface IMyEvents { HRESULT FooCallback( [in] long MyParam1, [in] long MyParam2, [in] long MyPara...

How do you put an entire asp.net website into one dll?

I am building a web application framework in C# for Asp.Net. The framework consists of mix of dll files, aspx files with codebehind files, code files in App_Code, css files and images. I've looked at the "Web Application" project in Visual Studio 2008. This helps to remove all code files and put them into one dll in the bin folder. But,...

How do I call a method in a custom ActiveX dll using java/vb script

I have created an ActiveX dll using VB6 and packaged it using the Package & Deployment Wizard which has resulted in a cab file and a demo HTML page. This ActiveX dll contains a simgle method that returns a string and accepts no arguments. The trouble I'm having is that when I call the method I always get a "Object does not support thi...

Passing data back from external dll with threads...

I have a common comms library that i have written to communicate with our hardware over TCP/IP The common library allows both the clients application and our engineer tool to share common code. The common library runs threads that need to return data back to forms. I have some working code but I feel that there must be an easier way ...

Windows malloc replacement (e.g., tcmalloc) and dynamic crt linking

A C++ program that uses several DLLs and QT should be equipped with a malloc replacement (like tcmalloc) for performance problems that can be verified to be caused by Windows malloc. With linux, there is no problem, but with windows, there are several approaches, and I find none of them appealing: 1. Put new malloc in lib and make sure ...

Is it possible to have version-independent DLL references in a class?

I would like to create a class that compiles into a single DLL. This DLL would add functionality to an existing product. To make this work, the custom class references DLLs contained in the underlying product. These references are needed to compile. Everything works fine here and the custom class compiles. I can drop the DLL produ...

Should I change my Image Base?

In Delphi the Image Base linker option defaults to 00400000. Per the help: Specifies the preferred load address of the compiled image. This value is typically only changed when compiling DLLs. Default = 400000 Is there no effect for changing it on EXE's? What would the effect be? Is the address relative to each process? ...

How to show source code in debug when using .lib and dll

I am working in VS2005, I have a part of freeimage source code. I compile it into .lib and dll. When I debug the program, I want to step into freeimage source code ,however vs2005 do not know which code is the freeimage.lib freeimage.dll compiled from, How can I let vs2005 know it. I want to step into freeimage source code, when using i...

Managed C++ - Importing different DLLs based on configuration file

I am currently writing an application that will serve a similar purpose for multiple clients, but requires adaptations to how it will handle the data it is feed. In essence it will serve the same purpose, but hand out data totally differently. So I decided to prodeed like this: -Make common engine library that will hold the common funct...

calling a DLL made in VB6 from C

Okay, this one is the reverse of the last question I struggled with... I feel like I'm sooo close to getting it but it's just not working. Before, I was trying to compile a DLL in C, and then call it from VB, but I realized that's not really what I want (I want the program to be written in C, while using a VB frontend, not the frontend b...

Qt DLL deployment on Windows

Hello, I have a Plug-in for an application from another company. My plug-in uses Qt so it needs the Qt DLLs. My problem is that all versions of 4.x Qt Dlls are called the same, e.g. :QtCore4.dll. It is quite possible that some other plugin, or another application which inserted itself into the PATH environment variable, has put Qt dlls ...

How to force destruction order of static objects in different dlls?

I have 2 static objects in 2 different dlls: An object Resources (which is a singleton), and an object User. Object User in its destructor has to access object Resources. How can I force object Resources not to be destructed before object User? ...

Enumerating DLL functions?

Hello guys, Is it possible to enumerate every function present in a DLL ? How about getting its signature ? Can I do this in C# ? Or do I have to go low level to do this? Regards and tks, Jose ...