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.

asa 9 functions with external calls x64 System-dependent

2 posts in General Discussion (old) Last posting was on 2008-03-03 20:51:30.0Z
tim spero Posted on 2008-03-03 20:05:32.0Z
From: "tim spero" <tim.spero@ticketmaster.com>
Newsgroups: sybase.public.sqlanywhere
Subject: asa 9 functions with external calls x64 System-dependent
Lines: 9
Organization: ticketmaster
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47cc5a0c$1@forums-1-dub>
Date: 3 Mar 2008 12:05:32 -0800
X-Trace: forums-1-dub 1204574732 10.22.241.152 (3 Mar 2008 12:05:32 -0800)
X-Original-Trace: 3 Mar 2008 12:05:32 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sqlanywhere:71
Article PK: 866525

whats is the System-dependent VAR for windows 2003 x64 and windows 2003 x86

I found on the sybase site

CREATE PROCEDURE dll_proc ( parameter-list )
EXTERNAL NAME
'Windows95:95_fn@95_lib.dll;WindowsNT:nt_fn@nt_lib.dll'


Jeff Albion (Sybase iAnywhere) Posted on 2008-03-03 20:51:30.0Z
From: "Jeff Albion (Sybase iAnywhere)" <firstname.lastname@ianywhere.com>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: sybase.public.sqlanywhere
Subject: Re: asa 9 functions with external calls x64 System-dependent
References: <47cc5a0c$1@forums-1-dub>
In-Reply-To: <47cc5a0c$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47cc64d2$1@forums-1-dub>
Date: 3 Mar 2008 12:51:30 -0800
X-Trace: forums-1-dub 1204577490 10.22.241.152 (3 Mar 2008 12:51:30 -0800)
X-Original-Trace: 3 Mar 2008 12:51:30 -0800, vip152.sybase.com
Lines: 65
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sqlanywhere:73
Article PK: 866524

Tim,

We do not separate these two OSes in our EXTERNAL NAME string:

===================

http://www.ianywhere.com/developer/product_manuals/sqlanywhere/0902/en/html/dbugen9/00000722.htm

System-dependent calls
You can specify operating-system dependent calls, so that a procedure
calls one function when run on one operating system, and another
function (presumably analogous) on another operating system. The syntax
for such calls involves prefixing the function name with the operating
system name. For example:

CREATE PROCEDURE dll_proc ( parameter-list )
EXTERNAL NAME
'Windows95:95_fn@95_lib.dll;WindowsNT:nt_fn@nt_lib.dll'The operating
system identifier must be one of WindowsNT, Windows95, UNIX, or NetWare.

===================

They both classify as "WindowsNT".

You'll have to separate these two calls into some other mechanism of
program-control. Since our x64 server can only call x64 DLLs, you'll
need to have some custom logic involved. For instance, you could query
the server-level property 'ProcessorArchitecture', and then make the
appropriate function call:

===================
CREATE PROCEDURE dll_proc_x64 ( parameter-list )
EXTERNAL NAME 'x64_fn@x64_lib.dll'

CREATE PROCEDURE dll_proc_x86 ( parameter-list )
EXTERNAL NAME 'x86_fn@x86_lib.dll'

IF (property ( 'ProcessorArchitecture') = 'X86') THEN
CALL dll_proc_x86 ( parameter-list )
ELSE
CALL dll_proc_x64 ( parameter-list )
END IF
===================

Regards,

tim spero wrote:
> whats is the System-dependent VAR for windows 2003 x64 and windows 2003 x86
>
> I found on the sybase site
>
> CREATE PROCEDURE dll_proc ( parameter-list )
> EXTERNAL NAME
> 'Windows95:95_fn@95_lib.dll;WindowsNT:nt_fn@nt_lib.dll'
>
>

--
Jeff Albion, Product Support Analyst
Sybase iAnywhere

iAnywhere Developer Community : http://www.ianywhere.com/developer
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
ASA Patches and EBFs :
http://downloads.sybase.com/swd/summary.do?baseprod=144&client=ianywhere&timeframe=0