English
C ++ Forum

Konsole

 

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
 
Perbody is nofect !
04/29/06  
 




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
 
Perbody is nofect !
04/29/06  
 




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  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.263 Views

Untitledvor 0 min.
RudiB.09/09/21
p.specht03/05/19
iF05/19/13
Paul Glatz03/24/13
More...

Themeninformationen

this Topic has 2 subscriber:

Sebastian König (2x)
R.Schneider (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie