Click here to Skip to main content
15,900,653 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalconstructor and copy constructor Pin
bobi_zcl26-Mar-05 0:03
bobi_zcl26-Mar-05 0:03 
GeneralRe: constructor and copy constructor Pin
toxcct26-Mar-05 1:00
toxcct26-Mar-05 1:00 
GeneralRe: constructor and copy constructor Pin
Michael Dunn26-Mar-05 9:49
sitebuilderMichael Dunn26-Mar-05 9:49 
Generalpentium IV bug Pin
violantly happy25-Mar-05 23:08
sussviolantly happy25-Mar-05 23:08 
GeneralRe: pentium IV bug Pin
Antony M Kancidrowski26-Mar-05 14:39
Antony M Kancidrowski26-Mar-05 14:39 
GeneralRe: pentium IV bug Pin
jidelnistul26-Mar-05 22:15
jidelnistul26-Mar-05 22:15 
GeneralRe: pentium IV bug Pin
Antony M Kancidrowski27-Mar-05 6:40
Antony M Kancidrowski27-Mar-05 6:40 
GeneralGDI+ Simple Help me Pin
Anand for every one25-Mar-05 21:34
Anand for every one25-Mar-05 21:34 
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 <afxctl.h> // MFC support for ActiveX Controls
#include <afxext.h> // MFC extensions
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Comon Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <gdiplus.h>

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 <afxdb.h> // MFC database classes
#include <afxdao.h> // 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 declarations immediately before the previous line.

#endif // !defined(AFX_DFDSF_H__B2B70A2B_F958_46E4_B51D_CE3FE9A11D59__INCLUDED)


////////////////////////////


TestApp.Cpp - Applications cpp 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 declarations immediately before the previous line.

#endif // !defined(AFX_DFDSF_H__B2B70A2B_F958_46E4_B51D_CE3FE9A11D59__INCLUDED)

These are only files which has code related to GDI+. I used ActiveControl Wizard. And I added the code to StartUp GDI+ nad Shutdown GDI+. That's it. I did not write any other code.
Questionwhat the header file for my backpropagation program? Pin
conniepooh25-Mar-05 19:31
conniepooh25-Mar-05 19:31 
QuestionHow to copy a File to another place using C++ Pin
pubududilena25-Mar-05 17:39
pubududilena25-Mar-05 17:39 
AnswerRe: How to copy a File to another place using C++ Pin
Anthony_Yio25-Mar-05 18:21
Anthony_Yio25-Mar-05 18:21 
AnswerRe: How to copy a File to another place using C++ Pin
David Crow26-Mar-05 7:24
David Crow26-Mar-05 7:24 
QuestionUsing XP's built-in text-to-speech functionality? Pin
IGx8925-Mar-05 17:29
IGx8925-Mar-05 17:29 
QuestionRead 3DS file for create character animation - how to ? Pin
sonla25-Mar-05 16:57
sonla25-Mar-05 16:57 
AnswerRe: Read 3DS file for create character animation - how to ? Pin
MMansonFan2529-Mar-05 23:14
MMansonFan2529-Mar-05 23:14 
GeneralRe: Read 3DS file for create character animation - how to ? Pin
sonla29-Mar-05 23:25
sonla29-Mar-05 23:25 
GeneralInterlocked Functions Pin
Obi Wan 225-Mar-05 15:21
Obi Wan 225-Mar-05 15:21 
GeneralRe: Interlocked Functions Pin
cmk25-Mar-05 16:35
cmk25-Mar-05 16:35 
GeneralRe: Interlocked Functions Pin
Obi Wan 225-Mar-05 17:36
Obi Wan 225-Mar-05 17:36 
GeneralRe: Interlocked Functions Pin
cmk25-Mar-05 19:15
cmk25-Mar-05 19:15 
GeneralRe: Interlocked Functions Pin
Obi Wan 225-Mar-05 22:05
Obi Wan 225-Mar-05 22:05 
GeneralRe: Interlocked Functions Pin
cmk25-Mar-05 23:21
cmk25-Mar-05 23:21 
GeneralRe: Interlocked Functions Pin
Obi Wan 226-Mar-05 1:57
Obi Wan 226-Mar-05 1:57 
GeneralRe: Interlocked Functions Pin
Obi Wan 230-Oct-05 9:24
Obi Wan 230-Oct-05 9:24 
GeneralMemory Limits Pin
Obi Wan 225-Mar-05 14:45
Obi Wan 225-Mar-05 14:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.