delorie.com/archives/browse.cgi | search |
From: | "Dustin" <dustin AT rockhill DOT org> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Large Executables |
Lines: | 59 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
Message-ID: | <tyu%5.12921$sw.1013650@nntp2.onemain.com> |
Date: | Mon, 18 Dec 2000 15:35:35 -0500 |
NNTP-Posting-Host: | 208.32.31.23 |
X-Complaints-To: | abuse AT onemain DOT com |
X-Trace: | nntp2.onemain.com 977171737 208.32.31.23 (Mon, 18 Dec 2000 15:35:37 EST) |
NNTP-Posting-Date: | Mon, 18 Dec 2000 15:35:37 EST |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hello, I am having a problem with my .exe files created by djgpp being really large. Here is an example at the end of the message.. This source file, when compiled, creates and exe file that is about 321kb... Does anyone know how to make it smaller?? Dustin #include <iostream> #include <cstdlib> int main(){ int a=0; cout << endl << "M e n u"; cout << endl << "1: Disable"; cout << endl << "2: Enable"; cout << endl << ":: "; temp: try{ cin >> a; if(a<1) throw a; if(a>2) throw a; } catch(int b) { cout << endl << "Invalid input"; cout << endl << "Must be either 1 or 2"; cout << endl << ":: "; goto temp; } switch(a){ case 1: system("REG -Quiet -AddKey \\HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"); system("REG -Quiet -Set REG_DWORD \\HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\NoDi spCPL=1"); system("REG -Quiet -Set REG_DWORD \\HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\No SaveSettings=1"); system("REG -Quiet -Set REG_DWORD \\HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Network\\NoN etSetup=1"); system("REG -Quiet -Set REG_DWORD \\HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\No Printers=1"); break; m
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |