Click here to Skip to main content
15,886,110 members
Articles / Programming Languages / C++

Locking shareware functions

Rate me:
Please Sign up or sign in to vote.
2.00/5 (13 votes)
18 Sep 2003CPOL1 min read 74.1K   801   33  
This article describes how to lock some functions in a shareware product. Users can unlock them only after obtaining keyfile
// shwcode.h : main header file for the SHWCODE application
//

#if !defined(AFX_SHWCODE_H__FA6E6F86_E6F0_11D7_9818_CAEA6E782261__INCLUDED_)
#define AFX_SHWCODE_H__FA6E6F86_E6F0_11D7_9818_CAEA6E782261__INCLUDED_

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

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// CShwcodeApp:
// See shwcode.cpp for the implementation of this class
//

class CShwcodeApp : public CWinApp
{
public:
	CShwcodeApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShwcodeApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CShwcodeApp)
	afx_msg void OnAppAbout();
		// 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()
};


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

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

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


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

Comments and Discussions