error: invalid conversion from ‘void*’ to ‘HFONT__*’

It is a common error when you write or read the C source code.

I might encounter when I compile with code::blocks one C file.

You won’t get that error if you compile as C file. But you got the next error if you compile like a C++ program.

So, you need to make an explicit typecast, like below:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.