News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

GetCl help

Started by Magnum, November 18, 2011, 05:01:13 PM

Previous topic - Next topic

qWord

Quote from: Magnum on November 19, 2011, 03:03:31 AM
This works but it needs some improvements.

Since it is a console app, it takes up my whole screen when I run it from a batch file.

Will see if there is a way of either:

Making a smaller window

OR

Finding a way to make it a GUI app.
simply change the linker's subsystem-settting from CONSOLE to WINDOW
FPU in a trice: SmplMath
It's that simple!

dedndave

yes - it's a windows app
i created a Logo.bmp, Icon.ico, and a make batch file
the first time you run it, you have to configure it with a time to shut down
at that time, it was 8:32 PM, local time
i configured it to shut down at 20:34
at 8:34 PM, the computer shut down

i did not test to see if it shuts down running apps gracefully   :P
i simply made sure nothing important was running at 8:34

i am using XP (Pro) Media Center Edition 2005, SP3

dedndave

Andy
i forgot to mention....

i found and corrected a small error in the RC file
#define IDC_LOGO                        501

should be

#define IDB_LOGO                        501

Magnum

Your version did not work either.

Have any idea how I can diagnose this program or should I just move on ?  :P

Time to retire for the nite.

Have a great day,
                         Andy

dedndave

well - you are looking for a difference between XP Home and XP Pro
that may not be too hard to find   :P
nite, Andy

Magnum

I do have XP Home, but other shutdown programs I have work fine.

Just one of those mysteries.

Have a great day,
                         Andy

dedndave

it's either a failure with the timer function or the shutdown function
you could insert a couple message boxes to see what the returned values are
it may be all you need to do is to set a flag or some other simple thing   :P
it would be interesting to learn what XP Home Edition expects