Click here to Skip to main content
11,411,097 members (64,231 online)
Click here to Skip to main content
Add your own
alternative version

CRC32: Generating a checksum for a file

, 17 Dec 2001
How to generate a CRC32 based on a file
// Crc32Dlg.h : header file
//

#if !defined(AFX_CRC32DLG_H__0AD97DB5_9410_11D5_8ABC_000000000000__INCLUDED_)
#define AFX_CRC32DLG_H__0AD97DB5_9410_11D5_8ABC_000000000000__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCrc32Dlg dialog

class CCrc32Dlg : public CDialog
{
// Construction
public:
	CCrc32Dlg(CWnd *pParent = NULL);	// standard constructor
	virtual ~CCrc32Dlg();

// Dialog Data
	//{{AFX_DATA(CCrc32Dlg)
	enum { IDD = IDD_CRC32_DIALOG };
	int		m_nCrc32Method;
	CString	m_strFilename;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCrc32Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange *pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCrc32Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBrowse();
	afx_msg void OnCrc32();
	afx_msg void OnChangeFilename();
	afx_msg void OnClear();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CRC32DLG_H__0AD97DB5_9410_11D5_8ABC_000000000000__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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Brian Friesen
Web Developer
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150414.5 | Last Updated 18 Dec 2001
Article Copyright 2001 by Brian Friesen
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid