home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.palmtops
- Path: sparky!uunet!timbuk.cray.com!hemlock.cray.com!mpj
- From: mpj@hemlock.cray.com (Marvin P. Johnson)
- Subject: JGRAPH use with PCC / Turbo C ?
- Message-ID: <1992Jul31.041604.25023@hemlock.cray.com>
- Originator: mpj@hemlock
- Keywords: jgraph, pcc, turboc
- Lines: 45
- Sender: mpj@hemlock (M. P. Johnson)
- Organization: Cray Research, France.
- Date: 31 Jul 92 04:16:03 CDT
-
-
- Hi everyone, greeting from Paris (France, not Texas!)
-
- I tried Mark DeSmet's PCC compiler V1.2C on the 95LX. It's really
- a *nice* package, and comes with an assembler, PCCA.
- I have been trying to access the 95's graphics routines in ROM
- (JGRAPH.H, JGRAPH.ASM) for use with PCC but haven't so far been
- successful. The problem is that I can't convert the JGRAPH.* files
- to a form acceptable to the PCC programs.
- I'd be interested in hearing if anyone has managed this with PCC.
- ----
- I have also tried Turbo C on an AT, and tried to compile the following
- program:
-
- #include <stdio.h>
- #include "jgraph.h"
- main()
- {
- G_Mode(G_GRAPHICS);
- G_Rect(100,100,G_OUTLINE);
- getchar();
- G_Mode(G_ALPHA);
- }
-
- I used A86.COM to assemble JGRAPH.ASM ( I believe A86 creates Turbo C
- compatible object modules but this may be untrue (?) ) and used CSVC.OBJ
- and the special CRT0.OBJ (C0S.OBJ) file. (Also small-model code, no graphics
- library included, etc - as suggested in the file turboc.doc available via ftp)
-
- However, I've never been able to get the above code to link successfully.
- Seems like there are problems with underscores (like _G_Mode) or something.
- Should I be using "void" or something else ?
- I suspect it's because my JGRAPH.OBJ file is not correct, but I don't have
- the Microsoft assembler MASM available to create a JGRAPH.OBJ. I'll have to
- recheck the A86 documentation...
-
- Anyway, I would welcome any suggestions/ideas on this. By the way, I got
- SMHELLO to compile and run OK on the HP95 via Turbo C, I just can't get the
- graphics stuff!
-
- Thanks for your comments, and happy palmtopping,
-
- Regards,
-
- Marvin.
-