Questions tagged [dll]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8 votes
9 answers
771 views

Would we need Docker if applications were better behaved?

A well-written program will be configurable. It will have a configuration file or database which specifies where to look for files, which network ports to open etc. An Operating System lets many ...
-3 votes
1 answer
80 views

How do I find out all modifications made by installing software? [closed]

So I want to find out how to get a list of all modifications made by installing a piece of software. For example. If I install Word, I want to see all directories created, classes registered, dlls, ...
5 votes
2 answers
2k views

Should a solution containing projects exposed as nuget reference them as package?

Scaling down for the sake of the example, my project is structured like this: solution X project A project B Project A is exposed as nuget packages externally, project B need ...
3 votes
1 answer
211 views

Distributing library which internally using COM library

I would like to create a dll library that will be loading in runtime. The library'll be using internally COM objects with MTA flag. The library will be created in main thread. So I have question: ...
1 vote
2 answers
1k 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 ...
user avatar
0 votes
1 answer
322 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 ...
3 votes
1 answer
469 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 ...
  • 247
-1 votes
1 answer
178 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 ...
  • 119
7 votes
2 answers
439 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 -...
0 votes
1 answer
239 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 ...
1 vote
2 answers
1k 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? (...
2 votes
1 answer
150 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,029
1 vote
2 answers
216 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 ...
4 votes
1 answer
6k 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 ...
  • 153
2 votes
2 answers
4k 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 ...
2 votes
1 answer
227 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
1 answer
73 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 ...
  • 273
1 vote
1 answer
83 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 ...
  • 139
4 votes
6 answers
350 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 ...
  • 93
3 votes
2 answers
765 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 ...
  • 647
0 votes
1 answer
270 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 ...
  • 157
38 votes
6 answers
15k 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 ...
  • 597
2 votes
2 answers
4k 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, ...
  • 55
3 votes
1 answer
962 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 ...
user avatar
6 votes
2 answers
24k 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 ...
  • 1,523
0 votes
1 answer
5k 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 ...
  • 213
4 votes
3 answers
482 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()...
  • 143
8 votes
1 answer
4k 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 ...
  • 401
3 votes
2 answers
2k 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 =...
5 votes
4 answers
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 ...
3 votes
3 answers
484 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 ...
  • 205
1 vote
1 answer
259 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 ...
  • 133
1 vote
1 answer
281 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 ...
6 votes
2 answers
2k 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,...
2 votes
2 answers
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 ...
  • 419
4 votes
2 answers
6k 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 ...
  • 143
3 votes
1 answer
9k 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 ...
-1 votes
2 answers
869 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 ...
  • 125
3 votes
3 answers
3k 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 ...
  • 6,012
4 votes
2 answers
405 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 ...
  • 6,897
15 votes
2 answers
12k 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 ...
  • 3,601
4 votes
1 answer
426 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 ...
  • 6,897
4 votes
1 answer
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 ...
  • 143
2 votes
4 answers
4k 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 ...
  • 155
10 votes
5 answers
41k 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 ...
5 votes
2 answers
2k 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 ...
  • 215
2 votes
2 answers
334 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 ...
user avatar
5 votes
1 answer
352 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 ...
  • 6,897
15 votes
10 answers
3k 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, (...
  • 1,515