From: "Al Amzeen (Alexandr Amzin)" Newsgroups: comp.os.msdos.djgpp Subject: Re: C++, fonts and Allegro Date: Tue, 18 Apr 2000 22:08:26 +0400 Organization: Fidolook Express page http://fidolook.da.ru Lines: 30 Message-ID: <8di8h7$uto$2@gavrilo.mtu.ru> References: <8dfmoo$1ga6$1 AT gavrilo DOT mtu DOT ru> <01bfa97e$5465e2c0$e5247d81 AT default> <8dhvs4$kv0$5 AT gavrilo DOT mtu DOT ru> <38fc9217 DOT 24954571 AT news DOT freeserve DOT net> NNTP-Posting-Host: ppp100-128.dialup.mtu-net.ru X-Trace: gavrilo.mtu.ru 956081512 31672 212.188.100.128 (18 Apr 2000 18:11:52 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 18 Apr 2000 18:11:52 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Fidolook Express V1.51rus for MS OE 5.0 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Greetings, Steamer ! You wrote: > >Thanks for diagnostic, guys, but...how can I cure that hmmm disease? :) > Just don't use C++. :-) Really so simple? ;) > >Is there a way to convert it? > Oh, well, if you really must, I think you'll have to do it by hand. Yes, I relly have to. But...to change library function in sources?! :) I tried now, but it crashes and crashes (maybe I am not strong one in other authors' source corrects). > At least, I don't know of any tool that converts C to C++. Me too. :( > 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*. I got a workaround of problem by redeclaration of font strictly as default one was declared in library. But...it is not a straight, light and beautiful way :(. > 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. No, it seems there is no such a problem in my case. :)