Thread: Mud Server
View Single Post
Old 12-30-2004, 08:00 AM   #2
Yui Unifex
Senior Member
 
Join Date: Apr 2002
Location: Florida
Posts: 323
Yui Unifex is on a distinguished road
Send a message via ICQ to Yui Unifex Send a message via AIM to Yui Unifex
Question

However, the compiler gives me a warning that I am forcing the value to true or false from an int.[/quote]
Microsoft had this particular kick for representing boolean values as 0 and -1, and they commonly stored booleans in ints. I think changing your code to: flags.indoors = variant.m_boolVal ? true : false; should do the trick if the value contains what I think it does. Besides, have you tried printing the value to see what you get, or looking at the documentation to see what type it is?

The former is a NETBIOS machine name, the latter is your fully qualified hostname. The former is used on your LAN only, while the rest of the internet talks to you using the latter.

Yes, but you don't want to do it. At the application level, particularly for a game, it is wholly unnecessary. We have these things called IP addresses that we use to address machines and networks. MAC addresses are not magic values that can't be changed -- if you're thinking of using them as a security measure, forget it.
Yui Unifex is offline   Reply With Quote