Subject | Re: [IBO] IBO - D2009 Build help needed. |
---|---|
Author | Martijn Tonies |
Post date | 2008-10-17T12:01:49Z |
It's really not just a matter of replacing all "string" with "AnsiString",
yes,
that might give you IBO in D2009, but probably will fail with TIBODataset
and other Delphi class descendants.
And even then, IBO should make use of the unicode string to get data from
Firebird and send unicode queries to it.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
yes,
that might give you IBO in D2009, but probably will fail with TIBODataset
and other Delphi class descendants.
And even then, IBO should make use of the unicode string to get data from
Firebird and send unicode queries to it.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> I did, then figured out some more, and it compiled.'StrComp'
>
> No another module .. got new problem:
> ii := StrComp( @AToken[ 1 ], @SQLTokens[ Mid ][ 1 ] );
> is giving error
> [DCC Error] IB_Parse.pas(4746): E2251 Ambiguous overloaded call to
> SysUtils.pas(7933): Related method: function StrComp(const PAnsiChar;in
> const PAnsiChar): Integer;
> SysUtils.pas(7996): Related method: function StrComp(const PWideChar;
> const PWideChar): Integer;
>
> Regards
> Adrian
> ----- Original Message -----
> From: "Dmitriy A. Beloshistov" <torin@...>
> To: <IBObjects@yahoogroups.com>
> Sent: Friday, October 17, 2008 10:00 AM
> Subject: RE: [IBO] IBO - D2009 Build help needed.
>
>
> > AFAIK in D2009 improved AnsiStrings unit for backward compatibility. Try
> > use it.
> >
> >
> >
> > WBR, Dmitry Beloshistov AKA [-=BDS=-]
> >
> >
> >
> >
> >
> > From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On
> > Behalf Of Adrian Wreyford
> > Sent: Friday, October 17, 2008 12:01 AM
> > To: IBObjects@yahoogroups.com
> > Subject: Re: [IBO] IBO - D2009 Build help needed.
> >
> >
> >
> > Thanks ,I tried that, but then you have to be carefull, you need to take
> > all the following into consideration as per help files:
> > Additional Code to Consider
> > Search for the following additional code constructs to locate Unicode
> > enabling problems:
> >
> > a.. AllocMem(
> > b.. AnsiChar
> > c.. of AnsiChar
> > d.. AnsiString
> > e.. of Char
> > f.. Copy(
> > g.. GetMem(
> > h.. Length(
> > i.. PAnsiChar
> > j.. Pointer(
> > k.. Seek(
> > l.. ShortString
> > m.. string[
> > Code containing such constructs might need to be changed to properly
> > support the UnicodeString type.
> >
> > Shew!!! This is going to be difficult, and needs to be well thought
> > through .. not just a matter of recompiling the code in D2009 as we did
> > D2007.is
> >
> > ----- Original Message -----
> > From: Hans
> > To: IBObjects@yahoogroups.com <mailto:IBObjects%40yahoogroups.com>
> > Sent: Thursday, October 16, 2008 9:59 PM
> > Subject: Re: [IBO] IBO - D2009 Build help needed.
> >
> > I think instead of Char, user AnsiChar
> > ----- Original Message -----
> > From: "Adrian Wreyford" <wreymed@...
> > <mailto:wreymed%40absamail.co.za> >
> > To: <IBObjects@yahoogroups.com <mailto:IBObjects%40yahoogroups.com> >
> > Sent: Thursday, October 16, 2008 1:53 PM
> > Subject: [IBO] IBO - D2009 Build help needed.
> >
> >> OK .. I'm trying to tackle a build for D2009
> >>
> >> I cannot get the following code to compile in D2009:
> >>
> >> const SoundExTable: array [char] of smallint = (
> >> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 0..29
> >> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 30..59
> >> 0,0,0,0,0, // 60..64
> >> //A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ / ] ^ _ '
> >> 0,1,2,3,0,1,2,0,0,2,2,4,5,5,0,1,2,6,2,3,0,1,0,2,0,2,0,0,0,0,0,0,
> >> //a b c d e f g h i j k l m n o p q r s t u v w x y z
> >> 0,1,2,3,0,1,2,0,0,2,2,4,5,5,0,1,2,6,2,3,0,1,0,2,0,2,
> >> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, //
> >> 123..149
> >> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, //
> >> 150..179
> >> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, //
> >> 180..209
> >> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, //
> >> 210..239
> >> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 );
> >>
> >> Gives error: Number of elements 256 differs from declaration 65536. ..
> >> this something to do with unicode? and Char representation in D2009?___________________________________________________________________________
> >> Any help will be appreciated.
> >>
> >> Adrian
> >>
> >>
> >>
> >> [Non-text portions of this message have been removed]
> >>
> >>
> >> ------------------------------------
> >>
> >> __________________________________________________________
> >> IB Objects - direct, complete, custom connectivity to Firebird or
> >> InterBase
> >> without the need for BDE, ODBC or any other layer.
> >> __________________________________________________________
> >> http://www.ibobjects.com - your IBO community resource for Tech Info
> >> papers,
> >> keyword-searchable FAQ, community code contributions and more !
> >> Yahoo! Groups Links
> >>
> >>
> >>
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
> >
> > ------------------------------------
> >
> >
> > IB Objects - direct, complete, custom connectivity to Firebird or___________________________________________________________________________
> > InterBase
> > without the need for BDE, ODBC or any other layer.
> >
> > http://www.ibobjects.com - your IBO community resource for Tech Info___________________________________________________________________________
> > papers,
> > keyword-searchable FAQ, community code contributions and more !
> > Yahoo! Groups Links
> >
> >
> >
>
>
> ------------------------------------
>
>
> IB Objects - direct, complete, custom connectivity to Firebird orInterBase
> without the need for BDE, ODBC or any other layer.___________________________________________________________________________
>
> http://www.ibobjects.com - your IBO community resource for Tech Infopapers,
> keyword-searchable FAQ, community code contributions and more !Yahoo! Groups Links
>
>
>