Zusammenfassung
Hier geht es um die Entwicklung eines kleinen Programms zur Einübung der Arbeit mit unserem einfachen Grafik-Tool GrafServer (zum Download auf unserer Buch-Webseite). Die GrafServer/GrafClient-Umgebung (kurz GrafServer genannt) bietet eine Möglichkeit, in einfachen C++-Programmen (Konsolenanwendungen mit main()-Funktion) Grafiken auszugeben. Weil die Einbindung einer Grafik-Bibliothek in Konsolenanwendungen problematisch ist, wurde ein Client-Server-Ansatz gewählt: Die Grafik wird von einem Server-Programm (unter Java entwickelt) dargestellt (GrafServer). Die Konsolenanwendung enthält einen Grafik-Client (GrafClient), der als cpp-Datei dem Projekt hinzugefügt wird (GrafClient.cpp). Der Client stellt die Verbindung zum Server her und kann dann Grafik-Befehle an diesen schicken. Die Header-Datei GrafClient.h wird in das Projektverzeichnis kopiert und mit #include “GrafClient.h“ in das jeweilige Programm eingebunden.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2023 Springer Fachmedien Wiesbaden GmbH, ein Teil von Springer Nature
About this chapter
Cite this chapter
Hoch, T., Küveler, G. (2023). GrafServer (Programmierung mit Grafikausgabe). In: C/C++ anwenden. Springer Vieweg, Wiesbaden. https://doi.org/10.1007/978-3-658-38093-9_4
Download citation
DOI: https://doi.org/10.1007/978-3-658-38093-9_4
Published:
Publisher Name: Springer Vieweg, Wiesbaden
Print ISBN: 978-3-658-38092-2
Online ISBN: 978-3-658-38093-9
eBook Packages: Computer Science and Engineering (German Language)