Click here to Skip to main content
15,892,965 members
Articles / Desktop Programming / MFC

Programming Self-generating Code for Windows Applications

Rate me:
Please Sign up or sign in to vote.
4.89/5 (742 votes)
29 Feb 2008CPOL4 min read 482.3K   832   324  
Executing VC++ codes in STACK or HEAP
// My_functionView.h : interface of the CMy_functionView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MY_FUNCTIONVIEW_H__148695B5_0E92_4D25_BD81_3008F609A066__INCLUDED_)
#define AFX_MY_FUNCTIONVIEW_H__148695B5_0E92_4D25_BD81_3008F609A066__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CMy_functionView : public CView
{
protected: // create from serialization only
	CMy_functionView();
	DECLARE_DYNCREATE(CMy_functionView)

// Attributes
public:
	CMy_functionDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMy_functionView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMy_functionView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMy_functionView)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in My_functionView.cpp
inline CMy_functionDoc* CMy_functionView::GetDocument()
   { return (CMy_functionDoc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MY_FUNCTIONVIEW_H__148695B5_0E92_4D25_BD81_3008F609A066__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer AntiDebugLIB Inc
United States United States
There are so many hackers all over the world that no software can escape the doom of being cracked.And even almost everybody believe that it is impossible to protect the applications through the technology means.But we still work hard to find applications protection solution [32-bit] [64-bit] in order to protect our works.

Homepage:

http://www.antidebuglib.com/

http://www.wintsd.com/

Comments and Discussions