compiled file size
-
I have a script that I have compiled on two different computers. On one the file size is 500kB, and on the other 1.23MB. Both were compiled with DEV C++. They both seem quite large given the script. Can anybody explain this. I should explain I am a beginner. The script is:- #include #include using namespace std; int GetDir(char* dPath) { WIN32_FIND_DATA FileData; HANDLE hFile; hFile = FindFirstFile(dPath,&FileData); if ( INVALID_HANDLE_VALUE == hFile ) { cout << "No files" << endl; return false; } for ( ;; ) { cout << FileData.cFileName << endl; if ( 0 == FindNextFile(hFile, &FileData ) ) break; } return true; } int main() { GetDir("*.jpg"); system("PAUSE"); return true; } Regards Paul
-
I have a script that I have compiled on two different computers. On one the file size is 500kB, and on the other 1.23MB. Both were compiled with DEV C++. They both seem quite large given the script. Can anybody explain this. I should explain I am a beginner. The script is:- #include #include using namespace std; int GetDir(char* dPath) { WIN32_FIND_DATA FileData; HANDLE hFile; hFile = FindFirstFile(dPath,&FileData); if ( INVALID_HANDLE_VALUE == hFile ) { cout << "No files" << endl; return false; } for ( ;; ) { cout << FileData.cFileName << endl; if ( 0 == FindNextFile(hFile, &FileData ) ) break; } return true; } int main() { GetDir("*.jpg"); system("PAUSE"); return true; } Regards Paul