dll

Security implications of using .dll's

Is it practically possible for a malicious developer exploit your application by swapping a genuine .dll file for a modified one. If so are there steps that can be taken to protect an app. Are there some types of functionality that should not be placed in .dlls for example? ...

How to pass and return objects to and from a DLL?

Hello everybody... I need to return objects from a DLL made in Delphi, to an app made in Delphi, too. The objective is to do a subsystem that can be modify in the future without to modify the main app. So, I imagine developing the subsystem in a DLL is a (good??) idea... i am programming in Windows XP, Delphi 7. I did read DLLs only ret...

VB.net dll stops working after SA account disabled

Ok everyone, Got a wierd one here. I've written approx 4 projects that utilize a central DLL for database access. The DLL was written in VB.NET using the .NET 3.1 framework. All the code works great. Recently, I went through all the code and updated the connection strings to use a new username and password since they were using the S...

store dll in another folder not in same project other than bin.

ok... now this is something new for me.. I have a utility.dll file which is in my bin folder and i am accessing it in my current application. This part is working fine.... public partial class Reports1 : System.Web.UI.Page { [DllImport("Utility.dll")] public static extern bool GetErrorString(uint lookupCode, [MarshalAs(UnmanagedTyp...

Hooking LoadLibrary API call

I want to load a different version of a DLL than is present in the working directory of the application. For this I need to hook the LoadLibrary call so that when the application makes a call to load the DLL I can substitute it with the newer version of that DLL transparently. I tried using NCodeHook and have the following code in my DLL...

OpenMP: Causes for heap corruption, anyone?

EDIT: I can run the same program twice, simultaneously without any problem - how can I duplicate this with OpenMP or with some other method? This is the basic framework of the problem. //Defined elsewhere class SomeClass { public: void Function() { // Allocate some memory float *Data; Data = new float[1024]; // Dec...

MATLAB: DLL loaded by mex would not unload?

I have a mex module called p.mexw64 which uses another dll called p.dll The mex module loads p.dll when it is loaded since it is linking to it's lib file. Normally, when I want to recompile p.dll I do clear p;. This unloads p.mexw64 and then in turn also unloads p.dll. Except when it doesn't. In some scenario which I can't really quan...

callbacks inside a DLL?

I have a callback inside a C DLL (static void __stdcall) . I want another program to register it as such (by passing it the func ptr) and then call the calback inside the DLL. I have had no luck so far. However, the same callback works if its inside a regular C++ program. I am now wondering if having callbacks in a DLL is even possible. ...

C++ map really slow?

i've created a dll for gamemaker. dll's arrays where really slow so after asking around a bit i learnt i could use maps in c++ and make a dll. anyway, ill represent what i need to store in a 3d array: information[id][number][number] the id corresponds to an objects id. the first number field ranges from 0 - 3 and each number represents...

Creating a thread in DllMain?

It seems that when a thread is created from within DllMain upon DLL_PROCESS_ATTACH it won't begin until all dll's have been loaded. Since I need to make sure the thread runs before I continue, I get a deadlock. Is there any way to force the thread to start? ...

Is there a way to package a dynamic library in the application binary?

Hi I am developing a Qt application that uses a plugin (dynamic library) and I was wondering if there was a way I could build the application and library in one file (maybe using the QResource feature?) ...

Using Qt to make an almost native Windows Application?

I love that Qt is cross-platform but I want to make an application that will call into some Windows specific .dll's. Kinda like Google Chrome does with the glass on Windows Vista/7 (I know Chrome isn't written using the Qt framework just thought it was a good example). How can I do this in Qt? Is it feasible? ...

How to install .net dll?

In visual studio, when user Add Reference, another dialog box will be pop out and showing a list of .net component. I try to copy a dll into GAC folder but I don't know how to make that dll appear in the Add Reference dialog box. Anyone know why? Thanks in advance! ...

Where To Put C# Compiled Library DLLs

I've compiled the RibbonLib, then I got two DLLs(Microsoft.WindowsAPICodePack.dll and Ribbon.dll), but where I need to put this DLLs to use they in my Visual Studio 2008? I'm using Windows 7 Ultimate, if it's needed. ;) ...

Deploy Crystal Report dlls only using ClickOnce without using prerequisite .msi

Hi, I believe the conventional way to deploy Crystal Report with a .NET program is to set it as a prerequisite in the publish settings and then a .msi will be packaged with the ClickOnce files on the web/network/CD/wtv. When the user runs setup.exe, it will check whether Crystal Report is on the client computer. If not, it runs the Cry...

How to debug a DLL called from Java in Delphi?

With Delphi I wrote a DLL which can be called from Java via JNA (Java Native Access). Methods in this DLL are just simple operations, but for future use and more complex invocations I would like to know how I can use the Delphi debugger, if the DLL is called from Java directly (or from the Java IDE). ...

Microsoft Assembly configuration for 32-bit mixed C/C++ application

We have a 32 bit mixed C/C++ application that we are trying to deploy to the world. It naturally uses C and C++ runtime DLLs. We are using VS 2005. The manifest constructed by VS2005 is the following: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> ...

Modify dll exports (symbol table). I want to obfuscate the function names.

I have a third party dll that I want to change the symbol names. Is this possible? I dont want the competition to know what component my product uses. I don't have the source for the dll. ...

How can I return a PChar from a DLL function to a VB6 application without risking crashes or memory leaks?

I have to create a DLL which is used by a VB6 application. This DLL has to provide several functions, some of them must return strings. This is the VB6 declaration: Declare Function MyProc Lib "mylib.dll" (ByVal Param As String) As String And this the Delphi implementation stub in mylib.dll: function MyProc(AParam: PChar): PChar; st...

Loading a Delphi Object Run Time using BPL

I have a class in a unit. Usually, when I changed the algorithm of its methods, I have to recompile it and deliver the patch as a whole. I think to create the instance of the class using DLL. After searching in delphi.about.com, I found that instead of using DLL, I can use BPL. It is a DLL for Delphi. The problem is almost all examples I...