dll

how to pass string array from C/C++ dll to vba (Excel)

how to pass string array from C/C++ dll to vba (Excel) dll in Visual Studio dll is not managed, ATL, etc. regards Andy ...

Class library modification / migration

I have 3 class libraries. A BBL, a DAL, and a DATA (about 15 datasets). Currently 4 [major] applications utilize the functionality in these DLL's. I'm rewriting one of those applications and I need to (1) Use some of the existing functionality in the libraries (2) Change some of it (3) Add new functionality (4) Add new datasets. I'm bac...

Using a DLL in Visual Studio C++

I have a DLL that I've been using with no problem in Visual C# (simply adding the reference and using the namespace). Now I'm trying to learn C++, and I don't understand how you reference a namespace from a DLL. I can right-click on a project and select 'references' and from there click 'add new reference', but that just provides me with...

Importing namespaces isn't working for an API I just installed...

Hi, I just got the Google Data API and I can't seem to use it in my application. I got the msi file, built the Google Data API SDK successfully. Then I went back to my project, right clicked on the Bin folder and selected Add Reference... From there I added all of the dlls in the C:\Program Files\Google\Google Data API SDK\Redist folde...

Call a C++ function from C#

Hi, I have 2 C++ DLLs. One of them contains the following function: void init(const unsigned char* initData, const unsigned char* key) The other one contains this function: BYTE* encrypt(BYTE *inOut, UINT inputSize, BYTE *secretKey, UINT secretKeySize). Is there a way to call these 2 functions from C#? I know you can use [DllImpor...

Binding Microsoft.Web.DynamicData assembly at runtime failing

I've got a project using DynamicData that was wrote by somebody else. Every time i try debbuging it, I get the message I've attached at the bottom I've already tried deploying the DynamicData dll to GAC, and throwing it into the bin folder, chceking the assemblies full names, installing again VS SP1, and .NET Framework SP1, and chceking...

ctypes in python, problem calling a function in a DLL

Hey! as you might have noticed I have an annoying issue with ctypes. I'm trying to communicate with an instrument and to do so I have to use ctypes to communicate with the DLL driver. so far I've managed to export the DLL by doing this: >>> from ctypes import * >>>maury = WinDLL( 'MLibTuners') >>> maury (WinDLL 'MlibTuners', handle 100...

Legality of including `gdiplus.dll` and `msvcp90.dll` with my app

Is it legal for me to include gdiplus.dll and msvcp90.dll with my application? Note that I intend to release my application under the MIT license. ...

check if unmanaged dll is 32-bit or 64-bit?

How can I programmatically tell in C# if an unmanaged dll is x86 or x64? ...

In .NET, how can I detect whether a user has a specific redistributable installed?

I have created a class which builds a Crystal report and displays it in a report viewer. However, without the Crystal Redistributable, the code crashes. How can I programatically detect whether the end-user has the Crystal DLL installed? The code I am required to include is: Imports CrystalDecisions.CrystalReports.Engine Imports Cryst...

Serialization Exception in compiled dll

I've inherited an ecommerce ASP.NET (c# code behind) web application. We've recently moved servers and it's proving somewhat troublesome. I have very little experience with IIS server configuration and dealing with large projects like this. Most of the problems have now been fixed, but we're experiencing problems with a crucial part, as ...

Managing DLL dependencies with Maven

I have a Java program with Maven managing its dependencies. One of those dependency is a JNI wrapper for another program. Maven takes care of the reference to the relevant JAR file, but I'm left messing around with the DLL file myself. Is there a good way of having Maven handle the DLL as well? Ideally I would like to have the DLL load...

How to terminate a hanging thread inside a dll correctly?

Hi Everybody, I have a third party library that contains an error. When I call a function it may hang. The library function is called inside a dll. I decided to move the call into the thread and wait for some time. If thread is finished then OK. If not – I should terminate it compulsory. The simplified example here: unsigned Counter =...

How to Set Path Environment Variable using CMake and Visual Studio to Run Test

I am using CMake to generate Visual Studio project files. I want to run the test executable after setting the PATH environment variable so that it is able to load the required dll. I tried as per the discussion at http://www.mail-archive.com/[email protected]/msg21493.html but it does not work. Have you used CMake with Visual Studio for ...

RtlValidateHeap Problem

I have a Windows DLL that at one point, returns a pointer to a class that is new'ed in the DLL's code. The class itself is a very thin wrapper around another class private to the DLL. The calling executable has no problem working with this class, everything works fine, with the exception that when the calling executable tries to delete ...

Finding embedded DLL resources

I'm using a decompiler to look at a DLL I built a while ago because I don't have the original source anymore. I want to see what a specfic value for a resource string is, but I can't seem to find them. I embedded the resource file, so I figured I could just decompile the DLL and see the string, but it isn't anywhere to be found. Any p...

Use DLL compiled in Delphi 7 in C#

Hi. I need to use a DLL (Hardware ID Extractor) made in Delphi 7 in my C# application. The functions exported by this DLL are: Exported functions: // CPU function GetCPUSpeed: Double; function CPUFamily: ShortString; { Get cpu identifier from the windows registry } function GetCpuTheoreticSpeed: Integer; { Get cpu speed (in MHz) } fun...

Static class members in shared library

I have a class like class K { static int a; static int b; } I would like to create a shared library (dll) containing this class K. In a cpp file compliled in the library I call int K::a = 0; int K::b = 0; to instantiate the static variables. The dll does compile without errors, but when I use the library, I get the unresolved e...

How to avoid multiple application instances?

I have an application, "myprogram.exe", which calls functions and code inside a dll, one of this functions that "myprogram.exe" calls create a new instance of a winform, "MyForm.cs" and then show it using form.show();. I can have 'n' number of "myprogram.exe" instances running, but I want to have only one instance of "MyForm.cs" for eac...

Renaming DLLs on Windows

I am building an application on Windows with Visual Studio 2003. My application is linking to 3rd party lib (Qt). The lib is called qtcore4.lib and the dll qtcore4.dll. My application is a plugin to another Qt based application which uses different versions of the same qtcore4.dll. Unfortunately, I can not use the same version of Qt a...