![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
DLL (BadImageFormatException)
Ok my program for work AutoSS uses a C# dll called SED.dll. I just finished converting to C++. Well when i attemp to run the program with the replaced DLL i get the JIT debugger telling me SED.dll is an invalid format. So i press view details and it said the program threw a BadImageFormatException.
![]() Well in my next attempt I loaded the AutoSS source code and deleted my previous reference to the C# SED.dll project output and reference the C++ DLL directly. ![]() What is it that i need to do to make my cpp dll work with my C# app
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
|
|
#2 |
|
Expert Programmer
|
Ok me an my partner figured there was some kind of conflict with C# app and C++ dlls!?!?! So we decided to convert everything in the C# app to a C++ CLR Windows Form App. So i added the project to my (cpp)SED.dll solution ran them both. worked fine. then i added a reference to the output of the SED.dll project and the dll compiled fine but the app with the reference failed! saying SED.lib cannot be opened
2>Linking... 2>LINK : fatal error LNK1104: cannot open file '..\debug\SED.lib' EDIT: DELETE THIS THREAD
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org Last edited by Kilo; May 22nd, 2006 at 4:41 PM. |
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Why did you convert the DLL in the first place?
|
|
|
|
|
|
#4 |
|
Expert Programmer
|
we want all of our code to be C++... i have always loved c++. When i cam to the current company i am working for everyone was using C# well they got me into it. For small rapid applications i see no problem with C#. But our programs are growing larger and larger daily and they are starting to bog down on slower machines. And i want to do it for pure learning experience! fun! I want allll of our programs C++ and we are working on doing that.
EDIT: We have a new obsticle now though.. now! (as long as i can use pointers and take control of memory) I want to use a Class Library (im guessing CLR whatever that is) and a CLR Windows Form application (cpp) and we still cannot get the 2 to work together.. its pathetic, sad and very annoying
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|