Click here to Skip to main content
15,885,365 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 480.8K   832   324  
Executing VC++ codes in STACK or HEAP
// self_engendered_codeDoc.h : interface of the CSelf_engendered_codeDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SELF_ENGENDERED_CODEDOC_H__4E8209F4_E18F_4791_A6CD_311D0FE7DE3F__INCLUDED_)
#define AFX_SELF_ENGENDERED_CODEDOC_H__4E8209F4_E18F_4791_A6CD_311D0FE7DE3F__INCLUDED_

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


class CSelf_engendered_codeDoc : public CDocument
{
protected: // create from serialization only
	CSelf_engendered_codeDoc();
	DECLARE_DYNCREATE(CSelf_engendered_codeDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSelf_engendered_codeDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSelf_engendered_codeDoc)
	afx_msg void OnExecuteMyFunction();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_SELF_ENGENDERED_CODEDOC_H__4E8209F4_E18F_4791_A6CD_311D0FE7DE3F__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