Questions tagged [dll]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
38
votes
6answers
13k views

Advantages of using .dll files over linking .cs files to projects (for my own generic helper classes / extension methods)

I have a helper project which I use in all the applications that I create. It contains some extension methods and a bunch of generic helper classes, controls etc. I update/extend the helper project ...
14
votes
10answers
2k views

C++ : Lack of Standardization at the Binary Level

Why ISO/ANSI didn't standardize C++ at the binary level? There are many portability issues with C++, which is only because of lack of it's standardization at the binary level. Don Box writes, (...
11
votes
2answers
10k views

C++ Library API Design

I'm looking for a good resource for learning about good API design for C++ libraries, looking at shared objects/dlls etc. There are many resources on writing nice APIs, nice classes, templates and so ...
9
votes
5answers
33k views

Is it possible for two DLLs to conflict , preventing solution to build

Though I have a specific case, but I was wondering about the general situation. Can two DLLs, when added as Reference to a Visual C# project collide with each other to prevent the solution from ...
7
votes
1answer
3k views

Why are strong names optional?

Why the c# allows project not to be strongly signed when they are build? They may be signed by some automatic name file if programmer do not choose his(hers) own sign file. Where is the advantage of ...
6
votes
2answers
1k views

LGPL, .lib, .dll, and linking

I am trying to build a project which uses an unmodified copy of libconfig (http://www.hyperrealm.com/libconfig/). libconfig is LGPL, but I don't want to open source any of my code. By my understanding,...
5
votes
2answers
17k views

C# inherit from a class in a different DLL

I need to make an application that needs to be highly modular and that can easily be expanded with new functionality. I've thought up a design where I have a main window and a list of actions that ...
5
votes
1answer
306 views

DLL Hierarchy issues

I want to preface this by saying "I love my job and I want to stay here" But I've got a serious problem, Circularly linked DLL's (DLL's linked back to the EXE) Special builds with conditional ...
4
votes
6answers
316 views

Sharing database interface functionality among multiple applications

I am currently refactoring some old code and I am facing some architectural problems. Currently 3 applications are working with the same Database (as follows): Content inserted by user Content ...
4
votes
4answers
2k views

What is the proper aproach of Subversion when using DLL

Background: Our team develops a solution and it includes a number of projects. Most of the projects are built as DLLs and those DLLs are used by the rest of the projects. Currently we uses ...
4
votes
1answer
392 views

What should developers know about Windows executable binary file compression?

I'd never heard of this before, so shame on me, but programs like UPX can compress my files by 80% which is totally sweet, but I have no idea what the the disadvantages are in doing this. Or even ...
4
votes
3answers
412 views

Organization of DLL linked functions

This is a code organization question. I got my basic code working but when I expand it, it will be terrible. I have a DLL which I don't have a .lib for. Therefore I have to use the whole LoadLibrary()...
4
votes
2answers
369 views

Memory concerns while plotting escape from DLL Hell in Delphi [closed]

I work on a program with about 50 DLLs that are loaded from one executable, it's an old organically grown program where the only rationale for creating a new DLL is that one previously didn't exist to ...
4
votes
1answer
2k views

Build a native dll or .net dll to be used independently in either set-up

Here's a simple question (kind of), but I'm having a hard time taking a decision. First, a history on how I came to have this problem. In my new job, we need to use a third party API to communicate ...
4
votes
0answers
154 views

Implementing new project to communicate with old ones. The correct way

I'm not sure if this is the right place to post this (I'm fairly new, but Stackoverflow and Superuser suggested this site for my question), but here goes. I currently have the following: A frontend -...
3
votes
2answers
5k views

should I be putting database connections into a class library?

This might be a stupid question but I've never created a class library before The reason I don't want to be connecting to a database through the class library is error handling.. should I just leave ...
3
votes
1answer
8k views

Communication between a C# application and C++ DLL

I am currently building an audio streamer and I have a CPP .dll that I use functions of inside the WPF C# GUI. The program needs to deal with sorts of events such as Lower/Increase Volume Manipulate ...
3
votes
3answers
2k views

How to update dependency during runtime in my .NET application?

I have a server-client application. Sometimes the server is updated which requires some DLLs in the client to be updated as well (The DLLs are the dependencies of the main executable). For now, we ...
3
votes
2answers
1k views

Managing DLL files, deployment, and ease of use for the end user

I've been thinking recently about being an end-user who wishes to download one of my own projects and use it on a perfectly average machine. Having an equal background in Unix as well as Windows, I ...
3
votes
1answer
603 views

Does Microsoft still have C++ container limitations when passing to DLLs? [duplicate]

Microsoft has had a fair amount of trouble in the past when passing STL containers like string and vector pointers and references to DLLs. See, for example, You may experience an access violation when ...
3
votes
2answers
1k views

Worried about memory leak in DLL that creates a dynamic sized array

I have a wrapper DLL that interfaces to another DLL that contains the following function: char * Foobar(void) { // BLAH is the function from the DLL this wrapper interfaces too char *array =...
3
votes
3answers
452 views

Partitioning code into assemblies for the sake of logical seperation

I've started working at this company, and the software is managed in a Visual Studio solution that includes hundreds of projects (C++ and C#). After poking around the solution for couple of weeks, I ...
2
votes
4answers
3k views

Computation Program Not Running at 100% CPU Utilization

I have a program which has a GUI and performs some very heavy mathematical computations for a couple of minutes and then outputs a result. When I try to directly interface it through its DLL's, it ...
2
votes
2answers
472 views

Why use dynamic linking for less-popular libraries?

I know the difference between static and dynamic linking. I know why the notion of a library is important. And I even know why you'd want to link something like OpenGL, platform-specific APIs, or ...
2
votes
2answers
1k views

Restrictions Calling DLLs Across Technologies?

I want to call a DLL in my programming language of 'choice'. The documentation surrounding this clearly states that it must be a 32-bit DLL written in C, C++ or Delphi. But I wanted to call a DLL ...
2
votes
2answers
302 views

GPL: terms of license

I'd like to use the VLC's DLL in one of my programs. VLC is under the GPL license. Do I have to redistribute all the sources under GPL or can I redistribute only the modified sources of VLC under ...
2
votes
1answer
3k views

Choosing between Web API and DLL reference

I am confused between choosing Web API or DLL reference for a project I am working on and want to understand recommendations for both the approach. We are having a Web API which exposes an interface ...
2
votes
1answer
108 views

Organizing code to minimize repetition and external references

I am struggling with how to organize external references in a C# program in order to minimize code repetition. I have application "A1" for which I want to use Microsoft's Unity IoC/Dependency ...
2
votes
1answer
173 views

Explicitly mark unexported functions in a DLL?

When writing an unmanaged Win32 DLL that exports functions, it's not uncommon to have some functions, variables and/or classes that aren't meant to be exported and are only for internal use within the ...
1
vote
2answers
718 views

How to hide the dependencies of a dll from the code calling it?

I have a class library that calls dll_A. dll_A has dependencies on WPF. How to I wrap or isolate my class library so that the code calling my library does not need to have a dependency on WPF? (...
1
vote
2answers
724 views

GPLv2 - Multiple AI chess engines to bypass GPL

I have gone through a number of GPL-related questions, the most recent being this one: https://stackoverflow.com/questions/3248823/legal-question-about-the-gpl-license-net-dlls/3249001#3249001 I'm ...
1
vote
2answers
234 views

How can I make dll that can be called from several programing languages?

As of right now I am building authentication library for let's say programing site(It needs to be included in the program). The problem is that there several languages are used and I want to make ...
1
vote
2answers
2k views

Can I really make python work with VBA

I'm a heavy VBA user that when has the chance to do a little project in python it's like going from hell to haven when it comes to programming itself. Still, I know that my users want reports in excel ...
1
vote
1answer
149 views

Sharing dlls in a software deployment

We are moving our software project from the practically auto-creating Visual Studio Installer in Visual Studio 2010 to a WiX installer. I'd like to use this change to make sure things are right. The ...
1
vote
2answers
161 views

Extracting data from third party program i.e. craft an unofficial API

If got a native application which adds value by for instance analyzing measurement data from measurement programs. Some of them have an API, so I can get their data via IPC. But how can I achieve this ...
1
vote
1answer
59 views

Encapsulate common application libraries into a single library project

My company is planning to integrate 3 in-house libraries into all of our applications (with possibly more on the way), and I'm wondering what the best way to go about this would be. My initial ...
1
vote
2answers
2k views

Integrate C++ DLL with C# GUI asynchronously (design issue)

This is more a design than an implementation question. I am aware of how to integrate a C++ DLL within a C# main app that acts as GUI. Believe me that I've read all other questions on similar topics, ...
1
vote
1answer
278 views

Program modules separated in different DLLs

We have an existing ERP system written in VB 6 that we are converting to .Net incrementally. Now, every module in the system is being separated into DLLs so that the product becomes customizable and ...
1
vote
1answer
107 views

Securing cross DLL references within an Application

I am developing a. NET application. One of my DLLs manages all the security (data encryption, license management, etc). I was wondering if someone could somehow substitute this DLL file with one of ...
1
vote
1answer
79 views

Security error on asp.net system after deployment of bug fix dll [closed]

I (recently inherited) a asp.net web application in production. After fixing a generic bug in the area of making a table selection - we have a problem regarding security policies not allowing access ...
0
votes
1answer
104 views

Multiple DLLs vs Multiple EXE's in a project that needs to be modular (web browsing automation)

First of all, C# solutions are needed. So in my team I am responsible for creating a program that will receive a "task" in json format from an API, from this json it needs to figure out what website ...
0
votes
1answer
110 views

What are the dangers/downside of unit tested dynamic library(DLL) being different from released library?

This is similar to: https://stackoverflow.com/questions/1278831/unit-tests-in-production-release-code# but more specific. At the moment the DLL I ship and the DLL I use for unit testing have ...
0
votes
1answer
4k views

How to catch DllNotFoundException in C#? [closed]

this question in my opinion straightforward. How can I catch an DllNotFoundException in C# as it is just an attribute to some methods use like this: [DllImport("NativeLib.dll")] private static ...
0
votes
1answer
225 views

Usage of class libraries (dlls) - Reference or copy source

I'm working on a big project for the first time and right now I'm using 15 dll's from different sources. Having all these dll's in my output directory together with my .exe is "polluting" that folder ...
-1
votes
1answer
80 views

Is it a good idea to make common Electron libraries available globally on Windows? [closed]

I build and run many Electron apps on Windows. I noticed that all of them have the same common api files / libraries to run. They all take about 30mb of space. I'm thinking of installing these files ...