Recent

Author Topic: ZEOS LIB components ?  (Read 33875 times)

IgD

  • Jr. Member
  • **
  • Posts: 73
    • http://www.igdsoftware.com
ZEOS LIB components ?
« Reply #15 on: January 15, 2005, 03:15:02 pm »
Lightning, have you heard any more updates on using Zeoslib with Lazarus?  I want to start using Lazarus with DB stuff but my work won't permit installation of open source DB's.  We are required to use Microsoft SQL Server.

matthijs

  • Hero Member
  • *****
  • Posts: 537
ZEOS LIB components ?
« Reply #16 on: January 15, 2005, 04:19:58 pm »
Cannot you use ODBC components then? I think there is a library to connect through ODBC.
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

Lightning

  • Sr. Member
  • ****
  • Posts: 422
ZEOS LIB components ?
« Reply #17 on: January 16, 2005, 11:22:27 am »
IgD, not yet completed, we are waiting for a version of FPC with full variant and interfaces support because Zeos uses too much Delphi/Kylix specific syntax, but as soon as FPC will support that kind of syntax we will port all the Zeos code to Lazarus, you could join the Zeos team and help if you want to.
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

Stevie

  • Guest
ZEOS LIB components ?
« Reply #18 on: March 16, 2005, 03:27:17 pm »
Hi,

I am a member of the ZeosLib-Team and I tried to port the zeosdbo (6.5.1 alpha) to lazarus/fcp.
But I have some problems porting the component-package to fcp because the db-objects (i.e. TDataSet) in fpc are quite different to the delphi-objects.
Is there a newer version of them available than the version included with the newest lazarus (0.9.6) ?

P.S.: I'm totally new to lazarus... ;-)

Regards
Stevie

jesusr

  • Sr. Member
  • ****
  • Posts: 484
ZEOS LIB components ?
« Reply #19 on: March 16, 2005, 04:26:07 pm »
Quote from: "Stevie"
Hi,

I am a member of the ZeosLib-Team and I tried to port the zeosdbo (6.5.1 alpha) to lazarus/fcp.
But I have some problems porting the component-package to fcp because the db-objects (i.e. TDataSet) in fpc are quite different to the delphi-objects.
Is there a newer version of them available than the version included with the newest lazarus (0.9.6) ?

P.S.: I'm totally new to lazarus... ;-)

Regards
Stevie


I'm afraid not too much changes in TDataset.
Can you show what the differences are? what would be the solution?

Anonymous

  • Guest
ZEOS LIB components ?
« Reply #20 on: March 21, 2005, 05:10:41 pm »
Quote from: "jesusr"
I'm afraid not too much changes in TDataset.
Can you show what the differences are? what would be the solution?
Hello,
some methods are not present (Lookup, Locate), but this is no problem, because they are overwritten anyway.
But there is a serious problem in calling an inherited abstract method
which results in an compilation-error: "Abstract Methods can't be called directly" for which I do not know any solution.
Furthermore I have the error: "Procedure overloading is switched off" BUT the -SO-Switch is off!!
Is there a problem with overloading/overriding and/or abstract methods in FPC??

Regards
Stevie

jesusr

  • Sr. Member
  • ****
  • Posts: 484
ZEOS LIB components ?
« Reply #21 on: March 21, 2005, 09:32:55 pm »
Quote from: "Anonymous"
Quote from: "jesusr"
I'm afraid not too much changes in TDataset.
Can you show what the differences are? what would be the solution?
Hello,
some methods are not present (Lookup, Locate), but this is no problem, because they are overwritten anyway.
But there is a serious problem in calling an inherited abstract method
which results in an compilation-error: "Abstract Methods can't be called directly" for which I do not know any solution.
Furthermore I have the error: "Procedure overloading is switched off" BUT the -SO-Switch is off!!
Is there a problem with overloading/overriding and/or abstract methods in FPC??

Regards
Stevie


Try to use -Sd for delphi compatibility, perhaps for porting from delphi, this would be better.

if you have more abstract methods problem's, please describe which functions/procedures are failing.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
ZEOS LIB components ?
« Reply #22 on: March 22, 2005, 10:57:08 am »
afaik calling an inherited abstract method in Delphi rewsults in an EAbstract exception
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Stevie

  • New Member
  • *
  • Posts: 15
ZEOS LIB components ?
« Reply #23 on: March 22, 2005, 05:01:58 pm »
Quote from: "jesusr"
Try to use -Sd for delphi compatibility, perhaps for porting from delphi, this would be better.

if you have more abstract methods problem's, please describe which functions/procedures are failing.

I used the -Sd-Switch already!

The problem was that I did not overload a procedure that is already overloaded in the Delphi-TDataSet but not in FPC and is declared as override.

