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 

Compatible DLL for Visual and Borland C++ projects

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Compatibility with MFC)
View previous topic :: View next topic  
Author Message
Franck B
Guest





PostPosted: Mon Nov 13, 2006 2:48 pm    Post subject: Compatible DLL for Visual and Borland C++ projects Reply with quote



Hi,

I have a DLL project for Visual C++ 6 and I would like to use
this DLL with borland program. So I passed it into IMPLIB tool to
have the corresponding .LIB file, but I always have a link error.
The only solution I found is to pass by the converting tool
given by Builder and to export the makefile. In this way, the
generated DLL is always compatible, but project integrity is hard
to keep safe :
For each modification, you must :
- export the makefile,
- test the compatibility with the other project.
Does anyone know how to have only one project (Visual or Builder)
and how keeping the resulting DLL compatible for Visual project ?
Is there project option to avoid ?

Thanks.

Franck
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Nov 14, 2006 4:29 am    Post subject: Re: Compatible DLL for Visual and Borland C++ projects Reply with quote



"Franck B" <boucly (AT) libertysurf (DOT) fr> wrote in message
news:45583f85$1 (AT) newsgroups (DOT) borland.com...

Quote:
Does anyone know how to have only one project (Visual or Builder)
and how keeping the resulting DLL compatible for Visual project ?

Using Visual C++ DLLs in a C++Builder Project

http://web.archive.org/web/20041204120939/http://www.bcbdev.com/articles/vcdll.htm

Visual C++ DLLs Part 2: C++ Classes

http://web.archive.org/web/20041204120939/http://www.bcbdev.com/articles/vcdll2.htm

Creating DLLs in BCB that can be used from Visual C++

http://web.archive.org/web/20041204120939/http://www.bcbdev.com/articles/bcbdll.htm


Gambit
Back to top
4N
Guest





PostPosted: Tue Nov 14, 2006 6:00 am    Post subject: Re: Compatible DLL for Visual and Borland C++ projects Reply with quote



did you try adding

#if defined __cplusplus
extern "C" {
#endif

__declspec(dllexport) type __stdcall my_function()

or something like that?

"Franck B" <boucly (AT) libertysurf (DOT) fr> ha scritto nel messaggio
news:45583f85$1 (AT) newsgroups (DOT) borland.com...
Quote:

Hi,

I have a DLL project for Visual C++ 6 and I would like to use
this DLL with borland program. So I passed it into IMPLIB tool to
have the corresponding .LIB file, but I always have a link error.
The only solution I found is to pass by the converting tool
given by Builder and to export the makefile. In this way, the
generated DLL is always compatible, but project integrity is hard
to keep safe :
For each modification, you must :
- export the makefile,
- test the compatibility with the other project.
Does anyone know how to have only one project (Visual or Builder)
and how keeping the resulting DLL compatible for Visual project ?
Is there project option to avoid ?

Thanks.

Franck
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Compatibility with MFC) 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.