Link to home
Start Free TrialLog in
Avatar of Sankar030999
Sankar030999

asked on

need to create a screen saver

i want to create a screen saver (.scr file) from a C file. how can this be done?
Avatar of KangaRoo
KangaRoo

ASKER CERTIFIED SOLUTION
Avatar of laeuchli
laeuchli

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sankar030999

ASKER

i tried it, but didnt work. that's hwy i posted the question.
let me clarify myself. i did a program in Turbo C for DOS. i want to create a screen saver for windows ( .scr file) using the exe file i from the c file.
Sankar, dou you tray examples of ScreenSavers, that
KangaRoo and I point out in comments? This must works!
I have more example, but it with OWL and C++.
If you want it, write you EMail.
Alex

you have to compile it with a 32bit windows compiler dos compiler might not work.


A DOS screensaver under windows... Well you have two options:

1. Write a SCR wrapper that call your DOS program (That must be a 32bit windows program)

2. Rewrite your code to use directdraw or something similar in order to have the full graphics capabillity of dos in windows
hi alex,
i tried all the sites that u and kangaroo mentioned. but all gave details abt windows format. since i need in dos format, it was of no use to me.
u said that u had some examples in c++. just mail me if u can.
lauchi, u said that i got to use a 32 bit compiler. can u suggest me something?
Sankar
Visual C 6.0
Watcom C 11.0
CoreWarrior Pro 5


There is a screen saver source in the Win32 SDK (That bundled with most win32 compilers)

Borland C++ 5.0
Borland C++ Builder 4
MinGW32 is free!

You might try a dos program, but I don't think it will work. As mentioned a screen saver is an executable which must respond to specific command line options. It must also be able to handle windows device context's.
The link I gave explains about these parameters.
Sankar, i can post you C++ ScreenSaver(write you EMail), but it is Windows, not Dos! Really, it is 1-st time , that
someone want make DOS ScreenSaver, that works under Windows!
As KangaRoo wrote:
>>You might try a dos program, but I don't think it will >>work.
And i agree with him!
Alex