473,788 Members | 2,892 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.d ll",
CharSet=CharSet .Ansi,CallingCo nvention=Callin gConvention.Std Call)]
public static extern string FullName();

but I need help formulating the next one
// definition from .dll
function DiskSaveFooter( missionname,qlf filename,id:pch ar):TCharArray; export;

Can anyone offer me some assistance please?
May 12 '07 #1
1 2042
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.d ll",
CharSet=CharSet .Ansi,CallingCo nvention=Callin gConvention.Std Call)]
public static extern string FullName();

but I need help formulating the next one
// definition from .dll
function DiskSaveFooter( missionname,qlf filename,id:pch ar):TCharArray; 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
1632
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
3169
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 worth of it or should i continue to ude Delphi for new projects. I'am developing mostly desktop apps but in th future also ASP.NET apps. -erva
0
523
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 the same application on Windows 98, sometime everything work fine, sometime, I have a timeout exception (after 2 or 3 minutes !)
3
1478
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 feet..
5
1486
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 something. Thanks in advance for any help. #define REQUEST_DECLINED -2 typedef struct rversion_parms_set_1 RVERSION_PARMS; typedef struct rversion_resp_set_1 RVERSION_RESP;
3
2989
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 provide the top level container for the Delphi GUI module. The Delphi form will be invoked in the following way: 1. A menu Item in the .Net container will trigger an event 2. From with in the event handler I will call Delphi Dll Form and...
0
1420
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 to call a function from the web service repeatedly. is it possible to call dll or com+ from windows service that i wrote??? if so. how can i do that. please help...
1
8082
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 print layout for slip printers. Pass a few parameters to this method and it returns a Delphi string which contains the entire slip, ready for sending to the slip printer. Now, we're slowly migrating to .NET and am in need of printing this slip...
11
2913
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 processing program scankromsator in delphi because its easy to write a gui. In arabia people are using it also. Also delphi, I heard delphi allows visual programming and delphi programs run on:
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10175
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...
0
9969
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
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
7518
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
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
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 we have to send another system
2
3675
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.