473,503 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Export function from VB.Net DLL

Is there a way to export functions from a VB.Net Dll, similar to the VC
_declspec(dllexport) function or .def files, so the functions will show as
exported using dumpbin?
Any URL to a description of how to do it, or why you can't (I've been
looking...)?
Thanks
Nov 16 '06 #1
3 8108
AFAIK not possible from .NET (at least with managed code). The trend is now
to expose libraries as a well defined set of class hierarchies rather than
as a bunch of "flat" unrelated functions...

You may want to elaborate a bit on your exact need (when you reference a DLL
you have access to all its public classes and related members, you can also
expose a .NET component to COM, is exposing your code as a WINAPI function a
strict requirement ?).

--
Patrice

"rbrian" <rb****@community.nospama écrit dans le message de news:
51**********************************@microsoft.com...
Is there a way to export functions from a VB.Net Dll, similar to the VC
_declspec(dllexport) function or .def files, so the functions will show as
exported using dumpbin?
Any URL to a description of how to do it, or why you can't (I've been
looking...)?
Thanks

Nov 16 '06 #2
Thank you, Patrice.

My immediate need is to call .Net dll functions from National Instruments
Labview (which I am VERY new at), which has a 'Call Library Function Node'
but cannot see my dll functions. This would be the easiest wat to implement
what I want (since the code is done). I do have other options (other Labview
nodes such as '.Net Object constructor') that will just take a bit more work,
since there are issues with transferring variables and structures between
the NI and VB code. Or maybe write some intermediate C code, but that was a
long time ago...

Any references to info on "exposing libraries" and their classes that may
work here?
"Patrice" wrote:
AFAIK not possible from .NET (at least with managed code). The trend is now
to expose libraries as a well defined set of class hierarchies rather than
as a bunch of "flat" unrelated functions...

You may want to elaborate a bit on your exact need (when you reference a DLL
you have access to all its public classes and related members, you can also
expose a .NET component to COM, is exposing your code as a WINAPI function a
strict requirement ?).

--
Patrice

"rbrian" <rb****@community.nospama écrit dans le message de news:
51**********************************@microsoft.com...
Is there a way to export functions from a VB.Net Dll, similar to the VC
_declspec(dllexport) function or .def files, so the functions will show as
exported using dumpbin?
Any URL to a description of how to do it, or why you can't (I've been
looking...)?
Thanks


Nov 16 '06 #3
AFAIK .NET is usable either from .NET or can be exposed using COM (but not
as WINAPI functions). You could also if possible from LabView expose this a
web service or something similar...

I know nothing about LabView but I my personal preference would be likely to
go for the ".net Object Constructor" as it looks likre the intended path
(and if those issues are solved, it will be even better).

Don't know what those issues are but some of them could be perhaps solved
using .NET attributes (for example a thing that comes to mind would be
alignment issues for structure members or similar things between LabView
/.NET). Also I would try perhaps a LabView forum...

Good luck.

--
Patrice

"rbrian" <rb****@community.nospama écrit dans le message de news:
7D**********************************@microsoft.com...
Thank you, Patrice.

My immediate need is to call .Net dll functions from National Instruments
Labview (which I am VERY new at), which has a 'Call Library Function Node'
but cannot see my dll functions. This would be the easiest wat to
implement
what I want (since the code is done). I do have other options (other
Labview
nodes such as '.Net Object constructor') that will just take a bit more
work,
since there are issues with transferring variables and structures between
the NI and VB code. Or maybe write some intermediate C code, but that was
a
long time ago...

Any references to info on "exposing libraries" and their classes that may
work here?
"Patrice" wrote:
>AFAIK not possible from .NET (at least with managed code). The trend is
now
to expose libraries as a well defined set of class hierarchies rather
than
as a bunch of "flat" unrelated functions...

You may want to elaborate a bit on your exact need (when you reference a
DLL
you have access to all its public classes and related members, you can
also
expose a .NET component to COM, is exposing your code as a WINAPI
function a
strict requirement ?).

--
Patrice

"rbrian" <rb****@community.nospama écrit dans le message de news:
51**********************************@microsoft.com...
Is there a way to export functions from a VB.Net Dll, similar to the
VC
_declspec(dllexport) function or .def files, so the functions will show
as
exported using dumpbin?
Any URL to a description of how to do it, or why you can't (I've been
looking...)?
Thanks



Nov 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1879
by: Shawn Mehaffie | last post by:
I have the following class that I've wirtten to take a Dataset and automatically export it to either XML, ASCII or Tab delimited file. The reason I wrote it they way I did was that I don't want to...
205
10452
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
5
11006
by: Tim Eliot | last post by:
Just wondering if anyone has hit the following issue and how you might have sorted it out. I am using the command: DoCmd.TransferText acExportMerge, , stDataSource, stFileName, True after...
16
11812
by: David Lauberts | last post by:
Hi Wonder if someone has some words of wisdom. I have a access 2002 form that contains 2 graph objects that overlay each other and would like to export them as a JPEG to use in a presentation....
2
3448
by: Regnab | last post by:
I've got my code working so that it'll count the number of columns in the table and move across (eg Range A-P and then range Q-W). Problem is when I get to the end of the single letters and get...
0
1494
by: Shawn Mehaffie | last post by:
I have the following class that I've wirtten to take a Dataset and automatically export it to either XML, ASCII or Tab delimited file. The reason I wrote it they way I did was that I don't want to...
17
7189
by: Fabry | last post by:
Hi All, I'm new of this group and I do not know if this is the correct group for my question. I have a DLL with its export library (.lib) wrote in Borland C++ 6. In borland everything is OK and...
5
3390
by: JHNielson | last post by:
I have a somewhat simple question, but have been baffled by it for a while, and now I'm on a tight deadline - have to get it done within 24 hours. I am trying to export a set of files to my hard...
5
16303
by: bhodgins | last post by:
Hi, I am new on here, and had a newbie question that I am stumped with. I am not new to access, but am new to VB. I am trying to export BLOBs from a field called photo to external jpeg files. I...
3
10931
by: Wayne | last post by:
I'm trying to automate the export of a query to a text file using code. If I export the query manually I get the exact result that I want i.e. If I select the query then choose File/Export from...
0
7201
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.