sizeof(HANDLE ) is (so far always) the same as sizeof(void *), so a HANDLE in a 64 bit program is 64 bits not 32.
sizeof(HANDLE ) is (so far always) the same as sizeof(void *), so a HANDLE in a 64 bit program is 64 bits not 32.
You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.
This is something I had saved in my hardrive cpp reference code directory, I forgot where it came from. No windows code even needed.
I guess you can save all the names of files as variables and if the file does not have an extension then it is a directory and just use recursion and the loop again untill it has gone through all the subdirectories.Code:#include <iostream> #include <dirent.h> int main() { std::string path = "./"; DIR *d = opendir(path.c_str()); struct dirent *dir; if(d) { while ((dir = readdir(d)) != NULL) { std::cout << dir->d_name << std::endl; } closedir(d); } std::cin.get(); return 0; }
Last edited by newtocpp; 11-14-2006 at 03:19 AM.
What's the difference between int and int32? They're both 32 bits (4 bytes).int, int32
"The Internet treats censorship as damage and routes around it." - John Gilmore
size of int depends of the compiler (and may - on target system)
size of int32 - always 32 bit
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
I will probably never use a 16bit compiler, so... there's no real difference to most of us. Unless int is defined as 64bit.
"The Internet treats censorship as damage and routes around it." - John Gilmore
64bit compilers are available
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
Or you might run a quick VB app to test some C++ COM code, (both written using the same IDE) and expect an int to hold the same magnitude in both......oopsOriginally Posted by maxorator
Point is, the size of an int is not a constant.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill