|
Bay Six Software Beyond the Basics
|
View previous topic :: View next topic |
Author |
Message |
carlo Guest
|
Posted: May 30th, 2007, 11:03am Post subject: info on WMLiberty |
|
|
Dear Brent :
is there any limit to the number of messages WMLiberty may process? Or, in other words, may I use it any time I need in my software?
Secondly, is there any advantage to replace native command "trapclose" with WMLiberty-based code to detect window closing?
Thanks Carlo |
|
Back to top |
|
|
Brent Site Admin
Joined: 01 Jul 2005 Posts: 800
|
Posted: May 30th, 2007, 8:50pm Post subject: Re: info on WMLiberty |
|
|
Hello Carlo,
1. There is no arbitrary limit to the number of messages WMLiberty can trap. It stores its information in a linked list, a completely dynamic data structure.
2. Generally there is no advantage to superseding LB's native event trapping. In some cases, WMLiberty has been claimed to be more responsive. However, any time you use WMLiberty, you make your program substantially more difficult to debug. Personally, I would not do it unless I deemed it absolutely necessary. _________________ Brent |
|
Back to top |
|
|
carlo Guest
|
Posted: May 31st, 2007, 7:12am Post subject: Re: info on WMLiberty |
|
|
Hi Brent :
thanks so much for your reply.
May I ask you advise on another topic?
On your experience - I am a chemist, with not so much experience in computing science - will you see advantage, in large programs, moving from LB to PowerBasic to gain speed and flexibility (e.g. the possibility of declaring all variabled to fing out typing errors?
I am involved in a quite complex chemical project, my code is reaching 18000 lines, I have to heavily rely on API's and WMLiberty. Since LB5 is apparently not on sight, I am considering porting this big project to PB, but I am quite scared of the problems invoved. I am completely satisfied with LB, but I fear I am stretchin gLB4 to its limits.
Thanks again
Carlo |
|
Back to top |
|
|
Brent Site Admin
Joined: 01 Jul 2005 Posts: 800
|
Posted: Jun 2nd, 2007, 2:29am Post subject: Re: info on WMLiberty |
|
|
Hi Carlo,
I hear that PB is an excellent product, but maybe a little overpriced. I have never used the version for Windows, just the versions for DOS many years ago.
PB has a steeper learning curve compared to LB. From code I've seen, GUIs are created and handled in ways that resemble C code. Low-level code such as this is generally faster than LB's high-level functionality.
Keep in mind these adages: Though a language may be "slow," it is possible to write some very fast code if you know what you are doing. If you do not know what you are doing in a "fast" language, you can produce some very slow code. _________________ Brent |
|
Back to top |
|
|
carlo Guest
|
Posted: Jun 2nd, 2007, 8:14am Post subject: Re: info on WMLiberty |
|
|
Thanks so much!
By the way, I saw your code for using Winsock, I'm considering to add some extra code to my software to control instrumentation over the Internet. I'll keep you informed if I'll start this project.
Thnaks again, you are doing a great job for LB community!
Yours Carlo |
|
Back to top |
|
|
|
|
|
|
|
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 vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
|