Re: Drawing in Pro*c???
Date: 21 Sep 1994 15:50:51 +1000
Message-ID: <35ohjr$1q1_at_cougar.vut.edu.au>
Alvin W. Law (alaw_at_oracle.com) wrote:
: In article <35as5k$ibt_at_cougar.vut.edu.au> leng_at_cougar.vut.edu.au (Leng Kaing) writes:
: If you can code it in C, sure you can do so in Pro*C. The
Thanks for that info, Alvin.
Ok, on a related topic: can I use structures in Pro*C? I've started
writing a program that uses structures, but it gives me compilation
error. Here's the declaration:
The error occurs at the instant the structure pnt is declared. Could
you possibly tell me what's wrong. And what restrictions Pro*C has
: pre-compiler function of Pro*C only deals with database accesses.
: Once you fetch your data from the database, how you use the data is
: bound only by your imagination and coding skills.
struct pnt {int x,y;};
struct lne {struct pnt p1, p2;};
void dplay(struct pnt pArray[],int index, char statusBar[]);
And in the main, some more declarations:
struct pnt p;
struct pnt pArray[Nmax];
Compilation error:
"protest.c", line 179: syntax error at or near word "struct"
*** Error code 1
make: fatal error: Command failed for target 'protest'
Please shed some light on this matter.
Thanx.
Leng.