dll

.net - AccessViolation when interacting with native DLL for the first time

This is a little bit of a weird one, and my first foray into the world of .net so I'm hoping that I'm missing something fundamental :) Background: I have a native/Qt c++ DLL that I am wrapping for use in .NET, C# in this case. I have a Qt app that uses this DLL successfully, without memory leaks, etc. I have created a c++/CLI wrapper...

Using a Qt-based DLL in a non-Qt application

Am I doing it right? A client of mine has a group where I'm developing Qt-based client-server stuff with a lot of fun widget stuff and sockets. Another group within the company wants to use a wrapped version of the QTcpSocket-based client data provider classes. (Which does basically what it sounds like, provides data from the server t...

How does GetProcAddress work

I've done some googling but haven't really found much. How does GetProcAddress work? What goes on behind the scenes? Do the method names and their corresponding address get stored in meta data somewhere? ...

Packaging Add-Ins in DLLs

I have two MS Office add-ins written in VBA that I would like to package into an installer, along with some support files. Since VB passwords protecting add-in code can be hacked pretty easily, I want to "convert" the VBA code in my add-ins to DLLs, then call the DLLs from the add-ins. What are my options for "putting" VBA code in DLLs...

DLL/TLB in Java<->DCOM communication

I have to write an OpenOffice add-on (in Java) which communicates with DCOM server of some closed-source application. The major problem is that, I don't have any documentation about server's Interfaces . All I have is a VB/C++ SDK kit for the Application. SDK contain a library in dll and a bunch of *.tlb files. In SDK documentation ther...

Is it safe to allocate memory for buffers on external dll and use it on main application?

As in topic.. I've found something like this in one application. In main C application we have declaration: void* buff = NULL; and later there is a call: ReadData(&buff); SaveToFile(buff); SaveToFile() is a C function from main function. ReadData(void* * ) is a C++ function from external dll. In this function memory for buffer is...

Merging .net managed dlls

I have a managed dll "Sample.dll" that I use to build my dll "myDLL.dll". But I want to distribute 1 dll ("myDLL.dll") file only. How do i merge them? ...

Debugger ignores errors in dynamically loaded DLLs

Hello. I have a very strange problem related to debugging of self-coded DLLs. I have an MFC-driven dialog-based application, several projects linked statically and several DLL-projects which are loaded at runtime. I build solution in debug, run the application and I can easily debug those DLL-projects. Now the problem. If there is some...

Error crops up after weeks of running a website.

I have a website based on Vs2008, .NET 3.5SP1 C# code. One of the functions requires it to interop with a COM-based DLL that creates PDFs. About once every 3 to 4 weeks, anything COM related (e.g. generating PDFs) is completely hosed. I get the following error: Creating an instance of the COM component with CLSID {7A91D523-4...

How do I add an assembly to a Visual Studio project and reference it?

I've compiled an assembly for MySql.Data.dll and would like to add it to a new Visual Studio Project. I'm lost on the correct terminology and how best to go about this, but the end goal is to distribute this dll so that it's included with the application when the application runs. This is to avoid having to GAC the dll on the end user'...

When I make a project reference in Visual Studio, do I then have to include the DLLs for those projects when I deploy?

I have a console application and two class library projects. The console application has to project references to the class library projects. When I build, it generates DLLs for these two projects. Do I have to include these with my console applications exe file? Is there a way I can make it so I don't have to include these 2 dlls? ...

How can I read the attributes of a .DLL file using C#?

I want to read the comments of a .DLL file: ...

visual studio 2008 dll issue

Hi, I am new to Visual Studio environment and QT, I am working on developing a browser plugin using QT on visual studio 2008. A 'dll' has been prepared and copied to the plugins folder of the Mozilla firefox and Internet Explorer, it works just fine, I viewed the content using the plugin in the browsers, It all started when I tried to t...

What does `dll exporting/importing` mean?

I'm very confused with this terminology. I absolutely don't like the word export in the context of dll. Reason is only because, I don't understand what it is. I don't know where to look for either. It is used in many occasions. Exporting from a DLL export table from a shared library functions exported by dll. Can any one please expl...

What happens to a native DLL when placed in the Bin folder of an ASP.NET application?

I'd like to know what happens when a native (read: non-.NET) DLL is placed within the Bin folder of an ASP.NET application. Specifically I have ~two questions (I won't bog down these straight forward questions with the specifics of my situation): Does ASP.NET store the DLL's in memory? Is this why a) I can't delete the files and b) chan...

Where should I place unmanaged .dlls in a .NET project using VS2008?

So far I've been placing the dll into the /bin folder because it seems to be the only place it will get loaded when a DllImport'd function is called, but it just doesn't feel right since it's the output folder and it'll probably be wiped after a 'project clean' or 'rebuild all' operation. How should I do this? Thanks in advance. Note: ...

How can a DLL have zero exports?

I recently ran across a DLL installed on my system that Dependancy Walker (and every other utility I tried) says has zero exports by name or ordinal, yet the file is approximately 4mb in size. I thought the sole purpose of a DLL was to export functions for use by other code so what would be the purpose of a dll with no visible exports? ...

Reference the dll file from the qt project

How do i reference the dll file from the qt project. can someone give me the sample .pro file? Thx. ...

How to view source code of dll files?

How to view source code of dll files? ...

Visual Studio: Different DLLs for configurations

I'd like to make a x86 and x64 version of my application because some of the libraries I'm using have differences for x86 and x64 (e.g. SQLite). I made a new configuration for release builds that has as target operating system "x64". Is there a way to define different DLLs for the configuration e.g. use SQLite.dll for x86 release and ...