亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? stgraphdlg.cpp

?? 文本隱藏在圖片中
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
// StGraphDlg.cpp : implementation file
//

#include "stdafx.h"
#include "StGraph.h"
#include "StGraphDlg.h"
#include "FileDlg.h"
#include <math.h>
#include "ResulrDlg.h"
#include "Password.h"


#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

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

CStGraphDlg::CStGraphDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CStGraphDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CStGraphDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CStGraphDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CStGraphDlg)
	DDX_Control(pDX, IDC_PROGRESS1, m_progress);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CStGraphDlg, CDialog)
	//{{AFX_MSG_MAP(CStGraphDlg)
	ON_WM_PAINT()
	ON_WM_QUERYDRAGICON()
	ON_BN_CLICKED(IDC_BUTTON1, OnSource)
	ON_BN_CLICKED(IDC_BUTTON2, OnBMP)
	ON_BN_CLICKED(IDC_BUTTON3, OnRecover)
	ON_BN_CLICKED(IDC_BUTTON4, OnDO_IT)
	ON_BN_CLICKED(ID_about, OnAbout)
	ON_WM_CLOSE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CStGraphDlg message handlers

BOOL CStGraphDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	// TODO: Add extra initialization here

	AfxMessageBox("I hope you enjoy my program . ");

	srcBin=new char [2];
	srcBMP=new char [2];

	CreateBinLookUpTable();
	
	return TRUE;  // return TRUE  unless you set the focus to a control
}

// If you add a minimize button to your dialog, you will need the code below
//  to draw the icon.  For MFC applications using the document/view model,
//  this is automatically done for you by the framework.

void CStGraphDlg::OnPaint() 
{
	if (IsIconic())
	{
		CPaintDC dc(this); // device context for painting

		SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);

		// Center icon in client rectangle
		int cxIcon = GetSystemMetrics(SM_CXICON);
		int cyIcon = GetSystemMetrics(SM_CYICON);
		CRect rect;
		GetClientRect(&rect);
		int x = (rect.Width() - cxIcon + 1) / 2;
		int y = (rect.Height() - cyIcon + 1) / 2;

		// Draw the icon
		dc.DrawIcon(x, y, m_hIcon);
	}
	else
	{
		CDialog::OnPaint();
	}
}

// The system calls this to obtain the cursor to display while the user drags
//  the minimized window.
HCURSOR CStGraphDlg::OnQueryDragIcon()
{
	return (HCURSOR) m_hIcon;
}

void CStGraphDlg::OnAbout ()
{

	AfxMessageBox("Hi All , Me 'Ahmed Osama', Communication & Electronics Engineer :) ahmed_osama@ieee.org");

}


