Click here to Skip to main content
12,354,998 members (54,597 online)
Click here to Skip to main content

Stats

64.4K views
780 downloads
33 bookmarked
Posted

Locking shareware functions

, 18 Sep 2003 CPOL
This article describes how to lock some functions in a shareware product. Users can unlock them only after obtaining keyfile
shwcode
shwcode.clw
shwcode.dsw
res
shwcodeDoc.ico
shwcode.ico
Toolbar.bmp
shwcode.dsp
Release
1224.bmp
shwcode.exe
1223.bmp
MVC10C0.TMP
// shwcodeDoc.h : interface of the CShwcodeDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SHWCODEDOC_H__FA6E6F8C_E6F0_11D7_9818_CAEA6E782261__INCLUDED_)
#define AFX_SHWCODEDOC_H__FA6E6F8C_E6F0_11D7_9818_CAEA6E782261__INCLUDED_

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


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

// Attributes
public:

// Operations
public:

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

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CShwcodeDoc)
	afx_msg void OnViewPattern1();
	afx_msg void OnViewPattern2();
	afx_msg void OnViewLockedpattern();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

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

Share

About the Author

va_dev
Software Developer
Russian Federation Russian Federation
Professional Windows/Java Mobile/Web-applications developer since 2000.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160621.1 | Last Updated 19 Sep 2003
Article Copyright 2003 by va_dev
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid