473,657 Members | 2,845 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(dllex port) 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 8121
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****@communi ty.nospama écrit dans le message de news:
51************* *************** **...icrosof t.com...
Is there a way to export functions from a VB.Net Dll, similar to the VC
_declspec(dllex port) 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****@communi ty.nospama écrit dans le message de news:
51************* *************** **...icrosof t.com...
Is there a way to export functions from a VB.Net Dll, similar to the VC
_declspec(dllex port) 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****@communi ty.nospama écrit dans le message de news:
7D************* *************** **...icrosof t.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****@communi ty.nospama écrit dans le message de news:
51************* *************** **...icrosof t.com...
Is there a way to export functions from a VB.Net Dll, similar to the
VC
_declspec(dllex port) 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
1896
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 have o create a temporary file on the web server everytime someone want to run and export. When I call the ExportToBrowser function the user gets the standard open/save file dialog box. If the user chooses to save the file the program works...
205
10591
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
11025
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 setting stDataSource and stFileName to the desired values. Most of the time it works, but occasionally, typically as code changes are being made to the module, the following message appears:
16
11851
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. I can do this individually for each graph but this does not help me as I need both on the same JPEG. I thought I would try an export the form that contains both but I am having trouble. (My VBA is self taught and a little knowledge is...
2
3469
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 into AA etc. Have got an idea of how I could do it by using Chr() and having an ongoing counter which is divided by 26 when it goes past Z to work out location. However, I'd dearly like there to be an easier way. Any ideas? Another problem I'm...
0
1506
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 have o create a temporary file on the web server everytime someone want to run and export. When I call the ExportToBrowser function the user gets the standard open/save file dialog box. If the user chooses to save the file the program works fine,...
17
7228
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 I am able to include the lib and use the class that i have exported creating an instance with new etc... I would like to export this class in microsoft VC++ using the same .lib file. Obviously it doesn' t work.
5
3413
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 drive to then later be FTPd to a server. the file format should be "TITLE.yyyymmdd" where yymmdd is the date code for when the files are created. The files can't be .txt. But when I run the files as ".txt" the code runs just fine. when I...
5
16343
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 have tried the MS kb 210486 and successfully got the import/export to work with a sample table, but only the first record. I do not wish to impost binary data to the database, it's already there. I simply wish to pick up the binary BLOB from the photo...
3
10954
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 the menu bar, choose "Text" as the save format, and then select "fixed width" as the export format, I end up with a fixed width text file with no column headers. I've tried to automate the process using: DoCmd.OutputTo acOutputQuery,...
0
8384
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8820
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8499
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7314
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.