BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

calling dll from MSVC

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
mattk
Guest





PostPosted: Tue Nov 22, 2005 6:41 pm    Post subject: calling dll from MSVC Reply with quote




I have written a dll (in BCB5) and I am able to call it just fine from a
host application (also written in BCB5).

Someone is trying to call it it from their Microsoft Visual C++ application.
They report when they try to use the lib file generated,
they get an error from the linker saying 'invalid or corrupt file'.

Any clues or magic potions that are needed?

Thanks much for any info/help on this .....

(If there is a better forum for this - let me know)






Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Nov 22, 2005 6:55 pm    Post subject: Re: calling dll from MSVC Reply with quote




"mattk >" <

Quote:
Someone is trying to call it it from their Microsoft Visual
C++ application. They report when they try to use the lib
file generated, they get an error from the linker saying
'invalid or corrupt file'.

VC++ cannot use Borland .lib files, and vice versa. Library files are
vendor-specific. Your VC++ users will have to generate their own .lib file
from the .dll directly.

Have a look at the following article for more details:

Creating DLLs in BCB that can be used from Visual C++
http://web.archive.org/web/20031207213941/bcbdev.com/articles/bcbdll.htm


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.