Thread: Chicken sound

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    8

    Chicken sound

    THis program originally submitted by doubleanti does not work with Microsoft Visual C++,

    #include <dos.h>

    int main(void)
    {
    sound(7);
    delay(10000);
    nosound();
    return 0;
    }

    which are the header files to make this work besides
    stdafx.h
    iostream.h

    i would really like to make this program as a joke and is there any way you can change the 7 to something higher that we could hear. I would appreciate any input on this subject, thank you

  2. #2
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230
    You can't compile a DOS program with MSVC++. You can make console apps, yes, but not DOS programs.

    Go to borland.com and download Turbo C++ v1.0.

    Good luck

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sound lags in multi-thread version
    By VirtualAce in forum Game Programming
    Replies: 23
    Last Post: 08-27-2008, 11:54 AM
  2. Low latency sound effects
    By VirtualAce in forum Game Programming
    Replies: 0
    Last Post: 12-21-2004, 01:58 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  4. DirectSound - multiple sounds
    By Magos in forum Game Programming
    Replies: 9
    Last Post: 03-03-2004, 04:33 PM
  5. sounds?
    By BODYBUILDNERD in forum C++ Programming
    Replies: 6
    Last Post: 12-06-2002, 03:34 PM