Using 32 bit library from 64 bit project - .NET

katit

Our application is all 64 bit. We got ADODB provider to 3rd party database (nexusdb). It's 32 bit and consists of .NET library (which we reference just fine) and I beleive C .dll which is 32 bit. So, when we compile in 32 bit it works, in 64 it complains that it can't find C .dll.

How can we solve this issue without compiling our code to 32 bit?

EDIT:

3rd party DLL's as follow: ADONET.dll - this is .NET native DLL that I reference and it references just fine. ADONETProvider.dll - this is non-.NET 32 bit DLL that I just keep in bin/ folder.

I DO NOT want to compile my project for x86 because I reference many other projects and they all 64.

I want to make sure that ADONET.dll somehow called in "32 bit mode"

Franz Wimmer

You have to use some kind of surrogate process and IPC to access a 32 bit dll from a 64bit process.

Some time ago I wrote the LegacyWrapper project that hides this behind a simple API call. You may want to see the corresponding blog post for technical details.

Edit: Since Version 2.1, LegacyWrapper also supports loading 64bit DLLs from a 32bit process.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Use 64-bit library from 32-bit application

From Dev

Using 32-bit library from 64-bit application with perl or neko

From Dev

Communicating with 32 bit Access from 64 bit .NET

From Dev

ODBC .NET 32 bit and 64 bit

From Dev

Using 32 bit Java in 64 bit Windows

From Dev

going from 32 bit to 64 bit in assembly

From Dev

moving from ubuntu 32 bit to 64 bit

From Dev

Native ANSI C library from .NET Framework >= 4 on 64 Bit

From Java

Linking 32-bit library to 64-bit program

From Dev

Error while installing 32 bit Library on 64 bit Ubuntu

From Dev

32-bit program has a dependency on a 64-bit library

From Dev

Call 64 bit Dll in my project 32 bit VC++

From Dev

.Net Core project trying to conditionally reference 32/64 bit assembly but dotnet build always resolves 64bit

From Dev

Compile for 32 bit or 64 bit

From Dev

32 bit vs 64 bit

From Dev

Connecting 32 bit VB.Net to a 64 bit Access .ACCDB

From Dev

Understanding 32-bit vs 64-bit in .Net

From Dev

Source R script using 32 bit R from 64 bit RStudio

From Dev

On Toshiba Satellite L650, is it possible to move from a 32 bit to a 64 bit using recovery media creator?

From Dev

OLEDB using 32bit instead of 64bit

From Java

Using 32bit .so file in a 64bit environment

From Java

Using a 32-bit JRE with a 64-bit Eclipse

From Dev

Pointers using a 32 bit DLL in a 64 bit service

From Dev

Using 32-bit drivers on a 64-bit operating system

From Dev

COM error using Python 32 bit on Windows 10 64 bit

From Dev

Detecting windows 32bit or 64 bit using NSIS

From Dev

Calling VirtualQueryEx function from a 64 bit process on a 32 bit one

From Dev

Access 64 bit DLL from 32 bit DLL

From Dev

Switch from Ubuntu 13.04 64bit to 32bit

Related Related

HotTag

Archive