| |
|
|
R.Schneider | good day Hr. king, is it really possible with Prf2cpp a Konsolenanwendung to create. Perhaps through change the Make-File? such a thing could I in momentum very well use, have but unfortunately no idea of C++. If not weg ought to would the still Perhaps a option for future versions of Prf2cpp. what hold tappt im dunkeln of it?
Best wishes Rudger |
|
|
| |
|
|
|
Sebastian König | Hi,
Yes, the goes: Folgender code functions with (X)Profan and Profan2Cpp: CompileMarkSeparation $H windows.ph
~AllocConsole()
declare hOut&,hIn&
let hIn& = ~GetStdHandle(~STD_INPUT_HANDLE)
let hOut& = ~GetStdHandle(~STD_OUTPUT_HANDLE)
~SetConsoleTitle("XProfan-Konsole")
declare text$,dwWritten&
let text$ = "Tastendruck zum Beenden!"
~WriteConsole(hOut&,Addr(text$),Len(text$),Addr(dwWritten&),0)
declare buff#,dwRead&
dim buff#,1024
whilenot dwRead&
~ReadConsole(hIn&,buff#,1024,Addr(dwRead&),0)
Sleep 10
wend
end
even if only one Konsolenfenster appear, deals it itself from visibility Windows though nevertheless first of all in the a Win32-GUI-application. around the To Change, sufficient it objectively The File Makefile in the spending-Ordner anzupassen.
with Borland C++ to that example is in the row LFLAGS =... The option -aa in -ap To Change. After one renewed appeal of make.bat ought to then a EXE with the Subsystem Win32 console prepares go.
MfG
Sebastian |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 04/29/06 ▲ |
|
|
|
|
R.Schneider | thanks for speedy response, I will same time try. I use of course Bolodshed Dev C++ but it'll there well similar his. yet time thanks Rudger |
|
|
| |
|
|
|
Sebastian König | I have straight time nachgesehen: with Dev-C++/MinGW should it genügen, in the row CFLAGS =... behind -mwindows additional (!) -mconsole einzufügen. |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 04/29/06 ▲ |
|
|
|