X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <4070B13E.2DAAE529@yahoo.com> From: CBFalconer 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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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?