Greetings all....
I'm working on a "Whereisit" clone and this is probobly just a blunder of mine, but I can't find the cause!!
when i use this code
(can't remember why I do DiskSize(i+1)
I get the disk_size on my C: to be -11447500080 How can this be? I have a 4gb hdd partitioned to c: -> 3gb and d: -> 1gb, d: though this should not be a problem! D: comes out fine and shows 905 mb! I know this could should work beacuse I've used it before, perhaps made something wrong when I wrote it again... but I just can't find it!! My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
I'm working on a "Whereisit" clone and this is probobly just a blunder of mine, but I can't find the cause!!
when i use this code
Code:
static char * Drive_Letter[]=
{ // Drive letters
"A:\\","B:\\","C:\\","D:\\","E:\\","F:\\",
"G:\\","H:\\","I:\\","J:\\","K:\\","L:\\",
"M:\\","N:\\","O:\\","P:\\","Q:\\","R:\\",
"S:\\","T:\\","U:\\","V:\\","W:\\","X:\\",
"Y:\\","Z:\\"
};
for( int i = 0 ; i<26 ; i++ )
{
int disk_size = 0;
disk_size = DiskSize(i+1);
}
I get the disk_size on my C: to be -11447500080 How can this be? I have a 4gb hdd partitioned to c: -> 3gb and d: -> 1gb, d: though this should not be a problem! D: comes out fine and shows 905 mb! I know this could should work beacuse I've used it before, perhaps made something wrong when I wrote it again... but I just can't find it!! My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work