473,387 Members | 1,549 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,387 software developers and data experts.

Delphi DLL vs Dot Net DLL

I need to write a DLL that has a function in it named "AfterSession". (A
commercial packages calls this DLL and fills a Structured Type with data.)

The example the company shows is written in Delphi. The syntax of Delphi
has you identify the procedures etc that are to be exported in the EXPORT
section of your program. The resultant DLL when built has entry points
defined with offsets etc. One of those entry points is "AfterSession"

I am trying to write a VB Dot Net DLL to do the same thing. I started with
a component class and added:
Public Function AfterSession() etc.
I put this in the only class in the program.

When I build the DLL it does not work. When comparing the two DLL's I see
that mine does not have any Entry Points defined, so I think somehow I need
to get this to occur.

BTW If I use my DLL as a reference within another VB.NET application it runs
as expected.

Any ideas?
Nov 20 '05 #1
4 4476
* "DanB" <ag*****@kc.rr.com> scripsit:
I need to write a DLL that has a function in it named "AfterSession". (A
commercial packages calls this DLL and fills a Structured Type with data.)

The example the company shows is written in Delphi. The syntax of Delphi
has you identify the procedures etc that are to be exported in the EXPORT
section of your program. The resultant DLL when built has entry points
defined with offsets etc. One of those entry points is "AfterSession"


This cannot be done in VB.NET/C#.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
How about if I create an ASPX page that calls the web service.
Then useing "DataSet.GetXML" Write the return value to the HTML part of the
ASPX page as an Data Island. Then within my ASP page call the ASPX page via
IFrame to access the data island.

Right now I am parsing a DI with my VB Script from an IFrame ASP page.

Maybe? anyone?

B

B
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2n************@uni-berlin.de...
* "DanB" <ag*****@kc.rr.com> scripsit:
I need to write a DLL that has a function in it named "AfterSession". (A commercial packages calls this DLL and fills a Structured Type with data.)
The example the company shows is written in Delphi. The syntax of Delphi has you identify the procedures etc that are to be exported in the EXPORT section of your program. The resultant DLL when built has entry points
defined with offsets etc. One of those entry points is "AfterSession"


This cannot be done in VB.NET/C#.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Nov 20 '05 #3
It sounds like the Delphi DLL that you are creating is using COM to
communicate. If this is so, then you can accomplish the same
functionality via COM Interop. To do so, you need to mark the
"AfterSession" function with the <COMAccessible> attribute.

HTH

David

"DanB" <ag*****@kc.rr.com> wrote in message
news:#q*************@TK2MSFTNGP09.phx.gbl:
I need to write a DLL that has a function in it named "AfterSession".
(A
commercial packages calls this DLL and fills a Structured Type with
data.)

The example the company shows is written in Delphi. The syntax of
Delphi
has you identify the procedures etc that are to be exported in the
EXPORT
section of your program. The resultant DLL when built has entry points
defined with offsets etc. One of those entry points is "AfterSession"

I am trying to write a VB Dot Net DLL to do the same thing. I started
with
a component class and added:
Public Function AfterSession() etc.
I put this in the only class in the program.

When I build the DLL it does not work. When comparing the two DLL's I
see
that mine does not have any Entry Points defined, so I think somehow I
need
to get this to occur.

BTW If I use my DLL as a reference within another VB.NET application it
runs
as expected.

Any ideas?


Nov 20 '05 #4
Thanks , I'll try that.
Dan

"David Williams , VB.NET MVP" <da********************@earthlink.net> wrote
in message news:Oz**************@TK2MSFTNGP11.phx.gbl...
It sounds like the Delphi DLL that you are creating is using COM to
communicate. If this is so, then you can accomplish the same
functionality via COM Interop. To do so, you need to mark the
"AfterSession" function with the <COMAccessible> attribute.

HTH

David

"DanB" <ag*****@kc.rr.com> wrote in message
news:#q*************@TK2MSFTNGP09.phx.gbl:
I need to write a DLL that has a function in it named "AfterSession".
(A
commercial packages calls this DLL and fills a Structured Type with
data.)

The example the company shows is written in Delphi. The syntax of
Delphi
has you identify the procedures etc that are to be exported in the
EXPORT
section of your program. The resultant DLL when built has entry points
defined with offsets etc. One of those entry points is "AfterSession"

I am trying to write a VB Dot Net DLL to do the same thing. I started
with
a component class and added:
Public Function AfterSession() etc.
I put this in the only class in the program.

When I build the DLL it does not work. When comparing the two DLL's I
see
that mine does not have any Entry Points defined, so I think somehow I
need
to get this to occur.

BTW If I use my DLL as a reference within another VB.NET application it
runs
as expected.

Any ideas?

Nov 20 '05 #5

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

Similar topics

6
by: Erva | last post by:
Hi, Is there someone who has moved from Delphi to VS.NET? I'am using Delphi currently but seriously considering to moving VS.NET. I would like to hear if someone has already done that, is it...
10
by: Arda Han | last post by:
I am migrating my some applications from Delphi to C#. But... Yes But I don't know C# professionally. I am using DLL in delphi like this : ..... const RFID_103_485IO = 'Cihaz.dll'; ...
9
by: Gclinton | last post by:
I'm looking for a comparsion of C# to Delphi .net. My company is about to begin the process of reengineering a Delphi tightly coupled win32 app and a Older Java webclient that uses JSP over to an...
16
by: glenn | last post by:
I've gotten a COM server written in C# and I can call it from a VBScript just fine and it works perfectly. However, I import it into Delphi 6 or Delphi 2005 and I can not get access to any of the...
3
by: lukeharpin | last post by:
Currently I have been developing applications in Delphi 7. Recently I meet up with a friend of mine who previously developed in Delphi, from version 1 - 7. When Delphi 8 .net was release he found...
7
by: Sanjay Kedare | last post by:
Hi, I am evaluating various alternatives of converting Delphi (Ver 4.0) screens to C# screens. Are there any tools available for such conversion? if yes how much conversion do they achieve? The...
13
by: lukeharpin | last post by:
Hi World, We have been developing Engineering software in Delphi 3,4,5,6,7 for a few years now. This morning we had a discussion about OOP and re-programming the software to which the question...
1
by: Thomas Due | last post by:
Hi, I manage an rather old application in which we have some fairly complex (ugly) Delphi code. This is Delphi 6 we're talking about. Among all this Delphi code there is method for formating a...
4
by: =?Utf-8?B?ZGF2ZWJ5dGhlc2Vh?= | last post by:
Dear List, We have a large application written in Delphi. I am writing a mobile app written in .NET (C#) which reads and writes into the Delphi applications Oracle database via a .NET Web...
11
by: gnuist006 | last post by:
Is there a Delphi equivalent in the C world or Scheme/LISP world ? Recently, Delphi is in resurgence. In Russia people are using like crazy. For example, Bolega has written a free image...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...

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.