Click here to Skip to main content
15,884,099 members
Articles / Desktop Programming / MFC

Hiding a text file in a bmp file

Rate me:
Please Sign up or sign in to vote.
4.72/5 (348 votes)
26 Nov 20033 min read 493.7K   22.8K   206  
How to hide a text file in a bmp file
// StGraphDlg.h : header file
//

#if !defined(AFX_STGRAPHDLG_H__45E19F29_2BDD_11D7_AF3F_EC32507F1057__INCLUDED_)
#define AFX_STGRAPHDLG_H__45E19F29_2BDD_11D7_AF3F_EC32507F1057__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CStGraphDlg dialog

class CStGraphDlg : public CDialog
{
// Construction
public:
	int bmpLen;
	CFile bmpFile;
	int binLen;
	void CreateBinLookUpTable();
	char * srcBin;
	char * srcBMP;
	CString bin[256];
	CStGraphDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CStGraphDlg)
	enum { IDD = IDD_STGRAPH_DIALOG };
	CProgressCtrl	m_progress;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CStGraphDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSource();
	afx_msg void OnBMP();
	afx_msg void OnRecover();
	afx_msg void OnDO_IT();
	afx_msg void OnClose();
	afx_msg void OnAbout();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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


Written By
Systems Engineer
Egypt Egypt
My Name Ahmed Osama.
Communication & Electronic engineering
I like so much programming using c\c++ , MFC and VC++
i like programming in many fields like "digital signal processor" and math and image processing

Comments and Discussions