Testing the testGetXY app (AoA volume2, Chapter2), when compiling I get the error that the GetX and GetY as possible undefined ID. Checking the includes (especially console.hhf it is not there, but the gotoXY is). Version 1.59 of the HLA. Where is it?

Also when installing the v1.59, using it (or checking it with hla -?) it shows as v1.59 but the install from hlasetup of the latest version on the splash screen shows it as 1.58 and also in control panel in ADD/REMOVE it lists it as 1.58.

Also to add. The w32cons.hhf also didn't install with the latest 1.59 hlasetup.

Another edited.... while I'm at it, the older testGotoxy app listed the var x and y as uns16 and would not compile with the error type mismatch as the gotoxy() only accepted uns32 (would have to type cast or set the vars to uns32). And the newer one also fails to compile with win32cons.gotoxy as the w32cons.hhf is missing (substituted the console.hhf and console.gotoxy() to get it to work).

Edited again... all the programs from the testgotoxy down will not compile. Also the console.setOutputAttr will fail. Also the win32cons.hhf is not installed with 1.59.
Posted on 2003-12-16 11:12:16 by User
The console library was dramatically changed a few versions back to support portability with Linux. Many routines disappeared as a result. However, you can find the "win32cons" library module in the "Examples" download for HLA v1.59. This contains all the old routines. You'll need to make a few changes to your source code and include "win32cons.hhf", and link against win32cons.lib, but by doing so you'll be able to call all the old routines.
Cheers,
Randy Hyde
Posted on 2003-12-16 21:30:07 by rhyde
Got the HLA example files. And got from that the win32cons.hhf.

But v1.59 does not have a win32cons.lib and the example files do not have a win32cons.lib. So where's that file?
Posted on 2003-12-16 23:46:10 by User

Got the HLA example files. And got from that the win32cons.hhf.

But v1.59 does not have a win32cons.lib and the example files do not have a win32cons.lib. So where's that file?


try wincons.lib in the Examples directory.
You can also build the console library, as all the sources are provided in the win32console subdirectory in the Examples directory.
Cheers,
Randy Hyde
Posted on 2003-12-17 00:20:20 by rhyde
Worked fine, using the win32cons.get commands, the win32cons.hhf and creating my own lib from the examples. The only issue was the testFillRec program as it would not release (or revert to the white foreground, black background) once the app ended. It needed a win32cons.cls() to do that as the final win32cons.setOutputAttr() did not do it to anything. But even a basic cls at the command prompt will force the attributes back. The second instance of setOutputAttr() does not reset the first instance once the app terminated.
Posted on 2003-12-17 11:56:55 by User