/////////////////////////////////////////////////////////////////////////////// // DrawLib.h - Demonstrate Drawing on a C++/CLI form // // // // Jim Fawcett, CSE681 - Software Modeling and Analysis, Fall 2008 // /////////////////////////////////////////////////////////////////////////////// #pragma once #include #include "DrawLibInterface.h" using namespace System; namespace Drawer { ///////////////////////////////////////////////////////////////////////////// // Managed C++/CLI class is a bridge to native C++ in DrawLib.cpp ref class DrawingInfo { public: DrawingInfo(void) { pNDI = NativeDrawingInfoInterface::Create(); } ~DrawingInfo(void) { delete pNDI; } int* getPoints() { return pNDI->getPoints(); } private: NativeDrawingInfoInterface* pNDI; }; }