View Single Post
  #25  
Old February 24th, 2004, 09:31 PM
Arryn's Avatar

Arryn Arryn is offline
Major General
 
Join Date: Jan 2004
Location: twilight zone
Posts: 2,247
Thanks: 0
Thanked 0 Times in 0 Posts
Arryn is on a distinguished road
Default Re: JAVA programmer? (and Win-DomMap, and some GIMP)

Quote:
Originally posted by E. Albright:
quote:
You mean I only have to change the fopen() calls and it will work on Windows?
Well, I had to change random/srandom to rand/srand, and maybe tweak a few other things (and I don't know, and can't currently test, if my port functions correctly, but it seems to do so), but yeah, there wasn't much to change.

[Edit: And per Leif_-'s suggestion, I changed the fopen().]

The variable "near" is also a (obsolete) reserved word and I had to change that (to "nearby" ). The only thing blocking my compile at present is a missing def for "M_PI". Of course, I presume this is related to the value of Pi, but I don't know what the "M" is supposed to imply.

Once I have the console port in Windows compiled and working okay, then I can begin the "fun" task of rebuilding the app as a native Windows MFC app, with GUI and all the other niceties. Well, that's the plan, FWIW.
__________________
Visit my Dominions II site
Reply With Quote