Translate MSVC <graph.h> to wxWidgets functions

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
ostene
In need of some credit
In need of some credit
Posts: 1
Joined: Mon Nov 29, 2021 2:31 pm

Translate MSVC <graph.h> to wxWidgets functions

Post by ostene »

Hello! This is my first contribution on this forum.
Sorry for my english.

I have an old program in Win 98 that I want to translate to
Kubuntu Linux with wxWidgets. Does it exist some text that inform
about how to translate the graph functions from <graph.h>
to graph functions in wxWidgets library.
ostene
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Translate MSVC <graph.h> to wxWidgets functions

Post by doublemax »

Search for <graph.h> gets quite a few different hits and none is in the current Windows SDK. What does it do?

Assuming it's about drawing graphics, check wxDC:
https://docs.wxwidgets.org/trunk/classwx_d_c.html

Sample with custom drawn graphics:
https://wiki.wxwidgets.org/Drawing_on_a_panel_with_a_DC
Use the source, Luke!
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: Translate MSVC <graph.h> to wxWidgets functions

Post by PB »

FWIW, I could not find file graph.h in MSVC6 installation.

The mentions on the internet hint that it was a very old file containing MS-DOS drawing functions, similar to Borland's BGI. Perhaps you are confusing it with something else?
Post Reply