Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delphi headers to backup using dbtools API

24 views
Skip to first unread message

Huseyin Altun

unread,
Oct 15, 2001, 2:59:09 AM10/15/01
to
Where can I get the dbtools API Delphi headers to backup database.


Robert Waywell

unread,
Oct 15, 2001, 9:15:36 AM10/15/01
to
The only .h file published by iAnywhere is the C version. To use the
functions with Delphi, you would have to build a C dll and call it from the
Delphi app.

An alternative for functions such as BACKUP DATABASE is to use the engine
directly. This command, along with others, was built in to the engine as of
version 6. In the 7.x docs, take a look at this section:

ASA Reference
CHAPTER 9. SQL Statements

BACKUP statement

--
-----------------------------------------------
Robert Waywell
Certified SQL Anywhere Associate
Sybase's iAnywhere Solutions

Please respond ONLY to newsgroup

EBF's and Patches: http://downloads.sybase.com
choose SQL Anywhere Studio >> change 'time frame' to all

To Submit Bug Reports: http://casexpress.sybase.com/cx/cx.stm

"Huseyin Altun" <hal...@posltd.com.tr> wrote in message
news:ChhqtgU...@forums.sybase.com...

Jon Oliver

unread,
Oct 15, 2001, 1:14:41 PM10/15/01
to
"Steven J. Serenska" <s...@banksurance.com> wrote in message
news:3BCAF63F...@banksurance.com...
> Robert:

>
> > The only .h file published by iAnywhere is the C version. To
use the
> > functions with Delphi, you would have to build a C dll and
call it from the
> > Delphi app.
>
> With all due respect, this isn't true. Wrapper code for the
functions can be
> written in *native* Delphi. The only DLL needed (besides the
standard ones for
> the SQLA DBMS) is the DBTools dll itself (i.e., dbtl????.dll).
>
> We wrote these very same functions a few years ago in 16-bit
Delphi for use
> with SQLA 5.5.0x. They worked fine and I'd be willing to
wager that they can
> be easily adapted for 32-bit/SQLA 7.0.x. The Delphi source
code is no longer
> mine to distribute (I sold all interests I had in the
company), but if you
> email me offline, I can put you in touch with the current
owners.
>
> Steven J. Serenska

I responded directly to Huseyin, but should make a more public
remark.

I've transposed the ASA6 DbTool c header declarations to Delphi
(D5) pascal. If anyone is interested, post here, and I'll send
you the file.

Steven J. Serenska

unread,
Oct 15, 2001, 10:44:15 AM10/15/01
to
Robert:

> The only .h file published by iAnywhere is the C version. To use the
> functions with Delphi, you would have to build a C dll and call it from the
> Delphi app.

With all due respect, this isn't true. Wrapper code for the functions can be

Steven J. Serenska

unread,
Oct 15, 2001, 4:05:46 PM10/15/01
to
Jon:

I'd love to get a copy written of the transposed declarations for 32-bit
Delphi. Thanks for your generous offer.

Steven J. Serenska

Richard Biffl

unread,
Oct 16, 2001, 12:34:44 PM10/16/01
to
Jon, I hate to punish your generosity by asking for more, but it would be
helpful to other Delphi programmers if you could post your conversion to
Project Jedi at http://www.delphi-jedi.com. It's a repository for API
headers converted from C to Delphi. Near the bottom of the home page there
is a link for donating a header conversion. It won't make you rich but it'll
help make you famous!

Richard

"Jon Oliver" <jol...@nospam.com> wrote in message
news:Hs2qm2Z...@forums.sybase.com...

Robert Waywell

unread,
Oct 16, 2001, 9:18:07 AM10/16/01
to
Thanks for the info.
While I've done some work with Delphi (a long time ago now) I never had
to try using a C header file.

--
-----------------------------------------------
Robert Waywell
Certified SQL Anywhere Associate
Sybase's iAnywhere Solutions

Please respond ONLY to newsgroup

EBF's and Patches: http://downloads.sybase.com
choose SQL Anywhere Studio >> change 'time frame' to all

"Steven J. Serenska" <s...@banksurance.com> wrote in message
news:3BCB419A...@banksurance.com...

Huseyin Altun

unread,
Oct 16, 2001, 3:02:56 AM10/16/01
to
I'd like to get it too.
(Do you have also ASA 5.5 dbtools headers for 32 bit Delphi?)

Thanks a lot..

Jon Oliver wrote in message ...

Al Kirk

unread,
Oct 17, 2001, 2:39:34 PM10/17/01
to
Hi Richard,

Do you have a vlid link? The one you supplied can't be found.
tia,
Al

Jon Oliver

unread,
Oct 17, 2001, 1:55:35 PM10/17/01
to
I've considered it, but though I'd get a bit more alpha testing
in.

Also, I'm unenthusiastic about meeting the naming and format
standards. Using the names (as closely as possible) in the
original header files helps me out in reading example code that
uses DbTool/DbLib. So, if I meet Jedi's standards, it would be
a tangential exercise--I would still work with the sybase-styled
names. Applying changes to both units seems like a PIA, so I'll
need some surplus ambition to do this.

I've been watching Delphi/Sybase newsgroups, though, and
providing it to anyone that wants it. Hopefully they'll give me
some feedback...

"Richard Biffl" <sybas...@NOSPAMblacklettersoftware.com> wrote
in message news:NkAyWGm...@forums.sybase.com...

Jon Oliver

unread,
Oct 17, 2001, 3:15:54 PM10/17/01
to
"Al Kirk" <ak...@pacific.net> wrote in message
news:3BCDD066...@pacific.net...

> Hi Richard,
>
> Do you have a vlid link? The one you supplied can't be found.
> tia,

http://www.delphi-jedi.org/

Mike Packard

unread,
Oct 18, 2001, 4:22:06 PM10/18/01
to
>> I've transposed the ASA6 DbTool c header declarations to Delphi
>> (D5) pascal. If anyone is interested, post here, and I'll send
>> you the file.

Please send it, I will definitely use it.

Thanks!

Mike

Martin Baur

unread,
Oct 19, 2001, 12:51:30 PM10/19/01
to
In article <3BCF39EE...@adnc.com>, mpac...@adnc.com says...
Hi Mike

Please then forward them to me too!

Thanks
--

Martin Baur


MindPower,
IT Services
__________________________________________________________
Internet-Mail:    mailto:marti...@mindpower.com
Internet (biz):   http://www.mindpower.com
PGP-Key:          http://www.mindpower.com/pgp.htm
Voice:            +41-1-687 11 66
__________________________________________________________

Al Kirk

unread,
Oct 26, 2001, 1:30:29 PM10/26/01
to
Hi Jon,

Me too please.

tia.
Al

0 new messages