资源简介
椭圆曲线加密算法用C++完整实现,很好的东西!!
代码片段和文件信息
/* ==========================================================================
Ecc - Erik‘s Code Collection
Copyright (C) 2003 - Erik Dienske
This file is part of Ecc.
Ecc is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License or
(at your option) any later version.
Ecc is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Ecc; if not write to the Free Software Foundation Inc.
59 Temple Place Suite 330 Boston MA 02111-1307 USA
===========================================================================*/
//---------------------------------------------------------------------------
#include
#pragma hdrstop
#include “EccBrowseForDirectory.h“
#ifndef NO_WIN32_LEAN_AND_MEAN
#error You need to define NO_WIN32_LEAN_AND_MEAN globally.
#endif
#include /* Needs global Conditional Define: NO_WIN32_LEAN_AND_MEAN */
//---------------------------------------------------------------------------
//===========================================================================
namespace ecc {
//===========================================================================
//---------------------------------------------------------------------------
/* Internal function - do not call directly: */
int __stdcall EccBrowseCallbackProc(HWND hwnd UINT uMsg LPARAM lParam LPARAM lpData);
//---------------------------------------------------------------------------
/* Required to communicate with EccBrowseCallbackProc(): */
String EccSelectedDirectory;
//---------------------------------------------------------------------------
bool TBrowseForDirectory::Execute()
{
// Make directory available for EccBrowseCallbackProc():
EccSelectedDirectory = ExcludeTrailingBackslash(Directory);
// Create and clear BROWSEINFO object:
BROWSEINFO BrowsingInfo;
memset(&BrowsingInfo 0 sizeof(BROWSEINFO));
char dir[MAX_PATH];
BrowsingInfo.hwndOwner = Handle;
BrowsingInfo.pszDisplayName = dir;
BrowsingInfo.ulFlags = BIF_RETURNONLYFSDIRS;
BrowsingInfo.lpsztitle = title.c_str();
BrowsingInfo.lpfn = EccBrowseCallbackProc;
// Do the browsing:
LPITEMIDLIST ItemID = SHBrowseForFolder(&BrowsingInfo);
// Retrieve selected folder:
if (ItemID)
{
char DirPath[MAX_PATH] = ““;
SHGetPathFromIDList(ItemID DirPath);
Directory = DirPath;
return true;
}
else // Cancel is pressed:
{
Directory = ““;
return false;
}
}
//---------------------------------------------------------------------------
int __stdcall EccBrowseCallbackProc(HWND hwnd UINT uMsg
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2005-03-24 16:45 ECC (椭圆曲线加密算法) 的源代码c++builder
目录 0 2005-03-24 16:45 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc
文件 135680 2003-12-20 18:38 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Ecc.lib
目录 0 2005-03-24 16:45 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source
文件 210 2003-12-03 19:37 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\Ecc.bpf
文件 5069 2003-12-15 00:34 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\Ecc.bpr
文件 1952 2003-12-15 00:11 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\Ecc.h
文件 3564 2003-12-15 00:10 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccBrowseForDirectory.cpp
文件 2368 2003-12-15 00:10 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccBrowseForDirectory.h
文件 1246 2003-12-15 00:12 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccCheckStringList.cpp
文件 2141 2003-12-15 00:31 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccCheckStringList.h
文件 2641 2003-12-17 12:19 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccError.cpp
文件 2469 2003-12-15 00:39 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccError.h
文件 12356 2003-12-16 22:12 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccFile.cpp
文件 3981 2003-12-15 00:10 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccFile.h
文件 5262 2003-12-15 00:10 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccFileProperties.cpp
文件 4088 2003-12-15 00:10 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccFileProperties.h
文件 5669 2003-12-16 22:12 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccFileVersionInfo.cpp
文件 2937 2003-12-15 00:10 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccFileVersionInfo.h
文件 5697 2003-12-15 00:10 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccFormMemory.cpp
文件 3186 2003-12-15 00:28 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccFormMemory.h
文件 4794 2003-12-15 00:33 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccMisc.cpp
文件 2899 2003-12-15 00:33 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccMisc.h
文件 18506 2003-12-15 00:10 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccPropertyHandler.cpp
文件 3629 2003-12-15 00:31 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccPropertyHandler.h
文件 4174 2003-12-15 00:10 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccShortcutFile.cpp
文件 2252 2003-12-15 00:31 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccShortcutFile.h
文件 5754 2003-12-16 22:12 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccString.cpp
文件 3576 2003-12-16 22:11 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccString.h
文件 2380 2003-12-15 00:10 ECC (椭圆曲线加密算法) 的源代码c++builder\Ecc\Source\EccTimeLapse.cpp
............此处省略15个文件信息
评论
共有 条评论