There are many differences, that are not implemented yet in the TDataSet... :(
Quote from: "Marc"
afaik calling an inherited abstract method in Delphi rewsults in an EAbstract exception

In Delphi the method that is called is not abstract, but I worked around it for now.

Ok, now it compiles and i installed the package! 8)

But when I try to open the DataSet an EVariantError raised with the message "Method Unassigned not yet supported" which is raised by the following method in dsparams.inc - i think:
Code: [Select]
constructor TParam.Create(ACollection: TCollection);
begin
  inherited Create(Collection);
  ParamType:=ptUnknown;
  DataType:=ftUnknown;
  FValue:=Unassigned;  // <---
  FNull:=True;
end;


When I try to debug my test-project, I also cannot debug into the db-sources nor into the zeos-sources...

P.S. Is works!!!  :mrgreen: (with a little modification in the variants-unit... :D)
But still, I have got a question: How must I configure the debugger to step into the units? I worked around it by putting them into my project-path... :oops:

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
ZEOS LIB components ?
« Reply #24 on: March 23, 2005, 11:45:39 am »
Variant support is not complete in FPC.
The error you get means that the implicit VarClear (when assigning unassigend) is not yet implemented. Chances are that this won't get fixed before FPC 2.0 is released, so your patches are more than welcome if you want it in the 2.0 release.
About debugging dbsources, if you have the FPC sources, you can compile a debug version with
Code: [Select]
make OPT=-g in the fcl and/or packages base dir followed by a
Code: [Select]
make install PREFIX=/your_path_to_a_location_to_install_you_debug_units in those dirs. If you place this location in your fpc.cfg before the other paths, they get used first.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Stevie

  • New Member
  • *
  • Posts: 15
ZEOS LIB components ?
« Reply #25 on: March 23, 2005, 12:12:15 pm »
Quote from: "Marc"
Variant support is not complete in FPC.
The error you get means that the implicit VarClear (when assigning unassigend) is not yet implemented. Chances are that this won't get fixed before FPC 2.0 is released, so your patches are more than welcome if you want it in the 2.0 release.

I "fixed" it as follows:
Code: [Select]
function Unassigned: Variant; // Unassigned standard constant
begin
//  NotSupported('Unassigned');
  sysvarclear(Result);
end;

Quote from: "Marc"
About debugging dbsources, if you have the FPC sources, you can compile a debug version with
Code: [Select]
make OPT=-g in the fcl and/or packages base dir followed by a
Code: [Select]
make install PREFIX=/your_path_to_a_location_to_install_you_debug_units in those dirs. If you place this location in your fpc.cfg before the other paths, they get used first.

Does this mean, I have to recompile the sources? Sorry, I am not very familiar with make an these tools... :(

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
ZEOS LIB components ?
« Reply #26 on: March 23, 2005, 07:12:51 pm »
Quote from: "Stevie"
Does this mean, I have to recompile the sources? Sorry, I am not very familiar with make an these tools... :(


Yes. By default fpc is shipped with release units without any debug info. So if you want debug info you have to make them yourself.

If you are on linux, the only thin you have to do to type the commands I gave. On win32 you have to make sure that the make shipped in your fpc\bin dir is the first in your path.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
ZEOS LIB components ?
« Reply #27 on: March 24, 2005, 04:10:42 pm »
Ok, I did as you said, but there is still the message "The file dataset.inc was not found. Do you want to locate it yourself?" But no matter if i click on Yes or No the next message is "The file <my_project_path>\dataset.inc does not exist."

I have Lazarus 0.9.6 beta (25.02.2005) on WindowsXP

Lightning

  • Sr. Member
  • ****
  • Posts: 422
ZEOS LIB components ?
« Reply #28 on: March 24, 2005, 09:48:12 pm »
Try getting the latest snapshot from http://www.ca.freepascal.org/Lazarus/
Good news :)
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

Stevie

  • New Member
  • *
  • Posts: 15
ZEOS LIB components ?
« Reply #29 on: April 04, 2005, 03:55:57 pm »
Quote from: "Lightning"
Try getting the latest snapshot from http://www.ca.freepascal.org/Lazarus/
Good news :)

Ok, I got the latest version today.
I've installed the packages but there is still the error which I mentioned above. :( Can anyone give me a detailed description, how to make my lazarus work with debug units? :roll:

Another error which i got was an access violation when setting master/detail with two TZTables. I assume an error in the TDataSet implementation but I did not look more exactly at the DB-Sources.

Another (maybe a little bit off topic) question: Will there be the TDBLookupComboBox or/and TDBLookupListBox in the LCL in future??

P.S.: Ok, search before post... :oops:
I have found this topic(http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=556&highlight=master+detail) about the master/detail problem/workaround.

 

TinyPortal © 2005-2018