dll

Explicit Linking DLL and Program Hangs

Hello, I've the following piece of code in my program which dynamically links wtsapi32.dll file for session notifications like WTS_SESSION_LOCK and WTS_SESSION_UNLOCK and runs in background. After the first lock/unlock the program hangs and not responding. Is this a right way of doing explicit linking ? void RegisterSession(HWND...

How to call a dll with "_pascal calling convention" from Delphi ?

I have a dll RL6_dll.dll from a routing program RouteLogix that is used to plan trucks etc. Now we want to use that from Delphi 2007. We have a c++ header for the dll and a working example that use it in C++-Builder. Here is an example from that file: // Use this routine to find the directory where the data-xxx subdirectories // are e...

Create flash executable that calls external dll functions

Is it possible to create an executable from flash that is able to call functions in an external dll (such as the windows API for example)? ...

Missing cxcore110d.dll?

When I try to run a opencv hellow world program I get an error saying that the cxcore110d.dll file is not installed and that I need to reinstall the program, but the dll is C:\Program Files (x86)\OpenCV\bin. Any one know who to fix this? The folder is referenced (maybe thats the wrong term) in the solution that came with opencv 1.1. ...

assembly in deployed asp.net application is referencing an absolute path on my pc

I do not know why this is happening: [NullReferenceException: Object reference not set to an instance of an object.] DataWeb.Core.HttpHandler.ProcessRequest(HttpContext Context) in X:\projects\visualstudio\work_projects\Production\DataWeb\DataWeb.Core\HttpHandler.cs:23 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication...

Version number of a dll in .NET

Given the following: string file = @"c:\somepath\somefile.dll"; How can I find the file and product version numbers of that DLL using .NET? The dll can be either native or managed. Thanks. ...

regsrv32 dllregisterserver output

we're shipping a shell extension dll (registered with regsvr32). is there an easy way to get debug output from this dll from another application (so we can send these traces home when something is broken)? any ideas? what's the easiest way to get logdata from the dll to another process? ...

.NET 3.5 DLL using its own config file

I need to have a .NET 3.5 DLL have its own config file. This DLL could be called from many different apps so the information (like connection strings) stored in the config file needed to be kept in a config file that the DLL can reference. What I want is when the DLL is used, I need to "switch" the config file that is used to reference...

overriding pthread_create using LD_PRELOADed DLL in Cygwin

I'm on Windows XP with Cygwin, and I've compiled a DLL that overrides some pthread functions, e.g. pthread_create. LD_PRELOADing this library into a Cygwin application should make this application use my functions instead of standard ones. (See [1].) However it does not happen. I know that the library is loaded, because I've put printf ...

Design Decision - WCF Service or Shared Class Library (DLL)

Hello everyone, I am presently designing a message queue system that will be used by various applications and am having a difficult time trying to decide whether to use WCF to provide the services or use a shared class library (DLL) and deploy the DLL with the clients. For some additional information: • The queue is stored in a SQL ...

Is there any native DLL export functions viewer?

Is there any free native Windows DLL export functions viewer, which shows the function name, and a list of their parameters? Thanks. ...

From [dll / lib / def / exp] to c/c++ header file

Hi, I have a dynamic library compiled with visual studio. (so 4 files: Library.dll, Library.lib, Library.def and Library.exp) This dll contains exported classes and functions. Is there a way to obtain C/C++ header files (.h) with these files? ...

C++ - Import of explicitly specialised templates on Windows

I am having some trouble getting a program to link on Windows with VC2008 SP1. I am explicitly specialising a template member function in a DLL, which appears correctly as an exported symbol in dependency walker, for the correct type, and with the correct arguments. When I try to call the symbol from an .exe, the linker complains that i...

Using different versions of DLL in one application

I have a Silverlight Class Library that is being used by both Silverlight application and a regular C# WCF Service. The Silverlight application calls the WCF service to read/write some data. They both use the common library to manipulate the data being passed. Everything compiles fine, but when we run the application, the webservice t...

Calling a DLL from VBA

I need to call a DLL function from Access using VBA. The prototype for the DLL function is int __stdcall myFunction(const char* data, int rows, int cols, int sl, int fullsize, double aspect_ratio, double y, void** ppResult); The one I declared in Access: Private Declare Function DllImport_myFunction _ Lib...

Converting an application to use dlls. class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by clients of class

This seems to be a common error, but most people online choose to just ignore the warning and move on. I do not wish to ignore the warning. Basically, when using __declspec(dllexport) to convert a project to use dlls, the compiler has trouble dealing with templates and stl objects. An explanation of the problem, and suggested solution...

SidBySide: 3rd Party Dll refers to two versions of MSVCR80.DLL

We include a 3rd Party lib+DLL that recently causes a lot of trouble on installations. Using dependencywalker, we found that the dll itself refers to two different Versions of MSVCR80.DLL: Version 8.0.50727.4053 and Version 8.0.50727.42 In MOST cases installation makes no problems, even if we distribute none of both versions. But i...

How do I find Assembly Version of Calling Program?

I am using C# for this application. I have a DLL that gets included within my application. From this DLL, I need to find the Assembly Version of the main program in which this DLL is included. System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() does not return what I want. This returns the Assembly version o...

Proper way to build DLL's with multiple projects?

Okay so i am trying to convert some projects into DLL's. These are all visual studio 2008 projects, and are all written in C++. We have 9 different projects(all under 1 solution in Visual Studio 2008). E.g.: RasterTools\ RasterDataset.h RasterDataset.cpp Point.h Point.cpp <... insert like 50 more cpp files ...> CoreTools\ Image...

LNK2019 when converting an app to use DLLs

(Re-written for clarity) I have a multi-project solution that I am looking to convert from using .lib to .DLL files. I have created my declspec macros and applied it to **every class except for those in the project that creates the final .exe. The linker is throwing a fit on just about everything, however. I have set up to ignore err...