I got 1 error!!

This is a discussion on I got 1 error!! within the Windows Programming forums, part of the Platform Specific Boards category; Doh - we make a good double act...

  1. #16
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Doh - we make a good double act

  2. #17
    BubbleMan
    Guest

    Post That ended ^ with:

    That gave me:

    80 book_windows.cpp
    initialization to `char' from `const char *' lacks a cast

    81 book_windows.cpp
    passing `char' to argument 1 of `strlen(const char *)' lacks a cast

    81 book_windows.cpp
    passing `char' to argument 4 of `TextOutA(HDC__ *, int, int, const CHAR *, int)' lacks a cast

  3. #18
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    haha this is kinda funny. but your answers are as good as mine.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  4. #19
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    ok i got it this should do it,

    HDC hDC = GetDC(hwnd);

    char f_name[] = "Matt";
    TextOut(hDC, 10, 10, f_name, strlen(f_name));
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  5. #20
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Great minds think alike

    Anyway screw this - I'm going back to General Disussions

    Later

  6. #21
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    tis true, later
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  7. #22
    BubbleMan
    Guest

    Post Read..

    Thanks for all the help. The last one worked!! Thanks so much!!

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 09:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 10:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 02:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21