Click here to Skip to main content
13,197,799 members (45,094 online)
Click here to Skip to main content


159 bookmarked
Posted 17 Dec 2001

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
	CCrc32Dlg(CWnd *pParent = NULL);	// standard constructor
	virtual ~CCrc32Dlg();

// Dialog Data
	enum { IDD = IDD_CRC32_DIALOG };
	int		m_nCrc32Method;
	CString	m_strFilename;

	// ClassWizard generated virtual function overrides
	virtual void DoDataExchange(CDataExchange *pDX);	// DDX/DDV support

// Implementation
	HICON m_hIcon;

	// Generated message map functions
	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();

// 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.


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


About the Author

Brian Friesen
Web Developer
United States United States
No Biography provided

You may also be interested in...

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