Hi Verne,
> an update and some more questions
> The W0027 Logical warning went away .?? for now anyway :)
>
> Adding the hbblink.hbc resolved the Blinker SwapRun call error and the
> old code ran correctly with no changes needed. (optimize it later as
> suggested by Przemek )
There are several ways to do this. SwpRunCmd() and hb_Run() do it
identically. Then there is the Windows specific wapi_ShellExecute()
which I use most of the time, and probably one or two other options that
I can't remember off the top of my head. The choice depends on how you
want the OS to behave, among other things.
> mem file vars: I shortened the variables in the code to less than 10
> characters so the ,mem files work correctly (and todo notes to change
> to hbv files)
OK
> I started using hb30 hbide but haven't figured out ound how to get the
> help panel to show the documentation.. BTW.. hbide wasn't in the
> hb32 nightly
> If I get that working maybe I won't have to bother you so much :)
I noticed that Pritpal jumped in and told you how to use it, but I
believe he forgot to mention where to go to find it. Here it is:
http://sourceforge.net/projects/qtcontribs/
But you have to be aware of the fact that the docs in the .hbd files
(and the .txt files in the same directory) are old, outdated and
incomplete. The biggest problem the Harbour community has is that nobody
has had the time to write any new docs in many years. José started a
documenting project a couple of weeks ago. I can only hope that he comes
out of it alive at the other end :-) because it is a huge project.
One place to go online to read the same docs as the ones in the Harbour
tree plus a list of all existing function names, etc, is at Giovanni's
site (to just mention one of several similar alternatives):
http://www.elektrosoft.it/tutorials.asp
> Is there any reason you might expect different numeric calculation
> results in Harbour than in a Win XP Clipper 5.3b installation ?
> I'm getting differences in the 4th and 5th decimal places after only a
> few iterations.
The most complicated numerical calculations I do is adding VAT to
invoice totals :-), so I never see more than two decimals. I don't know
enough about floating point calculations to give you a technical
explanation, but I would expect Harbour to be more reliable. Przemek is
your guy ...
> The software models a building and calculates heat transfer between the
> rooms in the building.
> It loads all the building configuration data from the databases into a 6
> or 7 level array matrix and then calculates the room temperatures
> as time passes. It uses decimal second intervals over a specified period
> of hours or days so a calculation differences in a few iterations is
> serious.
> I have a set of benchmark projects used to verify correct results on a
> new installation
>
> I'm thinking of differences like the old numeric processor floating
> point problem Delving into the calculation codeblocks could be murder
>
> Any ideas
Not really, except that floating point math is very different from
calculating real numbers and that the result will vary between serial
calculations using/not using intermediate values, for example.
I found a discussion at Stack Overflow about differences between MinGW
and VS C++ with a couple of guesses why it might be like that. There the
difference showed up in the 14th decimal, and I suppose that after a few
iterations of the same precision difference it will move up to more
significant decimal places. Anyway, here it is:
http://stackoverflow.com/questions/13447444/what-difference-between-vs-c-and-mingw-to-implement-double-type
Regards,
Klas