Windows Is Being Bad

Discussion about everything. New games, 3d math, development tips...
Post Reply
jf03cg
Posts: 14
Joined: Sun Apr 24, 2005 12:12 am
Location: Ontario, Canada
Contact:

Windows Is Being Bad

Post by jf03cg »

Hello, I have a really odd scenario here , ...

When I attempt to run my program in the folder that I originally coded it in
say C:\123, the following line of code

FILE *fp = fopen("file.123","w");

Returns a NULL pointer, ... That is fine, but say I go into the root directory and rename the folder 123 to 321 and then run the same program (without re-compiling it) the program works!

WTF Could this be?

I have tried renaming the directory and then renaming it back but it does not work?

Any suggestions ...

PS: This is the only forum where I could see this post belonging, if it does not belong here, then I apologize...
There is no such thing as a stupid question, ...
There are quite inquisitive idiots however...
Nobody

Post by Nobody »

Just Windows acting up I guess... do you really need the *.123 extension?
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Post by katoun »

Read the article who know maby that the ansuer for that:http://www.gamedev.net/reference/articl ... le2091.asp
Kat'Oun
Guest

Post by Guest »

Windows has always been a bad naughty girl, as a rule of heardt, never use strange names in folders (like all numbers) and in files (like odd numeric extensions, or <4 digits for the extension)
In Linux is fine to do strange things, but windows bails out for very very small ones...
Take for example the apache server, in linux, the .htdocs work fine, but in windows they wont work, why? because there cant be files without extension (although in this case, the .htdocs is just a hidden file)

Stick to what billy boy expects you to, and youll do just fine

cheers dude
Post Reply