Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
CATraxx - Updated Data Server 
Author Message
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post CATraxx - Updated Data Server

A beta of v8.30.03 is now available for download. Two changes in this update:

1. The problem with parameters passed by reference has been fixed (parameter values modified by the server not passed back to the client application).

This means that using Delphi and early binding will now work: viewtopic.php?f=46&t=10639

2. You can now choose to either connect to a running instance (of CATraxx), or start a new instance (with no visible GUI). Note that you must call the new Quit method when closing the connection to the server if you created a new instance.

Also note that if you create a new instance, the last used database is not opened automatically. You must manually set the Database property to open the database.

In Delphi, if you use early binding, use the ConnectKind property to control this (ckNewInstance, ckRunningInstance or ckRunningOrNew). You can set the AutoQuit property to automatically call Quit when you close the connection to the server.

If you use late binding, use GetActiveOleObject to connect to the running instance of CATraxx. CreateOleObject will always create a new instance.

You can download the beta version from

http://www.fnprg.com/catraxx/dl/catraxx ... _setup.exe

_________________
Fredrik Nordbakke
www.fnprg.com


Tue Sep 29, 2009 1:31 pm
Profile WWW

Joined: Thu Jul 31, 2003 8:21 pm
Posts: 1433
Post Re: CATraxx - Updated Data Server

The "new instance without GUI" setup is BRILLIANT! I can't wait to try it!

- Jeff


Tue Sep 29, 2009 11:26 pm
Profile
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: CATraxx - Updated Data Server

JSonnabend1 wrote:
The "new instance without GUI" setup is BRILLIANT! I can't wait to try it!

- Jeff


Yep, this is good news.
Now I will go back to using the TDataServer component, with which you can completely control how and when and what to connect to.
Also you have the code insight, which I know that you like.

Be aware of:

If you use late binding, you will have to change the code to use GetActiveOLEobject to connect to a running instance.
If you use the TDataServer, you will have to change some string parameters to integer.

For me, it means I'll have to release new versions, since I am using late binding in all my programs.

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Wed Sep 30, 2009 6:04 pm
Profile WWW
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: CATraxx - Updated Data Server

hamsen wrote:
JSonnabend1 wrote:
The "new instance without GUI" setup is BRILLIANT! I can't wait to try it!

- Jeff


Yep, this is good news.
Now I will go back to using the TDataServer component, with which you can completely control how and when and what to connect to.
Also you have the code insight, which I know that you like.

Be aware of:

If you use late binding, you will have to change the code to use GetActiveOLEobject to connect to a running instance.
If you use the TDataServer, you will have to change some string parameters to integer.

Which parameters?

_________________
Fredrik Nordbakke
www.fnprg.com


Wed Sep 30, 2009 8:07 pm
Profile WWW
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: CATraxx - Updated Data Server

FredrikN wrote:
hamsen wrote:
JSonnabend1 wrote:
The "new instance without GUI" setup is BRILLIANT! I can't wait to try it!

- Jeff


Yep, this is good news.
Now I will go back to using the TDataServer component, with which you can completely control how and when and what to connect to.
Also you have the code insight, which I know that you like.

Be aware of:

If you use late binding, you will have to change the code to use GetActiveOLEobject to connect to a running instance.
If you use the TDataServer, you will have to change some string parameters to integer.

Which parameters?


Sorry Fredrik.

The documentation is in accordance with the TDataServer.
I have gotten away with using string parameters with f.eks. PlayPlaylist.
I discovered it when changing to early binding.

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Thu Oct 01, 2009 7:21 am
Profile WWW

Joined: Thu Jul 31, 2003 8:21 pm
Posts: 1433
Post Re: CATraxx - Updated Data Server

What is the "TDataServer" component?

- Jeff


Thu Oct 01, 2009 2:21 pm
Profile
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: CATraxx - Updated Data Server

It's a component installed when you import the type library.
Just tick "Generate component wrappers" and it will be installed in your ActiveX palette or whatever you choose.
Now it works like any other component.

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Thu Oct 01, 2009 5:10 pm
Profile WWW

Joined: Thu Jul 31, 2003 8:21 pm
Posts: 1433
Post Re: CATraxx - Updated Data Server

Ah, I see. I never generate component wrappers. Less VCL is better, IMHO.

- Jeff


Thu Oct 01, 2009 5:28 pm
Profile
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: CATraxx - Updated Data Server

JSonnabend1 wrote:
Ah, I see. I never generate component wrappers. Less VCL is better, IMHO.


Maybe in some cases, but not in this one.

Drop the component.
Give it a name.

Then use Name.Connect and you are connected.

Compared to your code, this seems a lot simpler (and it works!)

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Thu Oct 01, 2009 6:27 pm
Profile WWW

Joined: Thu Jul 31, 2003 8:21 pm
Posts: 1433
Post Re: CATraxx - Updated Data Server

Unless of course you are using a library approach, which I am. Should I include a form in my library just to include the VCL component?

Delphi takes the "drop a component and code" approach to extremes, in my opinion.


Fri Oct 02, 2009 3:20 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 19 posts ]  Go to page 1, 2  Next

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.