Re: ow to prevent macro expansion in C/C++?



Flash Gordon wrote:
3mwn8tbfrd19ph0@xxxxxxxxxxxxx wrote:

I am writing codes in windows and Unicode. The windows header
file defines CreateFont into CreateFontW. I am using a class
which has a function CreateFile. So when compiling, I got error
that the CreateFontW is not a member of the class.

What should I do?

You should learn that C and C++ are different languages which is
why there is also a group comp.lang.c++. C does not have classes,
so if you are getting errors about something not being a member
of a class you are almost certainly not using C.

Also, I strongly suspect that the things you are talking about
are Windows specific (I happen to know that Windows has a
CreateFile function) so you actually need to ask in a Windows
group where you will find a lot more Windows experts.

In fact, CreateFont and CreateFontW do not exist in the standard C
language, and thus are entirely off-topic in this newsgroup. If
you are willing to put up with the non-standard Windows system, you
should ask your questions in a Windows newsgroup.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.

** Posted from http://www.teranews.com **
.



Relevant Pages

  • Re: ow to prevent macro expansion in C/C++?
    ... which has a function CreateFile. ... that the CreateFontW is not a member of the class. ... are Windows specific (I happen to know that Windows has a ... should ask your questions in a Windows newsgroup. ...
    (comp.lang.c)
  • Re: ow to prevent macro expansion in C/C++?
    ... which has a function CreateFile. ... that the CreateFontW is not a member of the class. ... are Windows specific (I happen to know that Windows has a ... Chuck is scraping the bottom of the barrel to find things he is ...
    (comp.lang.c)
  • Re: ow to prevent macro expansion in C/C++?
    ... function CreateFile. ... CreateFontW is not a member of the class. ... I strongly suspect that the things you are talking about are Windows specific so you actually need to ask in a Windows group where you will find a lot more Windows experts. ...
    (comp.lang.c)
  • ow to prevent macro expansion in C/C++?
    ... I am writing codes in windows and Unicode. ... The windows header file ... function CreateFile. ... CreateFontW is not a member of the class. ...
    (comp.lang.c)