void CStGraphDlg::OnSource() 
{
	// TODO: Add your control notification handler code here

// ** Opening the text file & reading every byte and converting	**
// ** to binary bits to be stored in array						**

CFileDlg dlg(TRUE,"txt",NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,"text (*.txt)|*.txt|");
dlg.DoModal ();
CFile f;
if (!f.Open ((LPCTSTR)dlg.GetPathName (),CFile::modeRead|CFile::typeBinary ))
      return;

int l=f.GetLength (); // ** Getting the text file size **


CPassword enterpassword;
again:
enterpassword.DoModal ();// ** Showing the password entry dialog **

if (enterpassword.m_password1!=enterpassword.m_password2)
{   AfxMessageBox("Check your password , the two passwords are not matching !!!");      
	goto again;}

if (enterpassword.m_password1.GetLength ()!=5)
{
	AfxMessageBox("Check your password , less than 5 letters !!!");
	goto again;
}



char *buffer = new char [l];
	
	// ** buffer which will contain the text file

CString temp;
int a=0;
delete [] srcBin;
binLen=(l+5+5)*8; // ** Calc. the binary array size 

// ** size=(each byte of text +each byte of the pass+
// **		each byte of 5 digit no) * (8 bits per byte)

srcBin=new char [binLen]; // ** binary array for the text file	**

f.ReadHuge (buffer,l);

char buffer1[50];
_gcvt( l , 10, buffer1 );//** Converte txt file size no to str	 **
CString temp1=buffer1;// ** if txt file is 20 bytes -->temp1="20."*

temp1=temp1.Left (temp1.GetLength ()-1);// ** Removing the point **	

CString temp2="0";

// ** We assuming the max txt file size is 99999 (5 digits)	**
// ** So to be sure that it is always 5 digits				**
// ** after converting the txt size to str we add extra zero**
// ** Example  txt size is 20 bytes
// ** will be conv. to "20" ---fixing it to --- "00020"		**

if (temp1.GetLength ()<5)
{
	for (int k=1 ; k<5-temp1.GetLength () ; k++)
		temp2=temp2+"0";
}

temp2=temp2+temp1+enterpassword.m_password1;
temp2=temp2.Left (10);

// ** temp2  holds the header which will be added to the txt file**
// ** temp2="the fixed txt file size"(5 digits)+"password"		 **


CString temp3(buffer); // ** temp3 hold now the raw text file	  **
temp3.Insert (0,temp2);// ** Adding the header to the raw txt file**



for (int i=0 ; i<(binLen/8) ;i++)
	{
		
// ** Converting each byte to bin bits and storing in in	**
// ** the srcBin array.										**
		
		temp=bin[(unsigned char)temp3[i]];
		
// ** Example 'a'--->ascii--->97--->bin[97]="01100001"
// ** putting each bit in the srcBin array
// ** 0--->srcBin[a]
// ** 1--->srcBin[a+1]         and So on........

		srcBin[a]=temp[0];
		srcBin[a+1]=temp[1];
		srcBin[a+2]=temp[2];
		srcBin[a+3]=temp[3];
		srcBin[a+4]=temp[4];
		srcBin[a+5]=temp[5];
		srcBin[a+6]=temp[6];
		srcBin[a+7]=temp[7];

		a=a+8; 
}



delete [] buffer;

f.Close ();

CWnd * koko=GetDlgItem (IDC_BUTTON2);
koko->EnableWindow ();

AfxMessageBox("Text File Loaded");
}

void CStGraphDlg::OnBMP() 
{
// ** This function handle opening the raw bmp file to hide in it thr txt	**

CFileDlg dlg(TRUE,"bmp",NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,"Only BMP (*.bmp)|*.bmp|");
dlg.DoModal ();

if (!bmpFile.Open ((LPCTSTR)dlg.GetPathName (),CFile::modeReadWrite|CFile::typeBinary ))
     return;

int l=bmpFile.GetLength ();

bmpLen=l;	// ** contains the bmp file length(size)	**

delete [] srcBMP;

srcBMP=new char [l]; // ** This is the buffer which will contains the bmp file	**

bmpFile.ReadHuge (srcBMP,l); // ** Loading the bmp file into the buffer	**

AfxMessageBox("File Loaded");


CWnd * koko=GetDlgItem (IDC_BUTTON4);

koko->EnableWindow (); // ** Activate "Hide Text" button	**






}

void CStGraphDlg::OnRecover() 
{

// ** This function used to recover the txt file from the bmp	**

ResulrDlg dllg;

int min,max;
m_progress.GetRange (min,max);
m_progress.SetPos (min);

CFileDlg dlg(TRUE,"bmp",NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,"Only BMP (*.bmp)|*.bmp|");
dlg.DoModal ();
CFile f;
if (!f.Open ((LPCTSTR)dlg.GetPathName (),CFile::modeReadWrite|CFile::typeBinary ))
   return;

int l=f.GetLength ();	// ** l=the bmp size	**
char *buffer = new char [l] ; // ** buffer which will hold the bmp file	**
int *recBin=new int [l]; // ** buffer which will hold the bmp fle bits	**

char temp;

CString mssg;


f.ReadHuge (buffer,l);	// ** loading the bmp file to the buffer	**
CString temp1=buffer;// ** temp1 holds the bmp file					**




for(int j=55 ; j<55+8*10 ;j++)
{
	recBin[j]=(unsigned char) ((unsigned char)buffer[j] & 1);
	// ** conveting each byte in the bmp(after the header) to bits	**
	// ** stored in the recBin array								**
}


for (j=55 ; j<55+8*10 ;j=j+8)
{
	temp=128*recBin[j]+64*recBin[j+1]+32*recBin[j+2]+16*recBin[j+3]+8*recBin[j+4]+4*recBin[j+5]+2*recBin[j+6]+1*recBin[j+7];
	mssg=mssg+temp;

	// ** reading the last bit in each 8 bit							**
	// ** converting them to decimal again (ascii code)					**
	// ** but just the first 10 bytes (our header which contain the pass**
	// ** and the txt file size											**
}


CPassword enterpassword;

enterpassword.hide =true; 
int ii=1;
again :
enterpassword.DoModal ();

	// ** our header consist of two part as we knew each 5 bytes	**
	// **      txt file size    +       pass

// ** checking the password
if (enterpassword.m_password1 !=mssg.Right (5))
{
	AfxMessageBox("Bad Password !! ");

}

else
{
goto safe;
}

ii++;
if (ii<4) goto again;

if (ii==4) this->DestroyWindow (); 
		// ** after three trials the program exit **

safe:

int length=atoi(mssg.Left(5) );
// ** getting the txt file size but it is string
// ** so converting it back to int using atoi() function

m_progress .SetRange (55,2*l-8);
// ** setting the min and max limit for the progress bar	**


for(int i=55+8*10 ; i<55+8*10+length*8;i++)
{
	recBin[i]=(unsigned char) ((unsigned char)buffer[i] & 1);

	// ** reading the bits of the txt file						**
}



mssg="";

for (i=55+8*10 ; i<55+8*10+length*8 ;i=i+8)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合久久久网| 日韩理论片网站| 欧美日韩国产免费一区二区 | 91丝袜美腿高跟国产极品老师 | 在线电影国产精品| 在线视频欧美区| 91成人免费电影| 欧美日韩和欧美的一区二区| 欧美三级日韩三级国产三级| 精品视频在线看| 精品国产乱码久久久久久老虎| 精品噜噜噜噜久久久久久久久试看 | 日本高清不卡在线观看| 日本韩国视频一区二区| 欧美日本在线播放| 日韩欧美一区二区久久婷婷| 精品日韩99亚洲| 日本一区二区三区四区| 亚洲人一二三区| 婷婷综合五月天| 国产麻豆午夜三级精品| 亚洲女人小视频在线观看| 亚洲人成网站精品片在线观看| 一区二区三区毛片| 奇米影视7777精品一区二区| 国产经典欧美精品| 99re成人精品视频| 8v天堂国产在线一区二区| 欧美电影免费观看完整版| 国产清纯白嫩初高生在线观看91 | 黄色小说综合网站| 成人黄色综合网站| 欧美视频在线不卡| 欧美精品一区二区三区四区 | 日韩午夜在线影院| 欧美激情一区二区三区不卡| 色国产综合视频| 欧美电影免费观看高清完整版在线观看 | 日韩国产精品久久| 粉嫩久久99精品久久久久久夜 | 久久综合中文字幕| 亚洲自拍欧美精品| 国产99久久精品| 欧美日韩国产一区二区三区地区| 国产伦精品一区二区三区免费| 日本道精品一区二区三区| 欧美一区二区福利视频| 久久蜜桃一区二区| 欧洲一区在线电影| 国产欧美视频一区二区| 国产欧美一区二区精品性色超碰| 欧美日韩美少妇| 国产亚洲va综合人人澡精品| 日韩理论片中文av| 亚洲成人免费在线| 国产黑丝在线一区二区三区| 99久久久久免费精品国产 | 久久影院午夜论| 欧美国产国产综合| 亚洲欧美日韩国产中文在线| 日韩成人一级大片| 国产98色在线|日韩| 91视频一区二区| 欧美一区二区观看视频| 成人精品gif动图一区| 国产一区二区美女诱惑| 91国偷自产一区二区开放时间| 日韩欧美电影一二三| 国产精品乱人伦| 久久国产精品区| 欧美在线|欧美| 亚洲国产精品激情在线观看| 夜夜揉揉日日人人青青一国产精品| 亚洲一区二区高清| 成人午夜私人影院| 欧美福利一区二区| 在线不卡a资源高清| 91精品国产91综合久久蜜臀| 亚洲免费观看在线观看| 蜜臀av一级做a爰片久久| 成人精品免费看| 日韩美女在线视频| 亚洲va中文字幕| 99久久99精品久久久久久 | 日韩高清不卡在线| 91女人视频在线观看| 久久精品亚洲精品国产欧美| 91免费观看在线| 国产午夜精品一区二区三区四区| 亚洲精品免费在线观看| 久久精品一区蜜桃臀影院| 亚洲四区在线观看| 2017欧美狠狠色| 免费在线观看日韩欧美| 欧美日本一区二区| 亚洲高清不卡在线| aa级大片欧美| 欧美激情在线一区二区| 亚洲午夜精品网| 国产精品亚洲视频| 久久综合色播五月| 韩国在线一区二区| 久久一日本道色综合| 日韩在线卡一卡二| 88在线观看91蜜桃国自产| 在线观看欧美黄色| 中文字幕不卡在线播放| 国产福利不卡视频| 国产欧美日韩综合精品一区二区| 精品一区免费av| 精品美女在线观看| 美国三级日本三级久久99| 粉嫩一区二区三区性色av| 日本丶国产丶欧美色综合| 亚洲一区在线观看免费观看电影高清| 99视频在线精品| jlzzjlzz国产精品久久| 亚洲欧洲精品成人久久奇米网| 国产激情一区二区三区桃花岛亚洲| 欧美在线看片a免费观看| 久久久久99精品一区| 成人激情免费电影网址| 亚洲人吸女人奶水| 欧美偷拍一区二区| 久久精品国产秦先生| 国产网红主播福利一区二区| 国产电影一区二区三区| 亚洲乱码精品一二三四区日韩在线| 99久免费精品视频在线观看| 一区二区三区中文免费| 777久久久精品| 粉嫩av一区二区三区粉嫩| 亚洲色图在线视频| 欧美高清www午色夜在线视频| 精品写真视频在线观看| 国产日产欧产精品推荐色| 国产不卡视频在线观看| 亚洲精品第一国产综合野| 91国偷自产一区二区使用方法| 日韩制服丝袜av| 久久精品综合网| 欧美三级三级三级爽爽爽| 亚洲成av人片一区二区三区| 日本二三区不卡| 青青草国产精品97视觉盛宴| 国产精品久久毛片a| 欧美在线999| 丁香婷婷综合色啪| 日韩影院在线观看| 精品国产露脸精彩对白 | 91蝌蚪porny成人天涯| 亚洲成人自拍偷拍| 欧美激情一区二区在线| 精品三级av在线| 不卡av免费在线观看| 久久久亚洲精品一区二区三区| 日韩影院在线观看| 最新国产の精品合集bt伙计| www日韩大片| 7777精品伊人久久久大香线蕉超级流畅| 国产成人av电影| 日韩成人精品视频| 久久精品亚洲麻豆av一区二区| 91欧美一区二区| 一级中文字幕一区二区| 中文字幕第一区第二区| 久久久国产综合精品女国产盗摄| 在线播放/欧美激情| 欧美少妇性性性| 99久久婷婷国产综合精品| 国产伦精品一区二区三区在线观看| 日韩av在线免费观看不卡| 中文字幕五月欧美| 欧美电影影音先锋| 一区二区三区在线免费观看| 欧美色涩在线第一页| 免费视频一区二区| 国产精品久久久久影院老司| 日韩亚洲电影在线| 精品视频一区三区九区| 欧美三级电影在线看| 一区二区三区波多野结衣在线观看| 欧美高清在线一区二区| 欧美性猛交xxxxxxxx| 亚洲黄色av一区| 黑人巨大精品欧美黑白配亚洲| 美女www一区二区| 麻豆精品一区二区av白丝在线| 六月丁香婷婷久久| 激情成人午夜视频| 国产成人在线电影| 国产suv精品一区二区883| 亚洲午夜电影网| 国产精品进线69影院| 亚洲色图第一区| 色伊人久久综合中文字幕| 紧缚捆绑精品一区二区| 国产成人在线视频网站| 懂色av一区二区在线播放| 91色婷婷久久久久合中文|