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

Call delphi .dll

Hi,
I need to call 2 functions from an old Delphi .dll
but am struggling to formulate my call to the second one :(

I have managed to one of them as follows:
// definition from .dll
function FullName:pchar; export;
// my code
[DllImport("qn.dll",
CharSet=CharSet.Ansi,CallingConvention=CallingConv ention.StdCall)]
public static extern string FullName();

but I need help formulating the next one
// definition from .dll
function DiskSaveFooter(missionname,qlffilename,id:pchar):T CharArray; export;

Can anyone offer me some assistance please?
May 12 '07 #1
1 2024
for some reson the speachmarks in my post have turned into "
please substitute when reading !!

"ShaunO" wrote:
Hi,
I need to call 2 functions from an old Delphi .dll
but am struggling to formulate my call to the second one :(

I have managed to one of them as follows:
// definition from .dll
function FullName:pchar; export;
// my code
[DllImport("qn.dll",
CharSet=CharSet.Ansi,CallingConvention=CallingConv ention.StdCall)]
public static extern string FullName();

but I need help formulating the next one
// definition from .dll
function DiskSaveFooter(missionname,qlffilename,id:pchar):T CharArray; export;

Can anyone offer me some assistance please?
May 12 '07 #2

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

Similar topics

0
by: Tom | last post by:
delphi 7 python 2.3 win98 Python for Delphi V3.25 In Delphi: 1 Create a new Form ; 2 Drop a TMemo(Memo1) to contain python code; 3 Drop a TPythonInputOutput (PythonInputOutput1) ;
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...
0
by: azerty | last post by:
Hello I develop an application which must call a WebService on a server (develop with ASP.NET framework) If I call this application from XP client station, no problem occurs BUT if i call...
3
by: Raghu Raman | last post by:
Hi , I have written a .net dll and i want to call this from Delphi. Please tell me the procedures and examples that helps me to call the ..net dll from Delphi. With Thanks Raghu On His...
5
by: Bob Simoneau | last post by:
I am trying to get a C DLL to work with VB.NET 2005. Below is the original header, my conversion, and test code. There is no error, but RVERSION_RESP.version returns empty. I must be missing...
3
by: Anoop | last post by:
Hi All, I have a GUI module written in Delphi32. There is another main application written in CSharp.Net. I want to call the delphi GUI Form from with in CSharp.Net Code. The .Net application will...
0
by: epoch | last post by:
hi. my problem is: there is a web service running on the network. i wrote a windows service in delphi. i want to call a dll or com+ from this windows service. and this windows service is going...
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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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...

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.