Mail Archives: djgpp/2000/04/18/14:16:07
Greetings, Steamer <dontmailme AT iname DOT com>! 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. :)
- Raw text -