Autor Beitrag
paddy14
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122



BeitragVerfasst: Di 13.09.11 11:49 
Ist es möglich das wenn ich ein Winform erstellt habe, eine Console zu öffen als wie wenn ich ein neues Konsolenprojekt anlege???

Mfg Patrick
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4803
Erhaltene Danke: 1060

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Di 13.09.11 13:36 
Hallo Patrick,

möchtest du die Konsole gleich bei Start geöffnet haben?
Dann müßte es reichen, wenn du einfach dein Projekt auf "Konsolenanwendung" umstellst (unter "Application"/"OutputType" - auf deutsch wohl "Anwendung"/"Ausgabetyp").

Wenn du von deinem Programm aus die Konsole öffnen und evtl. auch wieder schließen willst, dann geht das mit den WinAPI-Funktionen AllocConsole und FreeConsole.
paddy14 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122



BeitragVerfasst: Di 13.09.11 13:45 
Cool und die Funktionen der Allocconsole kann ich dann so behandeln als wie wenn ich ein normal Konsolen Projekt habe???
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4803
Erhaltene Danke: 1060

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Di 13.09.11 15:14 
Probier's aus ;-)
Eigentlich sollte damit dann alles möglich sein, wie bei einer reinen Konsolenanwendung, d.h. mittels Console.Write() etc.
storestore
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 397
Erhaltene Danke: 7

WIN 7
C#
BeitragVerfasst: Di 13.09.11 16:50 
Hi,
wo genau ist dieses
Zitat:
Anwendung"/"Ausgabetyp
Das finde ich irrgendwie nicht!

_________________
Der Pc ist nur so schlau, wie derjenige der in steuert!
"Don't Quit. Suffer now, and live the rest of your life as a champion"
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Di 13.09.11 18:44 
user profile iconstorestore hat folgendes geschrieben Zum zitierten Posting springen:
wo genau ist dieses
Zitat:
Anwendung"/"Ausgabetyp

Unter Projekt > Projektname-Eigenschaften...
storestore
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 397
Erhaltene Danke: 7

WIN 7
C#
BeitragVerfasst: Di 13.09.11 19:28 
Achso, dannnnkkweee

_________________
Der Pc ist nur so schlau, wie derjenige der in steuert!
"Don't Quit. Suffer now, and live the rest of your life as a champion"