Results 1 to 5 of 5

Thread: Logfont

  1. #1

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Logfont

    how come when i do this:

    Code:
    char *facename = "Arial";
    
          LOGFONT lf;
          lf.FaceName = facename;
    it gives me an error..
    thanks
    Amon Ra
    The Power of Learning.

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    What error are you getting?
    Baaaaaaaaah

  3. #3

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500
    stuff similar to this

    cannot convert from 'char [6]' to 'char [32]'
    Amon Ra
    The Power of Learning.

  4. #4
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    does it give you that error when you declare the char or when you try to set the FaceName to "facename"(Arial)?
    Baaaaaaaaah

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    use strcpy
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width