|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Can anyone hlelp??~~
Hello, --- warpedminds <warpedminds@btinternet.com> wrote: > Also the line unsigned int *clock = (unsigned int > *)0x000046CL; // pointer > to clock was initially > unsigned int far *clock = (unsigned int far > *)0x000046CL; // pointer to > clock You can not just remove the far keyword as the far is a predefined address used with the graph.h file (an old 16 bit dos supported library that went away after visual studio 5.0) The reason you got the error at runtime was because the pointer was probably pointing at a NULL value because you deleted far. If you are going to use far, then make sure you include graph.h (I am assuming you are compiling under windows with visual studio) what version of visual studio are you using? Visual studio 5.0 had graph.h and graph.c, but they threw it out with the 32 bit compiler version MSVS 6.0. You can try three things, use the obsolete keywords try including WINDEF.H, or try to get graph.h & graph.c, or just use the system time to seed your random number generater, like srand((unsigned)TIME(NULL)), which will use your system time to seed the value for rand() function. Remember to include <time.h> if you use this. I am looking for the graph.h graph.c files also for my own use, if you come across them please let me know. -dragold > > but I got the errors:- > Guess.c(22) : error C4226: nonstandard extension > used : 'far' is an obsolete > keyword > Guess.c(22) : error C4226: nonstandard extension > used : 'far' is an obsolete > keyword > > again this was after I took out graph.h, do think > this is related? > > ================================================================= > The GameProgrammer.Com mailing list is for the open > discussion > of any topic related to the art, science, and > business of > programming games. This list is especially tolerant > of beginners. > We were all beginners once > > To SUBSCRIBE or UNSUBSCRIBE please visit: > http://gameprogrammer.com/mailinglist.html > __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|