
12 Appendix A1 Extending Ox
The full example is in ox/samples/ranapp. The code uses Microsoft Foundation
Class (MFC) and Microsoft Visual C
++
(version 6), but similar code could be written
using other compilers and application frameworks. Here we shall only treat Ox specific
sections of the code.
The RanApp application requires a correctly installed copy of GiveWin 2.RanApp
reports all text and graphics output in GiveWin, achieved by adding just one function
call (this requires linking with OxGiveWin2.lib).
2
Figure A1.1 shows RanApp on top
of its graphical output, with the Dimensions dialog active.
Figure A1.1 RanApp screen capture.
.......................................ox/dev/windows/ranapp/RanApp.c (part of)
#include "stdafx.h"
#include "RanApp.h"
#include "RanAppDlg.h"
#include "RanDimDlg.h"
#include "oxexport.h"
#include "oxgivewin.h"
int g_iMainIP;
2
The GiveWin Developer’s Kit documents interfacing directly with GiveWin.
Komentarze do niniejszej Instrukcji