| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| Message-ID: | <4070B13E.2DAAE529@yahoo.com> |
| From: | CBFalconer <cbfalconer AT yahoo DOT com> |
| Organization: | Ched Research |
| X-Mailer: | Mozilla 4.75 [en] (Win98; U) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Help with GRX GrLineOption |
| References: | <b687bbff DOT 0404041302 DOT 5f38f97a AT posting DOT google DOT com> |
| Lines: | 28 |
| Date: | Mon, 05 Apr 2004 01:19:32 GMT |
| NNTP-Posting-Host: | 12.76.139.161 |
| X-Complaints-To: | abuse AT worldnet DOT att DOT net |
| X-Trace: | bgtnsc05-news.ops.worldnet.att.net 1081127972 12.76.139.161 (Mon, 05 Apr 2004 01:19:32 GMT) |
| NNTP-Posting-Date: | Mon, 05 Apr 2004 01:19:32 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Chris wrote:
>
> What is the proper way to use the GrLineOption?
> Snippet of GrTest.cc
>
> GrLineOption opt = {GrWHite(), 1, 2, "\x06\x04"};
>
> results in:
>
> "Invalid conversion from 'const char*' to 'unsigned char *'."
>
> I've mucked around with it for a while to no avail. Any ideas?
> As far as I know, I'm using the latest and greatest versions.
It apparently needs a modifiable string. So:
char foo[] = "\x06\x04";
GrLineOption opt = {GrWHite(), 1, 2, foo};
but beware the lifespan of foo. Maybe make it static. Depends.
I suspect the definition of GrLineOption is buggy.
--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |