|
0 registered members (),
4,296
guests, and 26
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Simple Program, Doesn't Work
#146809
08/08/07 20:01
08/08/07 20:01
|
Joined: Jul 2007
Posts: 7
SpaceXscape
OP
Newbie
|
OP
Newbie
Joined: Jul 2007
Posts: 7
|
I'm creating a simple program that displays a blue screen. Unfortinately all i get is a black screen even though i can screen_color.blue = 150; inside my main() function. Here is the code i'm using: Code:
/////////////////////////////// #include <acknex.h> #include <default.c>
///////////////////////////////
PANEL* panDisplay = { flags = VISIBLE; }
function main() { video_switch = 7; // 800 * 600 pixels screen_color.blue = 150; // dark blue while (1) { wait (1); } }
Simple enough right? Any help is appreciated.
|
|
|
Re: Simple Program, Doesn't Work
[Re: Excessus]
#146813
08/08/07 20:48
08/08/07 20:48
|
Joined: Jul 2007
Posts: 7
SpaceXscape
OP
Newbie
|
OP
Newbie
Joined: Jul 2007
Posts: 7
|
Still get a black screen and i copied and pasted your code. If i load one of the examples, it works. Code:
/////////////////////////////// #include <acknex.h> #include <default.c>
///////////////////////////////
PANEL* panDisplay = { flags = VISIBLE; }
function main() { video_mode = 7; screen_color.blue = 150; // dark blue while (1) { wait (1); } }
Heres a link to a screenshot of what it looks like when i run it. It shows the code on the left and the running app on the right. screenshot
|
|
|
Re: Simple Program, Doesn't Work
[Re: SpaceXscape]
#146814
08/08/07 21:17
08/08/07 21:17
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Ensure you have selected the current file for running. You can yuickly do this by pressing alt + f5. The last script you posted should work as expected.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Simple Program, Doesn't Work
[Re: SpaceXscape]
#146818
08/08/07 21:49
08/08/07 21:49
|
Joined: Oct 2006
Posts: 873
Shadow969
User
|
User
Joined: Oct 2006
Posts: 873
|
try acknex unlimited  or user contributions @TWO in Lite-C you can't
|
|
|
|