Okay, I tried both your suggestions with the following results(hopefully I understood your replies correctly).
FYI:
laptop is windows 7 home premium edition
free pascal is version 3.0.0
lazarus is version 1.6
netbook is 7" LanYu
OS: windows ce 6.0
cpu: wm 8505 300mhz
display: 7" TFT 800*480
memory: DDR II 128mb
1st version:
using just fpc 3.0.0 on the laptop;
it opens the dos window, flashes text and immediately closes
On the wince netbook, it does nothing. When I click on the program, it just blinks. Can't even tell if
it's opening the dos window or not.
program testit;
begin
{$appdata console}
end.
begin
writeln('this is a test');
writeln('this is another test);
readln;
end.
2nd version
On windows 7 with lazarus 1.6 and fpc 3.0.0
written this way, the dos box opens,writes the text and stays open until i press a key (which is what i want)
When I compile it and run it on the wince netbook, I get the
following error:
'An unhandled exception occurred at $00011428:
EInOutError: File not open
$00011428
program testit;
uses sysutils;
begin
writeln('this is a test');
writeln('this is another test);
readln;
end.
So on the laptop, it works one way, on the netbook(where I really need it), it doesn't work either way.