473,396 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 8094
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
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
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
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
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
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
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
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
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
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
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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
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,...

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.