GDI+ Simple Help me
-
I am using GD+ in my ActiveX Control. It Works. But TSTCON32.exe not removed from memory.It is still running even after i closed testContainer(TSTCON32) application. Please look at this simple code and tell me problem. Here is the Code.It simply initialize in InitInstance and Shutdowns in ExitInstance. AfxStd.h ///// #if !defined(AFX_STDAFX_H__C2F7B03D_540F_42F2_B794_2FEF9ED71973__INCLUDED_) #define AFX_STDAFX_H__C2F7B03D_540F_42F2_B794_2FEF9ED71973__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, // but are changed infrequently #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include // MFC support for ActiveX Controls #include // MFC extensions #include // MFC support for Internet Explorer 4 Comon Controls #ifndef _AFX_NO_AFXCMN_SUPPORT #include // MFC support for Windows Common Controls #endif // _AFX_NO_AFXCMN_SUPPORT #include using namespace Gdiplus; #pragma comment(lib, "gdiplus.lib") // Delete the two includes below if you do not wish to use the MFC // database classes #include // MFC database classes #include // MFC DAO database classes //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__C2F7B03D_540F_42F2 TestApp.H - Application class header file. #if !defined(AFX_DFDSF_H__B2B70A2B_F958_46E4_B51D_CE3FE9A11D59__INCLUDED_) #define AFX_DFDSF_H__B2B70A2B_F958_46E4_B51D_CE3FE9A11D59__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // dfdsf.h : main header file for DFDSF.DLL #if !defined( __AFXCTL_H__ ) #error include 'afxctl.h' before including this file #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CDfdsfApp : See dfdsf.cpp for implementation. class CDfdsfApp : public COleControlModule { private: GdiplusStartupInput gdiplusStartupInput; // GDI+ Object ULONG_PTR gdiplusToken; // GDI+ Pointer public: BOOL InitInstance(); int ExitInstance(); }; extern const GUID CDECL _tlid; extern const WORD _wVerMajor; extern const WORD _wVerMinor; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarati