DLL: Exporting Functions

G

Guest

Hello,

I have a dll which I compiled in VB. Now I would like to use this dll in
MapBasic program. However, I keep getting an error saying that the function
which I am calling cannong be found. After doing some research, I learned
that VB's functions are not exportable and suggestion is to get PowerBasic or
XBasic.

I am just starting with VB so I am not sure if I am right, but can somebody
please tell me if I can make exportable functions in VB6? Or, is there a
'free' compiler that would make a proper DLL in VB? Does the newest VB.NET
version make a proper DLL? Thank you .

Victor.
 
H

Herfried K. Wagner [MVP]

victorsk said:
I have a dll which I compiled in VB. Now I would like to use this dll in
MapBasic program. However, I keep getting an error saying that the
function
which I am calling cannong be found. After doing some research, I learned
that VB's functions are not exportable and suggestion is to get PowerBasic
or
XBasic.

I am just starting with VB so I am not sure if I am right, but can
somebody
please tell me if I can make exportable functions in VB6?

VB.NET doesn't support exporting functions, and VB6 doesn't support that
too. However, it's possible to intercept the linking process of VB6 and
make it create a DLL that exports functions. A German article about this
technique can be found here:

Or, is there a
'free' compiler that would make a proper DLL in VB?

I don't know of any free compilers, but Delphi and VC++ can be used to
create such DLLs.
Does the newest VB.NET version make a proper DLL?

No, VB.NET cannot be used to create native DLLs.
 
G

Guest

Hi,

Thanks for the reply. Ich no schprehen Deuch, sorry. Is there an English
article I can read please? Thank you.
 
G

Guest

Hi,

Very sorry to bother you again. I am having difficulty figuring out what
this application is doing. I've downloaded the application but not sure what
I should enter in "Linker-Controller" section. Sorry, I am quite new to VB
could you please clarify on what this app is doing? Thank you so much for
all your help.

Thank you,
Victor.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top