Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. compiled file size

compiled file size

Scheduled Pinned Locked Moved C / C++ / MFC
c++toolslearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stirfie
    wrote on last edited by
    #1

    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

    T 1 Reply Last reply
    0
    • S Stirfie

      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

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      don't you compile one in release mode and the other in debug mode ?


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups