 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Piotr S. Guest
|
Posted: Sun Feb 11, 2007 9:50 pm Post subject: screensaver, sdk, BCB6 |
|
|
Hi all!
I'm trying to write a screensaver for windows in borland c++ builder.
In WIN32 Developers Guide I found much on Screen Saver Functions
that I try to use in my code. But BCB6 adds automatically its forms
as default. The first thing is that I dont want to have any forms. How
to say to BCB6 that it adds no forms by default?
BCB6 creates by default also files unit.cpp (where functions can be defined)
and Project1.cpp - file where WinMain is defined. Where should I put my
definitons and body of ScreenSaverProc and other screen saver functions?
I try to replace WinMain with my screen saver functions but then an error
message
is displayed that the project must have a main or WinMain function. Strange,
code::blokcs compiler compiles and links such project.
Does anybody know how to compile and run this under BCB6? |
|
| Back to top |
|
 |
Michel Leunen Guest
|
Posted: Mon Feb 12, 2007 1:35 am Post subject: Re: screensaver, sdk, BCB6 |
|
|
Piotr S. wrote:
| Quote: | I'm trying to write a screensaver for windows in borland c++ builder.
In WIN32 Developers Guide I found much on Screen Saver Functions
that I try to use in my code. But BCB6 adds automatically its forms
as default. The first thing is that I dont want to have any forms. How
to say to BCB6 that it adds no forms by default?
|
Go to menu File/New Console application. There, choose console
application with or without VCL and check or uncheck 'console
application' depending if you want a main() function or a WinMain() one.
HTH
Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
---------------------------------------- |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Feb 12, 2007 3:13 am Post subject: Re: screensaver, sdk, BCB6 |
|
|
"Piotr S." <inri (AT) buziaczek (DOT) pl> wrote in message
news:45cf3b4e$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I'm trying to write a screensaver for windows in borland c++
builder. |
Please do not cross-post. It is against Borland's newsgroup
guidelines (). Please post questions only to the single most
appropriate group, which in this case is the
"borland.public.cppbuilder.ide" group, as you are asking questions
related to how to set up a project for compiling.
Gambit |
|
| Back to top |
|
 |
Thomas Guest
|
Posted: Mon Feb 12, 2007 4:49 pm Post subject: Re: screensaver, sdk, BCB6 |
|
|
Hello
You'd like to write a screen saver with BCB. It is quite easy. A screen saver is like a normal windows application, with only a few very little changes.
1. A Screensaver is a normal EXE, renamed to SCR
2. A screen saver uses commandline parameters (for the configuration window, preview mode, (and for Win9x:password setting)
A great description is hiere:
http://www.wischik.com/scr/howtoscr.html
There is also an BCB screensaver SDK available, but it is not free. In my opinion it is not necessary to use this SDK. The description on how to write a screensaver is enough to make a perfect saver with preview, configuration dialog... everything!
If you have questions regarding screensavers, you can find contact informations of myself at my website (http://www.batteryinfo.de.vu)
Regards
Thomas |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|