By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,163 Members | 1,282 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,163 IT Pros & Developers. It's quick & easy.

DLL: Exporting Functions

P: n/a
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.
Nov 21 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
VB.NET makes Control Library DLL's & Class Library DLL's, but if you want a
non-MFC DLL then you need to write it in C/C++

There is an example of exporting functions & using them in VB.NET, here:

http://www.gotdotnet.com/Community/U...2-ca46ef086c12

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #2

P: n/a
"victorsk" <vi******@discussions.microsoft.com> schrieb:
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:

<URL:http://www.activevb.de/tutorials/tut_einsprungpunktdll/einsprungpunktdll.html>
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
Hi,

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

"Herfried K. Wagner [MVP]" wrote:
"victorsk" <vi******@discussions.microsoft.com> schrieb:
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:

<URL:http://www.activevb.de/tutorials/tut_einsprungpunktdll/einsprungpunktdll.html>
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

P: n/a
"victorsk" <vi******@discussions.microsoft.com> schrieb:
Thanks for the reply. Ich no schprehen Deuch, sorry. Is there an English
article I can read please?


I am not aware of an English article about this topic, but maybe an
automatic translation to English is sufficient:

<URL:http://translate.google.com/translate?u=http%3A%2F%2Fwww.activevb.de%2Ftutoria ls%2Ftut_einsprungpunktdll%2Feinsprungpunktdll.htm l&langpair=de%7Cen>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

P: n/a
Hi,

Danke very much!

"Herfried K. Wagner [MVP]" wrote:
"victorsk" <vi******@discussions.microsoft.com> schrieb:
Thanks for the reply. Ich no schprehen Deuch, sorry. Is there an English
article I can read please?


I am not aware of an English article about this topic, but maybe an
automatic translation to English is sufficient:

<URL:http://translate.google.com/translate?u=http%3A%2F%2Fwww.activevb.de%2Ftutoria ls%2Ftut_einsprungpunktdll%2Feinsprungpunktdll.htm l&langpair=de%7Cen>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6

P: n/a
"victorsk" <vi******@discussions.microsoft.com> schrieb:
Danke very much!


:-)

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #7

P: n/a
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.
"Herfried K. Wagner [MVP]" wrote:
"victorsk" <vi******@discussions.microsoft.com> schrieb:
Danke very much!


:-)

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.