Results 1 to 5 of 5
  1. #1
    🏆🏆🏆🏆🏆 ElNono's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Apr 2007
    Post Count
    152,631
    I think it was yesterday?

    Here's the source code for Windows 95 to celebrate:

    #‎include‬ <windows.h>
    #include <system_errors.h>
    #include <stdlib.h>
    char make_prog_look_big[1600000];

    main(){if (detect_cache())disable_cache();

    if (fast_cpu())
    set_wait_states(lots);

    set_mouse(speed, very_slow);
    set_mouse(action, jumpy);
    set_mouse(reaction, sometimes);

    printf(”Welcome to Windoze 3.999 (we might get it right \
    or just call it Chicargo)\n”);

    if (system_ok())
    crash(to_dos_prompt);
    else
    system_memory = open(”a:\swp0001.swp”, O_CREATE);

    while(1) {
    sleep(5);
    get_user_input();
    sleep(5);
    act_on_user_input();
    sleep(5);
    if (rand() < 0.9)
    crash(complete_system);
    }
    return(unrecoverable_system);

    }

  2. #2
    Take the fcking keys away baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    93,371
    I thought that was the src for Windows 98. I like using 8 for an error code and then the variable D so in C, C++, Java, etc I can write

    Code:
    if (8==D) {
       error("you're  ed tbh\n");
    }

  3. #3
    Take the fcking keys away baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    93,371
    Can't believe Windows 95 wasn't written with the Win32 API and all that ed up Hungarian notation tbh.

    Code:
    INT nIndex;
    
    /*
      ...
      ...
      ...
    
    
      ...
    */
    
    
    LRESULT CALLBACK WndProc(LPCSTR lpszErrMsg, INT nErrcode)
    {
       for (nIndex=1; nIndex <= 1<<31; nIndex++) {
          printf("  crashed with error %s son\n", *lpszErrMsg);
       }
       return BlueScreen(nErrcode);
    }
    Last edited by baseline bum; 09-14-2014 at 12:16 PM.

  4. #4
    🏆🏆🏆🏆🏆 ElNono's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Apr 2007
    Post Count
    152,631

  5. #5
    Veteran
    My Team
    San Antonio Spurs
    Join Date
    May 2008
    Post Count
    18,121
    I've never met a happy programmer tbh.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •