Skip to main content

GrafServer (Programmierung mit Grafikausgabe)

  • Chapter
  • First Online:
C/C++ anwenden
  • 2964 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2023 Springer Fachmedien Wiesbaden GmbH, ein Teil von Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics