 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Franck B Guest
|
Posted: Mon Nov 13, 2006 2:48 pm Post subject: Compatible DLL for Visual and Borland C++ projects |
|
|
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
|
|
| Back to top |
|
 |
4N Guest
|
Posted: Tue Nov 14, 2006 6:00 am Post subject: Re: Compatible DLL for Visual and Borland C++ projects |
|
|
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 |
|
 |
|
|
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
|
|