Click here to Skip to main content
15,891,423 members
Everything / DLL

DLL

DLL

Great Reads

by CMalcheski
A full-scale all-assembly .DLL module for the situations that warrant it can offer a tremendous power and speed boost over using inline ASM or intrinsics alone.
by Avelino Ferreira
The easiest way to implement the ToolStripControlHost and ToolStripDropDown classes, in a UserControl, in order to display a Container/Control beyond the limits of its Parent Container and Parent Form, with very few lines of code. Let's uncomplicate ...
by pasztorpisti
An advice to make your DLL interface more attractive and easier-to-maintain even in cross-platform projects
by Irfan alam
A library for creating a voice and text conferencing application

Latest Articles

by Bruno van Dooren
An introduction to exporting functions from DLLs
by Bruno van Dooren
In this article, I explain how to create win32 style DLLs and what the various significant intricacies are.
by Philippe Cayouette, Sebastien Gibeau
Solution using smart pointers' custom deleters
by vblover Programmer
Create a resource-only DLL

All Articles

Sort by Updated

DLL 

19 Oct 2010 by "Fish" (David B. Trout)
Simple parsing of VS_VERSIONINFO version information strings displayed in an XP-style file-properties "Version" tab
5 Feb 2010 by #realJSOP
I think you need to google "C++ thunking".BTW, a 16-bit DLL won't work on a 64-bit OS - at all. With the increasing prevalence of 64-bit os's, I advice that you try to find another solution.
15 Feb 2010 by #realJSOP
Based on your response that it is a C++ DLL (assuming an unmanaged DLL at this point), you have to use System.Runtime.InteropServices to access the functionality of the DLL.If you don't have the source code to the DLL, you can find out what methods are exported by using a utility called...
3 May 2010 by #realJSOP
Try putting the DLL into your project folder somewhere and then adding a reference to it from there. No guarantees it'll work though.
25 May 2010 by #realJSOP
It seems to me that if you want to debug it, the pdb file should be in the same folder as the DLL. BTW, does the DLL HAVE to be in the GAC?
20 Jan 2011 by #realJSOP
Like Nish said, it should be a simple matter to move the code into static LIB files, and just link them in. If you're careful with your includes, you shouldn't even have too many issues.Hopefully, you're starting with a fresh project and not modifying the one that already works. :)
19 Mar 2011 by #realJSOP
I don't think you can mix platforms. Try changing both the app and the dll to either 32-bit or 64-bit and see if it clears up.
6 Apr 2011 by #realJSOP
No. Android is Linux, not Windows. What you want are .SO files (the Linux equivalent of a Windows DLL file).
3 May 2011 by #realJSOP
If your interfaces/classes rely on the enums, and the ui relies on the interfaces/classes/enums, I'd put the enums into the same assembly as the interfaces/classes. This way, you can resuse the interfaces/classes and their enums in another app (if that is the aim).If you're not planning any...
11 May 2011 by #realJSOP
How do you expect us to be able to help you with it when all we know is the errors you're getting? Have you tried running it under the debugger to see WHERE you're getting the exception? It's your code so you should have some idea of where this might be happening.I've converted dozens of...
27 May 2011 by #realJSOP
I found this on the first page of over 2.1 million results with a google search for "asp.net class not registered":http://forums.asp.net/p/1046003/1467497.aspx[^]
8 Jul 2011 by #realJSOP
0) Both an exe and a dll are assemblies. 1) An exe is an assembly that can be directly executed. A DLL cannot be. 2) Both an EXE and a DLL can be loaded as a reference inside another assembly.
9 Sep 2011 by #realJSOP
Google reveals all.A skinned dialog in Python and MFC[^]
3 Oct 2016 by #realJSOP
0) Make double-damn sure your method prototype is correct.1) Change the "out" parameters to "output".2) Why are you calling an unmanaged DLL to do that when .Net provides exactly the same functionality?
10 Jun 2018 by #realJSOP
All exposed classes and methods have have the comvisible attribute. If textsharp classes/methods don’t have that attribute, you’ll probably have to write a wrapper assembly that does it. I’m just guessing, I don’t know anything about itextsharp, and abhor MS Access and VBA.
29 Oct 2018 by #realJSOP
Try this: var result = new List(); foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) { foreach (var type in assembly.GetTypes()) { if (type is IHesaplama) { result.Add(type); } } }
30 Oct 2018 by #realJSOP
Google is your friend. It appears to be related to uninstalling GoPro software (or something similar). No SPLib DLL was found in the Waterfall procedure - Google Search[^]
24 Apr 2012 by 01.mandar
Hi friendsi have created an opengl application(moving color triangle) and runs perfectly(using glut).i wanted to pack the opengl application code into dll.another NEW win32 application will load the dll and create a new blank window, now i want to run the code from the dll into the...
22 Feb 2021 by 11917640 Member
Marshal::PtrToStructure: Marshal.PtrToStructure Method (System.Runtime.InteropServices) | Microsoft Docs[^] Additional overloads: Marshal.PtrToStructure Method (System.Runtime.InteropServices) | Microsoft Docs[^] Marshal.PtrToStructure Method...
26 Jul 2013 by 2006 Flauzer
I'm developing a C# assembly which is to be called via COM from an old vb6 (ie, "native" win32, not .net) application. I've installed VS2010 Premium in a W7 x64 and simply my goal is to use Visual Studio to debug the C# code...Other hint: the C# assembly is compiled in "x86 mode" (.NET4)...
29 Jul 2013 by 2006 Flauzer
From menu Debug->"Attach to.." option, please point the correct process ie, dllhost.exe COM Surrogate. and not win32 client....
27 Aug 2014 by 2006 Flauzer
I have noticed using the ProcXP (VMMap) that some ASP.NET applications (.NET 4)load (or maps?) some assemblies twice or more.I use VS 2010 (W7 x64), with the AnyCPU option and tested in 2008 R2 x64 server....the apps are both complied with release/debug options, the result it's the...
27 Aug 2014 by 2006 Flauzer
i think that this solves the question:https://connect.microsoft.com/VisualStudio/feedback/details/780964/assemblies-loaded-twice-in-64bit-application[^]
3 May 2010 by @Intersect☺™
No, I guess. But place two dll in two different location & try to load them.
3 Dec 2017 by ________________
If you want to use something in all your projects, define "Common" project, and this project should have references only to system dll, not yours. Put in this "Common" dll common interface, and use it. There is no solution for circular reference. It cannot be.
26 Aug 2013 by _Asif_
Check this link. This could be the reason324079-Why cant this Compile[^]
24 Apr 2014 by _Asif_
If you have had googled.... Anyway i have googled for you and found below urls. Might help usteps on calling COM dll API into my c# code[^]COM Interop Part 1: C Sharp Client Tutorial[^]
9 Jul 2014 by _Asif_
If you have the code then you can debug the dll by attaching the VS Debugger to the java process. You can look for the article How to: Attach to a Running Process[^]If that does not help then do a Google search "Attaching debugger to process"
10 Feb 2012 by _iris_
Hi there,I want to implement c#-dlls into a vb6-project. Everything works fine at both developers' computers as long as the dlls are compiled there and registered for COM interop via Project Options.When the finished exe is transferred to another PC and the dlls are there registered using...
20 Feb 2012 by _iris_
Thank you for the guess :) - looks like it's something vb6-specific, for the target computer to understand the exe it has to be transferred per a complete setup, visual studio for vb6 supplies tools for that. now it works at the target computer.i'm not sure yet if other developers can use...
23 Nov 2010 by A. F. M. Golam Kibria
Hey guys,I am creating some dll files.Is there any way so that while installing my application using that dll in clients end so that dll are located in a different directory and dll can be referenced from that directory.
27 Mar 2012 by Abdulbilal
I am a beginner in SharePoint 2010, I wants to copy my class file from MS visual studio to assembly folder in my computer. but i am not able to do that.. I wants to program for Event handling. Expecting a quick help..Thanks in advance..
8 Sep 2015 by abdulwahid
My problem and the solutionI have a 32 bit third party dll which i have installed in 2008 R2 machine which is 64 bit.I have a wcf service created in .net 4.5 framework which calls the 32 bit third party dll for process. Now i have build property set to target 'any' cpu and deployed it to...
5 Jun 2012 by Abed AlSayed
AlSayed ColorBar is a TrackBar best for professional color picker, like the one used in Adobe Photoshop.
16 Jan 2013 by Abed AlSayed
Hello I'am new to WPF, I've added (Microsoft.Windows.Shell.dll) Referenceand used this code :
15 Dec 2009 by Abhinav S
Build a tlb file for bass.dll and then include the tlb file in your project. [^]Hope this helps.
4 Feb 2010 by Abhinav S
DO you mean a .Net dll file in VB6.Yes, that is certainly possible.Search on the internet for COM Interop.
14 Feb 2010 by Abhinav S
Are you sure your dll is a .net dll?
17 Feb 2010 by Abhinav S
AFAIK, you cannot refer to new dll without recompiling your project.You can, however, change an aspx page.
23 May 2010 by Abhinav S
You cannot debug the C# source code of the dll unless you have the dll.You can view the disassembly to view assembly level code while debugging.
31 Jul 2010 by Abhinav S
See here[^].
29 Jan 2011 by Abhinav S
I got interested and did some looking around - I found a very cool blog that may provide the answer to your problems - http://nbaked.wordpress.com/2010/03/28/gac-alternative/[^].
27 Feb 2011 by Abhinav S
MSDN link here[^] (creating a Dll using the command line).
4 Aug 2011 by Abhinav S
IF you ILDASM (an inbuilt tool with .Net), you can actually view the IL of the code you are looking at.
17 Jan 2013 by Abhinav S
Try the System.IO dll - http://msdn.microsoft.com/en-us/library/3z72378a.aspx[^].
8 Feb 2014 by Abhinav S
Using DLL import -[DllImport("user32.dll")]static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);void ActivateProcess(int PID){ Process proc = Process.GetProcessById(PID); IntPtr mainWindow = proc.MainWindowHandle; ShowWindow(mainWindow, 5); // 5 == SW_SHOW }
31 Mar 2014 by Abhinav S
There is a term called publisher policy in .Net. This would allow you to allow put a new version of the dll and allow users to use the dll. Msdn link on this topic - http://msdn.microsoft.com/en-us/library/dz32563a(v=vs.110).aspx[^].
3 Apr 2014 by Abhinav S
TryInsert Plain Text and Images into RichTextBox at Runtime[^]How to insert smiley images in RichTextBox Csharp[^]Inserting images into a RichTextBox control (the OLE way)[^]
1 Aug 2014 by Abhinav S
To deploy dlls with exe's together, you can create a deployment project that will help you create an automated setup process.TryVideo Tutorial 1[^]Adding a Setup Wizard[^]
9 May 2015 by Abhinav S
Try Type t = asn.GetType(file.ToString() + "ClassName"); //Classname is class to be instantiatedvar methodInfo = t.GetMethod("MyMethod", new Type[] { typeof(byte[]), typeof(int) });//myMethod is method to be instantiatedvar o = Activator.CreateInstance(t);var result = methodInfo.Invoke(o,...
27 Sep 2011 by abhinav_soni
The ATL COM DLL that captures requests from individual Webbrowser Control
17 Oct 2015 by Abhishek Burrnwal
How to integrate by DHL shipping in asp.net?
3 Nov 2012 by Abhishek Pant
I built a gadget(clock) for windows 7. Now I want the thing is how to load it automatically on windows startup when once selected.Do I have to change its registery settings of setup & deployment.or it can be changed directly by importing any dll to the project.Any Links to solve this are...
2 Jan 2013 by Abhishek Pant
How to: Debug DLLs [^]How To Debug a Dynamic-Link Library (DLL) in Windows[^]NHook - A .NET debugger API for x86[^]Windows Debuggers: Part 1: A WinDbg Tutorial[^]
28 Jul 2021 by acalafiore
Hi all, first time asking a question but I wasn't able to find a solution to my problem yet. We are starting a new project in .NET and we choose to divide it in differente libraries to maintain it easily. Or so we hope. To keep it as simple as...
28 Jul 2021 by acalafiore
I have chosen to include in each solution the project needed for references. This way there are no missing libraries while running. Not really what I wanted but it's the easiest way.
6 Apr 2010 by account741988
I am having SQLite DLL version 1.0.65.0. I want to change original sqlite dll name 'System.Data.SQLite.dll' to 'System.Data.abc.dll' for security purpose.Thanks !
23 Nov 2013 by Adam Zgagacz
From behavior you described it looks like shapelib.dll is compiled for x64. If that's the case you will not be able to run it on 32 bit machine.
6 Dec 2013 by Adam Zgagacz
I'm guessing you want to distribut eyour application as single .exe and load all dlls from embedded resource.If that's the case you need to:1) add dll to the project (Project/Add Existing Item..)2) change added dll properties:• BuildAction = embedded Resource• Copy To Output...
13 Jan 2012 by Addy Tas
Hi, I can't really advice mixing release and debug versions but: yes it is possible. I do need to use simular constructs on a regular base as well. If the breakpoints are removed it is very likely that you are not actually using the current output or better said, it can't find the objects....
5 Sep 2012 by Adittya Gupta
If you are using Visual Studio you can do by following steps:1. Open your project.2. Go to your solution explorer.3. Right click on your project name and select properties tab.4. Go to Application tab and find 'output type' option.5. Click on output type and select class library.6....
22 Mar 2015 by adriancs
Merge DLL with App Into Single EXE
12 Feb 2013 by Adwaitam
Hi,I am facing some problems in the deployment of my VB ActiveX DLL on a server.I have a job which runs a stored procedure. The job and the SP are on the same server as the DLL. Using this stored procedure I access the classes (and the methods in those classes) in DLL by using the...
26 May 2010 by Aescleal
Microsoft suggest that this error message is caused by a DLL loading with the same base address as USER but before USER is loaded. There are a couple of causes, one on XP SP2 (documented here[^]with a fix), the other being that someone tried to rebase a DLL to the same base address as...
11 Jun 2010 by Aescleal
Here's a suggestion - don't use new and delete. You're making loads of work for yourself managing sizes and what nots, why not just use a vector? And you don't need to manually close files, that's one of the reasons they're objects.std::vector read_file( const std::string &file_name...
20 Aug 2010 by Aescleal
I know nothing about Delphi but are you sure it can cope with a reference parameter? None of the other languages I use regularly (Java, Python) can handle C++ references so it might be same for Delphi and that's what's causing the problem.Cheers,Ash
20 Jan 2011 by Aescleal
The first thing to do is make sure that you don't loose any of the dependency isolation you've got with the EXE + big DLL. What I mean by that is don't allow anything to leak across the boundary between the two as you do your integration. Using unit tests can be a good way to make sure you don't...
2 Feb 2011 by Aescleal
The first thing I'd do is go to the manufacturer and say "help!" While I've done it in the past reverse engineering the interface to a DLL is a real pain in the bum.You can divide C++ Dlls up by what sort of interface they have. As a broad sweeping generalisation they are: - The full...
21 May 2012 by Aescleal
Another thing you could do is write a test harness for C.dll in C++. Then you can test each behaviour (i.e. create an object, hit it with a sequence of function calls and see what the final state of the object is) and see if it does what you expect. If you make the tests mirror the behaviours...
25 Feb 2016 by Aescleal
My first rule of using DLLs with C++ is don't. It's generally more pain in the bottom than it's worth.If I can't follow my first rule my second rule is don't give a DLL a C++ interface, just use a plain C interface instead. This means use opaque pointers, primitive types and POD structures...
23 Oct 2015 by Afzaal Ahmad Zeeshan
In ASP.NET, the required binaries must be under /bin/ folder. That is from where your application will reference the assemblies, and even better, if you are using Visual Studio, is to use the "Add Reference" and then select the dll you want to include. Your application, ASP.NET, has a...
6 Feb 2014 by Ag_Sharad
I had recently bought a fingerprint cum card reader machine. And with it came the APIfor controlling it from my application. The problem is that i am building application based on C#.net and the api documentation says build on vb. Secondly i am not able to include and use it in my C#...
6 Dec 2013 by agent_kruger
how to integrate dll's such as (Interop.JRO.dll) etc in the software exe. i am using windows form c#. Thanks in advance.
2 Jun 2010 by ah123ah
I want to hook new and delete operators. But I am unable to locate the original DLLs where these operators reside. I used msvcr90.dll, msvsr90d.dll, msvcrt.dll, kernal32.dll, ole32.dll and some more dlls as well. But my spying application is unable to locate new and delete operators.Kindly...
2 Jun 2010 by ah123ah
Thank you for your prompt reply Aescleal.I am talking about single operator new and operator delete.I have tried out the break point and it ends up in new.cpp but this is not what i wanted as i need the dll and not .cpp or .hEDIT BY ASH:When you end up in new.cpp have a look at...
2 Jun 2010 by ah123ah
No Sir the break point does not provide me with enough information. i.e. Dll Name. it always provide me with the current application name.moeover on right click menu there are no such information regarding module name etc.I have already said that my application is unable to locate the...
30 Apr 2015 by ahamednafeel
Hello,I am Creating a small project which is created in C#. I am having a DLL file by the use of DLL file, I have to call the functions and methods and Make that project as a new DLL. I done this But the problem is The C# code is converted to net module it shows two errors. I am not clear...
4 Jun 2013 by Ahmed Bensaid
You can upload documents to SharePoint libraries using the Object Model or SharePoint Webservices.Upload using Object Model:String fileToUpload = @"C:\YourFile.txt";String sharePointSite = "http://yoursite.com/sites/Research/";String documentLibraryName = "Shared Documents";using...
5 Dec 2020 by Ahmed Dabas
I've Desktop application with N-Tire architecture , i want to send validation message from business layer to GUI Form to show it in MessageBox to make code more reusable and isolated. how can i achieve this What I have tried: i try throw new...
14 May 2012 by ahsanriaz1K
Hi,I have a VS2005 solution having one project of C++ console application and more than one library projects.When i run the c++ console application , command prompt appears but vanishes immediately. I have a lot of break points in this application. Some time before it was stopping at console...
14 May 2012 by ahsanriaz1K
I recompile the whole solution. I think a rebuild was required.Problem solved.
29 Mar 2010 by Ajay Dashora
Dear All,using MATLAB 2009b, I created the DLL (first_lib.dll, first_lib.h and first_lib.lib) from MATLAB function (first.m) using mcc and I would like to call it in a C code using Microsoft Visual C++ 2008 (Express Edition) which I downloaded from internet as free s/w.I am posting the...
20 Feb 2013 by AJRay
Hi all!..I am using EmguCV's SURF detection in a web application in C#/.Net. The code is compiling well, but at runtime its throwing an exception "opencv_core249.dll" could not be found or accessed although it is present in the system. Also when i tried referencing "opencv_core249.dll" its...
22 Aug 2013 by Akmal Abbas Naqvi
I have a dll file called MLScreenCapturePXT.dll , it is used to register the medialooks screen capture driver for flash , When i register this dll in windows 7 the drivers get registered successfully and we can see them in adobe flash camera setting but when i register the same dll in...
8 Mar 2010 by Alaric Dailey
The easiest will be to connect via the oledb provider and ADO, then run the following commandSELECT cn, mailFROM 'LDAP://Dc=mydomainname, DC=COM' --replace this with your domain infoWHERE objectClass = 'user'AND objectCategory = 'person'This should return you your list of users.
17 Jun 2011 by Albert Holguin
DependencyWalk...
13 Jul 2011 by Albert Holguin
Look at the libraries specified in the linker options of the functioning code and make sure that all those are also specified in the linker options of the code giving you the errors. Like Richard mentioned, this looks like you're missing .libs.
1 Aug 2011 by Albert Holguin
You can debug a DLL just like any other application in Visual Studio. All you have to do is tell Studio what executable will load the dll and you'll be able to debug from there. Here's a description: http://msdn.microsoft.com/en-us/library/605a12zt%28v=VS.90%29.aspx[^]If you debug in...
19 Jul 2012 by Albert Holguin
Quote:var = (LPVAR)GetProcAddress(hDLL, "Ver_C");The "Ver_C" should match the name of your exported function exactly. Make sure you have a function named that, if you don't, that's your problem. If you do have a function named that, make sure it was a C-style export or else the name...
22 Aug 2012 by Albert Holguin
Going off what Richard specified as the error code... What path did you specify in LoadLibrary()? Is it possible that the path is different now that you're dealing with 64bit?Some issues with paths in 64bit:0. 32bit applications are stored in "Program Files (x86)" instead of "Program...
3 Dec 2015 by Albert Holguin
If you really named your library Dll.dll, that's a horrible name! Aside from that, I'd check what Richard suggested above (make sure there's a path to the library or its in a good default location) and also check with a tool like Dependency Walker[^] to make sure there isn't some other...
28 Jan 2013 by Albert Wen-Jie Feng
Hi All, I am doing a project currently, we need to call third-party library in DLL format named Skype4COM [^] which only gives the interface. we have to combine this middleware with our java program to reach our goal. I searched for this topic so much but not found anything useful. This...
20 May 2015 by AldoBlack
I have built a software which retrieve the weight from digital scale and output it in a label in WinForms. Every time the weight changes in the scale it is also automatically updated in the label. Successfully I made it.This is my code:public partial class Form1 : Form{ private...
28 Mar 2014 by alex giulio
Hi everyone!My name Gilio Alex,I have a 1 solution and 1 .dll, I want to add reference to that's solution by auto(it's mean when we choose a reference from openFileDialog and click Ok button then this reference will add in solution. please help me! thank you so much!
30 Mar 2014 by alex giulio
thank all, i have solved my problem
19 Jan 2018 by Alex Schunk
Why are you using char arrays? COM is capable of using strings.
27 Aug 2012 by Alex_CC
In DLL Fileextern "C" __declspec(dllexport) void Show(CString caption,CString mode){ AFX_MANAGE_STATE(AfxGetStaticModuleState()); CTest test(NULL,caption,mode); test.DoModal ();}In TEST FILE void CTestDlg::OnOK() { // TODO: Add extra validation here typedef...
9 Jun 2012 by Alexandre Bencz
I'm trying to create a program in C++, which open with him, within the form, the CMD, so that I can run a program within the CMD that is inside the program. As an example, in this photo:http://i.stack.imgur.com/d6jes.jpg[^]I found some examples, but could not implement them in code, so,...