Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Calling A Delphi DLL from an AEP

3 posts in AEP Last posting was on 2008-07-07 14:15:44.0Z
David Looney Posted on 2008-06-17 21:05:24.0Z
From: "David Looney" <davidl@autostarsolutions.com>
Newsgroups: Advantage.AEP
Subject: Calling A Delphi DLL from an AEP
Date: Tue, 17 Jun 2008 16:05:24 -0500
Lines: 6
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 67.152.110.130
Message-ID: <485825b9@solutions.advantagedatabase.com>
X-Trace: 17 Jun 2008 14:59:37 -0700, 67.152.110.130
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!67.152.110.130
Xref: solutions.advantagedatabase.com Advantage.AEP:630
Article PK: 1103908

I have a dll that I have written, that I need to call from an AEP, how do I
tell the AEP where my dll is located?

David Looney


Lance Schmidt Posted on 2008-06-17 23:08:59.0Z
From: "Lance Schmidt" <LanceSc@ExtendSys.com>
Newsgroups: Advantage.AEP
References: <485825b9@solutions.advantagedatabase.com>
Subject: Re: Calling A Delphi DLL from an AEP
Date: Tue, 17 Jun 2008 17:08:59 -0600
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 10.24.38.197
Message-ID: <485842a8@solutions.advantagedatabase.com>
X-Trace: 17 Jun 2008 17:03:04 -0700, 10.24.38.197
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!10.24.38.197
Xref: solutions.advantagedatabase.com Advantage.AEP:631
Article PK: 1103910

Hi David,

The following link to the MSDN covers DLL order,
http://msdn.microsoft.com/en-us/library/ms682586.aspx. If you follow the
recommendations in it, you shouldn't have any problems.

Make sure that your DLL is thread safe, because by default Delphi does not
use a thread safe memory manager.

Best Regards,

Lance Schmidt
Advantage R&D

"David Looney" <davidl@autostarsolutions.com> wrote in message
news:485825b9@solutions.advantagedatabase.com...
>I have a dll that I have written, that I need to call from an AEP, how do I
>tell the AEP where my dll is located?
>
> David Looney
>


Jeremy Mullin Posted on 2008-07-07 14:15:44.0Z
Date: Mon, 7 Jul 2008 14:15:44 +0000 (UTC)
Message-ID: <1b468bc8358428caae20c96d4e0c@devzone.advantagedatabase.com>
From: Jeremy Mullin <no@email.com>
Subject: Re: Calling A Delphi DLL from an AEP
Newsgroups: Advantage.AEP
References: <485842a8@solutions.advantagedatabase.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1; format=flowed
X-Newsreader: JetBrains Omea Reader 1098.1
NNTP-Posting-Host: 10.24.38.114
X-Trace: 7 Jul 2008 08:09:45 -0700, 10.24.38.114
Lines: 13
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!10.24.38.114
Xref: solutions.advantagedatabase.com Advantage.AEP:632
Article PK: 1103911


> Make sure that your DLL is thread safe, because by default Delphi does
> not use a thread safe memory manager.

This means you need to add the line

IsMultithread := true

to your dll.

J.D. Mullin
Advantage R&D