Конференция "KOL" » XE2 compatible [Delphi]
 
  • Awkward © (07.07.12 00:42) [0]
    Надо перекомпилить программу с компонентом KolEdb на Дельфи ХЕ2. Сразу выдало ошибку, связанную с типом строк, правда, только в одном месте. Пока не пытался лезть внутрь кода и проверить работоспособность. Но вопрос: кто-то пытался адаптировать компоненты, использующие KOL, для дельфи ХЕ2? И, в частности, работающие с базами данных.
  • awkward © (09.07.12 13:35) [1]
    И ещё, планируется ли встроенная поддержка RighToLeft письма?
  • awkward © (09.07.12 13:35) [1]
    И ещё, планируется ли встроенная поддержка RighToLeft письма?
  • Thaddy © (10.07.12 11:47) [2]
    About KoleDB: Yes I did (as a test).
    The problem is that you have to refactor type String (which is alias for unicodestring in XE2) to type AnsiString and PChar to PAnsiChar for your old code to work. This is only a quick fix but it works. But only for unit KoleDb and most recent kol.pas.
    Simply Search/Replace String (with whole words only) to AnsiString and PChar to PAnsiChar. You should also remove the alias type Int64 = I64.

    This is only a quick fix but it compiles in XE2 update 4.

    A better option is to really make everything unicodestring, but that requires a lot more work inside the codeblocks.
    Warning: it may be that I oversaw implicit pointersize bugs on buffers: it is not consistent that everywhere SizeOf() is used.
  • Thaddy © (10.07.12 11:47) [2]
    About KoleDB: Yes I did (as a test).
    The problem is that you have to refactor type String (which is alias for unicodestring in XE2) to type AnsiString and PChar to PAnsiChar for your old code to work. This is only a quick fix but it works. But only for unit KoleDb and most recent kol.pas.
    Simply Search/Replace String (with whole words only) to AnsiString and PChar to PAnsiChar. You should also remove the alias type Int64 = I64.

    This is only a quick fix but it compiles in XE2 update 4.

    A better option is to really make everything unicodestring, but that requires a lot more work inside the codeblocks.
    Warning: it may be that I oversaw implicit pointersize bugs on buffers: it is not consistent that everywhere SizeOf() is used.
  • thaddy © (10.07.12 13:56) [3]
    koledb.pas: sorry I used a specially prepared rtl. with the standard rtl it does not work, but I am working on it.
  • thaddy © (10.07.12 13:56) [3]
    koledb.pas: sorry I used a specially prepared rtl. with the standard rtl it does not work, but I am working on it.
  • Awkward © (21.07.12 19:57) [4]
    Снова спрошу: кто-нибудь адаптировал ещё какие-нибудь исходники (в частности, ERR.pas) под 64 бита?
  • Awkward © (21.07.12 19:57) [4]
    Снова спрошу: кто-нибудь адаптировал ещё какие-нибудь исходники (в частности, ERR.pas) под 64 бита?
 
Конференция "KOL" » XE2 compatible [Delphi]
Есть новые Нет новых   [118648   +59][b:0][p:0]