dll

VisualStudio unit test doesn't find my DLL with P/Invoke. How can I fix this?

Hello, I'm working on Windows 7 with Visual Studio 2008. I have a .NET assembly that makes calls into a native DLL with P/Invoke. I have set up a separate .NET unit test project in my Visual Studio solution that tests the assembly by making various calls into it. However, when the unit test makes a call into the assembly, and the ass...

Delphi DLL created from parented to calling application

Hello, I have an application that I make a call to a DLL function that creates and returns a form. I get a whole bunch of errors when I try to parent this new form to the main form in the application. Is that a common error / problem or is there not an issue with parenting in this case. And as far as I have learned a form create...

Delphi Loadlibrary returns 0 (LastErrorcde=3221225616) What does this mean ?

Hey, I need to use a 3rd party dll in our main app. When I staticly link to the provided DLL it works ok and I can the DLLs exported functions. But we don't want our main app dependend on this dll on startup so I tried to dynamicly load the DLL when I need it : DLLHandle := LoadLibrary('3rdparty.dll'); ret := GetLastError(); if DLLHandl...

sox FAIL util: Unable to load MAD decoder library (libmad) function "mad_stream_buffer"

I compiled libmad for sox. When I try to read an mp3 I get this message: sox FAIL util: Unable to load MAD decoder library (libmad) function "mad_stream_buffer". Did I compile the project incorrectly? ...

How to receive strings from C# in Visual-C++ based .net DLL?

How to receive strings from C# in Visual-C++ based .net DLL? In C++ (using clr) I have this code: #include "stdafx.h" ##include <Windows.h> #include <string> #include <windows.h> namespace NSST { public ref class Wrapper { public: Wrapper() {} static void init_1(std::string a, std::string b){} static void init_2(){}...

_matherr does not get called when built into a DLL

I have a basic solution file (.sln) where I was able to reproduce a problem I have been facing recently. It contains 3 projects: 1.) MathTest.lib - containing methods that might cause a mathematical error, like acos(1.1). 2.) MathTestDll.dll - calls the methods from the above lib. 3.) UnitTest.exe - calls the exported method in the DLL ...

Checking if a dll is installed

Hello, I have a asp.net web app that needs vfpoledb dll installed on the server to work. I wanted to check to see if this dll is installed and if it isn't display a message and link to install it. I have no idea how to go about this. Can someone give me an example of how to do this check in code for an asp.net C# app? ...

Calling C DLL from Visual Basic 6: Double data type not working

I'm passing a simple user-defined type (UDT) from Visual Basic 6 to a C DLL. It works fine, except for the double data type, which shows up as 0. C DLL: #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdio.h> typedef struct _UserDefinedType { signed int Integer; unsigned char Byte; float Float...

Using C++ code in C#

Hi, I had written a code snippet in VC++. However, I cannot continue rest of the application in VC++, so would want to move to C#. Can I make a dll of the VC++ code and call the functions written in VC++ to work in C#? I'm quite un-aware if this will work, but I have seen how the native code is called in C# using dll. Can anyone plea...

Updating a DLL in the GAC

I have an API DLL that several third party applications reference. Some of these applications want things two ways in terms of updates. 1) I want the latest stuff 2) Don't update my direct binaries that often There has been the thought of moving the DLL into the GAC and writing another DLL that is simply the wrapper for the DLL in th...

Where to place .dll files in Axis server.

Hi All, My requirement is to access .dll file (having c++ methods) from a java web service using JNA. If I execute my java code as a stand alone programme I am able to access .dll (placed in the same folder as classes files). But if I use the same code in a web service I am getting below error. I placed .dll file in lib bolder of tomca...

Calling an old OLE component from C#

I have a very old (VC++ 5.0) proprietary DLL which I need to use from C# (Visual Studio 2010). The example specifies that to access this component I need to call CreateDispatch("application") which indicates towards OLE. The following is the example code (C++): IComponentServer Server; Server.CreateDispatch("Component.Server"); I a...

Problem with importing DLL into Inno-Setup.

I am importing an C++ DLL in an innosetup install script. The DLL code is as follows: void __stdcall SetFbParam(char *dbFileName,char *dbTableName,char *dbParamName,char *dbParamValue){ //of no use here and doesn't change anything} In the Innosetup, I import it using procedure FBset(dbFileName,dbTableName,dbParamName,dbParamValue: St...

Microsoft Known DLL

HKML\SYSTEM\CurrentControlSet\Control\Session Manager\KnownDLLs What is the purpose of the KnownDLLs?(To load some Dlls faster?) If I have a admin's token, I can control the registry values. Isn't there any security hole? Why did Microsoft support the feature? ...

Sending an Array from DLL - VC++

hello, I have written a dll in VC++. I wanted to ask if it is possible for a method in a dll to return an array? And would that array returned, be compatible with any language that is using the DLL? As-In compatible with C#, Java...etc. I would be glad if I could get some leads in to it. thank you. ...

How does Windows Explorer extract EXE file's icon.

It's my guess. We list a files and directory by Windows Explorer. If Windows Explorer meets a exe file, it does, LoadLibraryEx(ExefileName, LOAD_LIBRARY_AS_DATAFILE) Then extracts the icon, and represents it. But I'm not sure. Is there anyone who knows well about this? I'm finding a nice case with LOAD_LIBRARY_AS_DATAFILE Is th...

The Purpose of Base Address Randomization

Since VS2008(Is it right?), MSVC linker option has a Base Address Randomization. What the main purpose of this feature? What I only glad to is, I don't need to rebase my Dlls manually anymore. Is that all? Was it their purpose? Is there any other benefit else. ...

Using C/C++ DLL in Delphi 2010

Hi All, I want to use dll from ssdeep (http://ssdeep.sourceforge.net/). The API is: int fuzzy_hash_buf(unsigned char *buf, uint32_t buf_len, char *result); then in Delphi, i write it like this: function fuzzy_hash_buf(buf : Pbyte; buf_len : Cardinal; result : PAnsiChar): integer; stdcall; external 'fuzzy.dll' name 'fuzzy_hash_buf'; ...

Visual Studio: DLL locations for release

I have a project that I am working on that references a "Common Library (DLL)". In the DevEnv it works fine, however if I build and try to organize my files it doesn't work. Basically if I have things setup like so: C:\Program Files\MyApp\MyApp.exe C:\Program Files\MyApp\Common\WPF Commons.dll C:\Program Files\MyApp\Modules\SomeModule....

Exception during program shut down "MouseTrackingTimerList.Count <> 0"

I have a Delphi exe that is built with packages. The exe processes successfully but in the shutdown, I get errors. I rebuilt the exe and then one of the DLLs that is called by the exe with the MadExcept error logging software. It traces the exception "MouseTrackingTimerList.Count <> 0" into the finalization of the devexpress cxcontro...