dll

Altering DLL search path for static linked DLL

I've searched for any hints how I can do this, but all I found was how to redirect a SxS DLL to the local application folder. Here is what I want to accomplish: The (C++) Application.exe is linked to a DLL, Plugin.DLL (dependant project). This DLL is not placed inside the application directory, but in a subfolder called "plugins". As the...

General approach to missing DLL's.

I guess everyone has run into missing dll's issues from time to time. What I am trying to get is the 'recommended' method to find and install the dll's. Finding out which dll's are missing is easy enough using depends.exe. ...

How do i make a C++ DLL call my overloaded global new operator?

I have overloaded global new/delete (and new[] / delete[]) to fill and check guarded blocks. Works fine. Now i link to C++ DLLs passing STL-Container instances that are filled or modified by the DLLs. When destructing these containers i run into an error, as they were not allocated using my overloaded new operator and vice versa the dlls...

How to calling DLL procedure with parameters?

Hi, I have problems sending using a Dll procedure with parameters, im not allowed to add parameters to the call of the dll method in my test project. Im trying to call this dll method: procedure Transfer(sMessage: PChar); stdcall; begin MainForm.ShowThis(sMessage); end; exports Transfer; TestProj using this: procedure TForm1.B...

Dll not copying to bin folder

I'm having an issue with Devart DLLs not getting copied to the bin folder of my web app. I have my web app project that references projectA. ProjectA references projectB. The Devart Dlls are used in projectB and are not being copied into the web app projects bin folder during a build. ProjectB also references EL Unity dlls and they are ...

dll built with visual studio 2010 / windows 7 => usable on Windows 6?

Question from a Linux/Mac developer: I have compiled a 32-bit .dll (release flavor) under Windows 7 using Visual Studio 2010. Should this .dll be usable under all flavors of Windows 6 (a.k.a. Vista, if I'm not mistaken)? Many thanks and RTFMs appreciated, John Clements ...

How to call a C++ DLL from VB6 without going through COM?

OK, so I have a C++ project that compiles to a DLL file. I am able to reference this file in C# and see/use all of the objects and functions within the DLL file. What I need to do is to reference those objects and function through VB6. The C++ code has nothing in it that looks like it's creating a DLL. There are no '__declspec(dllexport...

Problems adding DLL to C# project in visual studio, getting a TryLoadException at runtime

I'm sorry if this is a dumb question, but I've been trying for hours with no luck , and maybe one of you can help. I have a class/library project I made in Visual Studio, a Spreadsheet in the SS namespace. Next, I created a windows form application, I then added the DLL, and put it in my resources menu, and it builds just fine, however...

How to use an running application from a dll ?

Hi, Im having problems using data from the host application. I want to send a string through the dll into the host, then combine it with some data from the host app. By just including the form in the uses clauses i can use methods to send data into the host, When the data is recived i try to add a lokal variable, this is when i get a ...

Help building a Dll for C in Delphi

Hi, ive previously asked another questions about building my dll, but it seams like its heading in the wrong direction :) So I have reformulated and explained more her. So what im trying to build is a dll that will work as an interface between my delphi program and some one else's C program. What this dll must do is recive a String fr...

Does winbase::LoadLibrary() load .pdbs?

I have issues with debugging of a library loaded at runtime, and an unknown is: Does winbase::LoadLibrary() load the .pdb in debugging mode? Because if it doesn't, that would explain why I cannot use any debugging in my DLL, and if it does, that would at least tell me to search for the problem somewhere else. Obvious follow-up: If it...

Partial classes in separate dlls

Is it possible to have two parts (same namespace, same class name) to a partial class in separate DLLs? ...

Create a tooltip in C# based on Win32 window handle

I'm writing a dll for an aging software framework. The framework was created in 2002, so most of its thinking and dll templates are for C++/Win32. However, it does come with a working dll template in C#, which is what I'm working with. The dll creates a window and I'm trying to add a tooltip to that window. Using the C++/Win32 dll templa...

How to add assembly manifest to a C# .NET class library project in Visual Studio 2008?

I'm having a similar problem to what Paul had a year ago (see How to add manifest to a .NET DLL?). That is, I have a C# class library project in Visual Studio 2008, which outputs a dll. The dll references some private assemblies, so I want to add an assembly manifest to the dll that specifies those other referenced assemblies. I know ...

Do I need to rebuild against a dll, if its exports have not changed?

This is probably a very stupid question. But assume that I have a DLL (test.dll), with some exports, that when built generates an import library (test.lib). I have an application TestApp that uses this DLL. Now, if I want to change some functions' implementation in the DLL, and I keep the exports unchaged, do I need to rebuild my applic...

How to target asp.net MVC 1 when version 2 is installed on build machine

Hi There, I have a site that was built using asp.net MVC version 1. I recently upgraded to visual studio 2010 which includes version 2. Upon opening the site now, I see that it believes the runtimes for MVC for this project are at version 2 so when I publish to my server, it fails as it cannot find version 2. Installing MVC 2.00 is not...

Getting error id: 0 from Windows method: FindWindow.

Hi, im trying to send a Windows message to my Delphi application, but im having problems with the FindWindow method: im getting error id of 0 from the GetLastError method. Im running Vista and from what ive read this error is common in XP or earlier versions, but should work fine in Vista or Win 7 (maybe i misunderstood ?). This is ...

Debugging multiple related dll's each in separate projects.

I have to debug multiple dlls each within their own project. There is a parent executable that loads a dll, which serves as a container for the other dlls. My question is how can I debug the whole 'component' ie: all the dll's involved, using Visual Studio 2005 for C++. ...

use a class in another DLL in C#

I have a project in which i created a class called "validator". i also created a DLL that has a function that i want to pass the validator class as a parameter. but the DLL doesn't know the class in my project cause it is a different DLL. i also can't add a reference in the dll to the project because the project has already a reference...

How to solve the DLL function call problem

Hi, i have couple of query's with respect to DLL, 1)If i load the DLL in run time, i guess DLL will be in separate thread right? 2)If i call a function present in DLL, and that function takes much time to return the value then how can i make my application thread to wait till the DLL's function return value. How can i solve the seco...