[fpc-pascal] Suggested bug fix.

2005-11-01 Thread Lowell C. Savage
e drawn fonts. The original line (at least in V. 2.0.0) had just the default values and "_MOVE" was before "_DRAW" so that "_MOVE" was 2 and "_DRAW" was 3. When I made this change, my program went from displaying nothing to displaying the proper

[fpc-pascal] Re: Turbo Pascal/legacy data file issue.

2005-09-20 Thread Lowell C. Savage
as doubles (native on x86 platform). Thanks, Lowell Florian Klaempfl <[EMAIL PROTECTED]> wrote, in part: Lowell C. Savage wrote: > Has anyone come up with a set of routines for converting between Turbo > Pascal's 6-byte "real" format and FPC's real number format?

[fpc-pascal] Re: Turbo Pascal/legacy data file issue.

2005-09-19 Thread Lowell C. Savage
Well, I found a "Real2Double" function in the System unit that converts from an old TP 6-byte "real" to an 8-byte double. (Guess I should have looked a little harder, there.) But I'm not seeing anything going the other way. Anyone? Thanks, Lowell At 12:56 PM

[fpc-pascal] Turbo Pascal/legacy data file issue.

2005-09-19 Thread Lowell C. Savage
{$PACKRECORDS 1} {$ENDIF} type realrec = record t1 : real; t2 : real; end; var realfile : file of realrec; r : realrec; begin r.t1 := 1.0; r.t2 := 2.0; assign ( realfile, 'c:\r.rfl' ); rewrite ( realfile ); write ( realfile, r ); cl

[fpc-pascal] Re: KeyPressed

2005-08-29 Thread Lowell C. Savage
lve most of the problems. The other part (Crt accessing console independently of the Video unit) isn't good design, but shouldn't be causing your problems. Lowell C. Savage [EMAIL PROTECTED] 505-667-6964 (office/msg) 360-961-8965 (cell/msg)

[fpc-pascal] Re: KeyPressed

2005-08-23 Thread Lowell C. Savage
ince the units must still be USES'd, and thus the init code that hooks input/output are run. Lowell C. Savage [EMAIL PROTECTED] 505-667-6964 (office/msg) 360-961-8965 (cell/msg) 505-667-4341 (shared fax) ___ fpc-pascal maillist - fpc-pasca

[fpc-pascal] Re: KeyPressed

2005-08-22 Thread Lowell C. Savage
other languages commented out.) I'm using: CRT, IO, DOS, Video, Printer, Graph, and Drivers. It's only one or two modules that need Video, Printer, Graph and Drivers (not necessarily the same ones). But, of course when it all gets linked together, you only need one reference to ca

[fpc-pascal] KeyPressed.

2005-08-19 Thread Lowell C. Savage
t;ReadKey" calls with "CheckKey" and "GetKey" calls respectively which, in turn, respectively call the C standard library functions "_kbhit" and "getch". But if there is a simple fix to the KeyPressed issue, then my IO.pp unit can simply have an implemen

Re: [fpc-pascal] Linking Pascal code to C/C++ static libraries under Windows

2005-08-18 Thread Lowell C. Savage
I'd expect OpenWatcom Linker to be able to do it)... Tomas Lowell C. Savage [EMAIL PROTECTED] 505-667-6964 (office/msg) 360-961-8965 (cell/msg) 505-667-4341 (shared fax) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists

Re: [fpc-pascal] Linking Pascal code to C/C++ static libraries under Windows

2005-08-17 Thread Lowell C. Savage
de. Any thoughts? It sounds like there are a few people on this list who have some experience with Delphi. Would I be able to compile my TP code (with perhaps minor mods) and link it to Win32 static libraries for which I only have the compiled libraries and header files? Thanks! Lowell C

[fpc-pascal] Linking Pascal code to C/C++ static libraries under Windows.

2005-08-16 Thread Lowell C. Savage
t the linker to see the "Interface.lib" files that contain them. I've tried setting up my wrapper module as a DLL but haven't had much luck there (I suspect the problem is that I'm not correctly creating the DLL in the first place since I