Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 22nd, 2006, 3:53 PM   #1
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
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
Kilo is offline   Reply With Quote
Old May 22nd, 2006, 4:26 PM   #2
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
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.
Kilo is offline   Reply With Quote
Old May 22nd, 2006, 5:56 PM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Why did you convert the DLL in the first place?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 22nd, 2006, 7:12 PM   #4
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
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
Kilo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:28 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC