資源簡介
CryptoAPI加密解密代碼,vc6.0工程源代碼,可以正常加密解密

代碼片段和文件信息
//?CryptoEncryption.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CryptoEncryption.h“
#include?“CryptoEncryptionDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCryptoEncryptionApp
BEGIN_MESSAGE_MAP(CCryptoEncryptionApp?CWinApp)
//{{AFX_MSG_MAP(CCryptoEncryptionApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCryptoEncryptionApp?construction
CCryptoEncryptionApp::CCryptoEncryptionApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCryptoEncryptionApp?object
CCryptoEncryptionApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCryptoEncryptionApp?initialization
BOOL?CCryptoEncryptionApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CCryptoEncryptionDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1950??2005-07-28?01:07??CryptoEncryption\CryptoEncryption.clw
?????文件????????2203??2005-07-27?22:21??CryptoEncryption\CryptoEncryption.cpp
?????文件????????4398??2005-09-09?11:46??CryptoEncryption\CryptoEncryption.dsp
?????文件?????????555??2005-07-27?22:21??CryptoEncryption\CryptoEncryption.dsw
?????文件????????1434??2005-07-27?22:21??CryptoEncryption\CryptoEncryption.h
?????文件????????5964??2005-07-27?23:56??CryptoEncryption\CryptoEncryption.rc
?????文件????????7023??2005-07-28?01:06??CryptoEncryption\CryptoEncryptionDlg.cpp
?????文件????????2846??2005-07-28?01:05??CryptoEncryption\CryptoEncryptionDlg.h
?????文件????????2177??2005-09-09?11:43??CryptoEncryption\Key.h
?????文件????????3759??2005-07-27?22:21??CryptoEncryption\ReadMe.txt
?????目錄???????????0??2005-09-09?11:16??CryptoEncryption\res\
?????文件????????1078??2005-07-27?22:21??CryptoEncryption\res\CryptoEncryption.ico
?????文件?????????408??2005-07-27?22:21??CryptoEncryption\res\CryptoEncryption.rc2
?????文件?????????832??2005-07-27?22:24??CryptoEncryption\resource.h
?????文件?????????218??2005-07-27?22:21??CryptoEncryption\StdAfx.cpp
?????文件????????1085??2005-07-27?22:25??CryptoEncryption\StdAfx.h
?????目錄???????????0??2005-09-09?12:26??CryptoEncryption\
- 上一篇:漂亮的MFC進度條
- 下一篇:在Linux下編譯并運行C程序
評論
共有 條評論