| View previous topic :: View next topic |
| Author |
Message |
Harish Guest
|
Posted: Wed Jun 28, 2006 4:35 pm Post subject: Calling a C++ Builder DLL from VC++ |
|
|
I have a DLL written in BC++ 6.0. All the exported functions from the DLL are extern "C". I need to call it from VC++ 6.0. How can I generate the import library to the DLL? |
|
| Back to top |
|
 |
Ed Mulroy Guest
|
Posted: Wed Jun 28, 2006 9:06 pm Post subject: Re: Calling a C++ Builder DLL from VC++ |
|
|
You can use Microsoft tools to create a Microsoft format import library.
As an alternative you can use implib.exe to create a module definition file
and use that with BC++.
This is not an exotic solution. Import libraries are merely a library
format way to bundle up part of what has been historically done with module
definition files.
.. Ed
| Quote: | Harish wrote in message
news:44a2696b$1 (AT) newsgroups (DOT) borland.com...
I have a DLL written in BC++ 6.0. All the exported functions
from the DLL are extern "C". I need to call it from VC++ 6.0.
How can I generate the import library to the DLL? |
|
|
| Back to top |
|
 |
Harish Guest
|
Posted: Fri Jun 30, 2006 8:10 am Post subject: Re: Calling a C++ Builder DLL from VC++ |
|
|
Thanks, Ed Mulroy, but I'm afraid I cannot do it.
First, which MS tools should I use?
Second, I can call a VC++ created DLL from BC++ (using the BC++ provided fantastic implib tool). But I want to call a BC++ created DLL from VC++. Could you plz give a more specific solution?
-Harish
"Ed Mulroy" <dont_email_me (AT) bitbuc (DOT) ket> wrote:
| Quote: | You can use Microsoft tools to create a Microsoft format import library.
As an alternative you can use implib.exe to create a module definition file
and use that with BC++.
This is not an exotic solution. Import libraries are merely a library
format way to bundle up part of what has been historically done with module
definition files.
. Ed
Harish wrote in message
news:44a2696b$1 (AT) newsgroups (DOT) borland.com...
I have a DLL written in BC++ 6.0. All the exported functions
from the DLL are extern "C". I need to call it from VC++ 6.0.
How can I generate the import library to the DLL?
|
|
|
| Back to top |
|
 |
Ed Mulroy Guest
|
Posted: Mon Jul 03, 2006 10:49 pm Post subject: Re: Calling a C++ Builder DLL from VC++ |
|
|
It has been so long since I did this with a Microsoft tool that I had to ask
about it. Remy Lebeau suggested this link and it seems to answer your
question.
http://tinyurl.com/llgon
or, in its long form
http://web.archive.org/web/20031207213941/http://bcbdev.com/articles/bcbdll.htm#example1
.. Ed
| Quote: | Harish wrote in message
news:44a4a98a$1 (AT) newsgroups (DOT) borland.com...
Thanks, Ed Mulroy, but I'm afraid I cannot do it.
First, which MS tools should I use?
Second, I can call a VC++ created DLL from BC++ (using the
BC++ provided fantastic implib tool). But I want to call a BC++
created DLL from VC++. Could you plz give a more specific
solution? |
|
|
| Back to top |
|
 |
Ron Sawyer Guest
|
Posted: Sun Jul 16, 2006 3:19 am Post subject: Re: Calling a C++ Builder DLL from VC++ |
|
|
I have never found a tool to allow me to do this. I end up making a dummy
dll in Visual C++ with stubs for functions and compile it to create the
import lib.
"Harish" <cshavadhani (AT) yahoo (DOT) com> wrote in message
news:44a2696b$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
I have a DLL written in BC++ 6.0. All the exported functions from the DLL
are extern "C". I need to call it from VC++ 6.0. How can I generate the |
import library to the DLL? |
|
| Back to top |
|
 |
Olivier Bertini Guest
|
|
| Back to top |
|
 |
|