Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
AnswerMessage Closed Pin
1-Aug-08 7:44
Bassam Saoud1-Aug-08 7:44 
GeneralRe: Hard drives Pin
Nish Nishant28-Oct-11 10:57
sitebuilderNish Nishant28-Oct-11 10:57 
AnswerRe: Desktop News Ticker Pin
Paul Conrad1-Aug-08 8:20
professionalPaul Conrad1-Aug-08 8:20 
GeneralRe: Desktop News Ticker Pin
wajans1-Aug-08 8:30
wajans1-Aug-08 8:30 
GeneralRe: Desktop News Ticker Pin
Paul Conrad1-Aug-08 8:34
professionalPaul Conrad1-Aug-08 8:34 
GeneralRe: Desktop News Ticker Pin
wajans1-Aug-08 9:07
wajans1-Aug-08 9:07 
GeneralRe: Desktop News Ticker Pin
nelsonpaixao1-Aug-08 13:56
nelsonpaixao1-Aug-08 13:56 
QuestionCalling a 32-bit .NET dll from a 64-bit .NET application [modified] Pin
Phil J Pearson1-Aug-08 5:29
Phil J Pearson1-Aug-08 5:29 
I am developing a major application that (among other things) talks to SQL Server databases. I have it built with a platform target of "Any CPU".

However, it has to be able to import legacy data from mdb databases. The Jet database engine is only available on the 32-bit platform. I have created a .NET assembly built with a platform target of "x86" for the main application to call to do the importing.

The problem is that I get a BadImageFormatException (0x8007000b) when trying to load the dll when running 64-bit Vista. There seems to be a division of opinion about whether the 64-bit framework should be able to load 32-bit dlls.
Does anyone have a definitive answer, or a solution to the problem? I really don't want to have to build the whole app to target 32-bit just for the sake of the mdb importing functions.

[update]
The 32-bit assembly also needs to be able to call into some of the other 64-bit assemblies. Maybe this is a killer anyway?
[/update]

Thanks in advance.

Phil



The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.

modified on Friday, August 1, 2008 11:35 AM

AnswerRe: Calling a 32-bit .NET dll from a 64-bit .NET application Pin
vikas amin1-Aug-08 8:25
vikas amin1-Aug-08 8:25 
GeneralRe: Calling a 32-bit .NET dll from a 64-bit .NET application Pin
Phil J Pearson3-Aug-08 23:39
Phil J Pearson3-Aug-08 23:39 
GeneralRe: Calling a 32-bit .NET dll from a 64-bit .NET application Pin
vikas amin4-Aug-08 4:29
vikas amin4-Aug-08 4:29 
Questionsetting the selected item in a combobox from the constructor problem Pin
Barry T1-Aug-08 5:02
Barry T1-Aug-08 5:02 
AnswerRe: setting the selected item in a combobox from the constructor problem Pin
Phil J Pearson1-Aug-08 5:19
Phil J Pearson1-Aug-08 5:19 
GeneralRe: setting the selected item in a combobox from the constructor problem Pin
Barry T1-Aug-08 5:34
Barry T1-Aug-08 5:34 
QuestionLooking for an alternative to bit shifting Pin
Jim Warburton1-Aug-08 4:50
Jim Warburton1-Aug-08 4:50 
AnswerRe: Looking for an alternative to bit shifting Pin
Robert.C.Cartaino1-Aug-08 5:50
Robert.C.Cartaino1-Aug-08 5:50 
GeneralMessage Closed Pin
1-Aug-08 7:39
Dan Neely1-Aug-08 7:39 
GeneralRe: Looking for an alternative to bit shifting Pin
Robert.C.Cartaino1-Aug-08 9:12
Robert.C.Cartaino1-Aug-08 9:12 
GeneralRe: Looking for an alternative to bit shifting [modified] Pin
PIEBALDconsult2-Aug-08 10:11
mvePIEBALDconsult2-Aug-08 10:11 
AnswerRe: Looking for an alternative to bit shifting Pin
PIEBALDconsult1-Aug-08 6:34
mvePIEBALDconsult1-Aug-08 6:34 
AnswerRe: Looking for an alternative to bit shifting Pin
Guffa1-Aug-08 11:01
Guffa1-Aug-08 11:01 
GeneralRe: Looking for an alternative to bit shifting Pin
PIEBALDconsult1-Aug-08 15:17
mvePIEBALDconsult1-Aug-08 15:17 
GeneralRe: Looking for an alternative to bit shifting Pin
Guffa2-Aug-08 1:48
Guffa2-Aug-08 1:48 
GeneralRe: Looking for an alternative to bit shifting [modified] Pin
PIEBALDconsult2-Aug-08 5:41
mvePIEBALDconsult2-Aug-08 5:41 
GeneralRe: Looking for an alternative to bit shifting Pin
Guffa2-Aug-08 10:13
Guffa2-Aug-08 10:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.