Thread: ? to convert a C file to a (*.scr) file

  1. #1
    Registered User
    Join Date
    Mar 2004

    ? to convert a C file to a (*.scr) file

    Can anyone tell me how to convert a C file that is compiled
    by a TurboC++ 3.0 compiler to a (.scr) file so that it can
    be run on windows platform.

    Merely renaming the executable file(*.exe run by TurboC++ compiler) to a (.scr) will not do.

    The file accepts the renaming as (*.scr) but the windows does not
    show it in the windows screen saver setting options.

    If we use VC++ we cannot open the <graphics.h> file as my
    C program includes that file.

    I know how to make a screen saver file in VC++.
    Thanks in advance!

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Try the Windows Programming Forum. Actually, this thread will likely just get moved there by a moderator soon, so don't bother posting the same thing there.

    You could always Google for it. You'll get this link as your first hit.

    [edit]Fixed link.[/edit]
    Last edited by quzah; 03-02-2004 at 09:20 AM.
    Hope is the first step on the road to disappointment.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    > I know how to make a screen saver file in VC++.
    Stick with VC++ or some other compiler capable of generating win32 executable files.

    > If we use VC++ we cannot open the <graphics.h> file
    No, you have to use the equivalent win32 graphics calls in windows.h etc.
    It's called "porting" your code from one platform to another.

    Something like this for example
    void dos_draw_line ( int x, int y ) {
        win32_draw_line( x, y );
    dos_draw_line() being an existing function in graphics.h which you use. You now write your own (as above) to use the win32 API.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  2. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  3. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. File I/O convert
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 10-03-2001, 08:10 AM