Error In changing screen attributes?

This is a discussion on Error In changing screen attributes? within the C Programming forums, part of the General Programming Boards category; I have read the following in a bood for changing screen attributes,, but when i tried to complie ... the ...

  1. #1
    Registered User jawwadalam's Avatar
    Join Date
    May 2002
    Posts
    131

    Error In changing screen attributes?

    I have read the following in a bood for changing screen attributes,, but when i tried to complie ... the compilor generates error at line
    char far *vidmem = 0xb8000000 ;
    Can not convert unsigned long to char far*
    I am using Turbo C/C++ 3.0
    What...is this..
    One day you will ask what more important to you..
    I will say my life..
    and You will leave me with even knowing
    that
    You are my Life (L)

  2. #2
    Im back! shaik786's Avatar
    Join Date
    Jun 2002
    Location
    Bangalore, India
    Posts
    345
    Try typecasting:
    Code:
    char far *vidmem = (char far *)0xb8000000 ;

  3. #3
    Registered User jawwadalam's Avatar
    Join Date
    May 2002
    Posts
    131
    Thanx shaik that worked...
    One day you will ask what more important to you..
    I will say my life..
    and You will leave me with even knowing
    that
    You are my Life (L)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  2. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  3. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 03:41 AM
  4. Changing file attributes?
    By Unregistered in forum Windows Programming
    Replies: 2
    Last Post: 01-24-2002, 06:32 AM
  5. Changing file attributes?
    By kes103 in forum C Programming
    Replies: 3
    Last Post: 01-21-2002, 10:55 AM

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