delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/18/12:46:08

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++, fonts and Allegro
Date: Tue, 18 Apr 2000 16:49:49 GMT
Organization: always disorganized
Lines: 21
Message-ID: <38fc9217.24954571@news.freeserve.net>
References: <8dfmoo$1ga6$1 AT gavrilo DOT mtu DOT ru> <01bfa97e$5465e2c0$e5247d81 AT default> <8dhvs4$kv0$5 AT gavrilo DOT mtu DOT ru>
NNTP-Posting-Host: modem-183.mississippi.dialup.pol.co.uk
X-Trace: newsg4.svr.pol.co.uk 956076590 14625 62.137.75.183 (18 Apr 2000 16:49:50 GMT)
NNTP-Posting-Date: 18 Apr 2000 16:49:50 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Al Amzeen (Alexandr Amzin) wrote:

>Thanks for diagnostic, guys, but...how can I cure that hmmm disease? :)

Just don't use C++. :-)

>Is there a way to convert it?

Oh, well, if you really must, I think you'll have to do it by hand.
At least, I don't know of any tool that converts C to C++.

In your case, it looks like you just need a few typecasts, such as
(struct FONT*), to stop the C++ compiler complaining about implicit
conversion from void*.

Another problem that can exist is use of symbols like "new" and
"class", which have special meanings in C++ but can be used for
anything in C.  I don't think your program has any of these, but
if it does then you'll need to change them to something else.

S.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019