資源簡介
采用C++實現了橢圓曲線算法,至少本人是測試運用成功過的,期望可以對大家有所幫助

代碼片段和文件信息
/*?==========================================================================
ecc?-?Erik‘s?Code?Collection
Copyright?(C)?2003-2005?-?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“
#include? //?Requires?global?Conditional?Define:?NO_WIN32_LEAN_AND_MEAN
//---------------------------------------------------------------------------
//===========================================================================
namespace?ecc?{
//===========================================================================
//?===?Some?Declarations:?===
static?int?__stdcall?eccBrowseCallbackProc(HWND?hwnd?UINT?uMsg?LPARAM?lParam?LPARAM?lpData);
/* Internal?function?-?do?not?call?directly.
Sets?initial?directory?for?SHBrowseForFolder?(in?EccBrowseForDirectory).?*/
static?String?FBfdSelectedDirectory;
/* Required?to?communicate?with?EccBrowseCallbackProc():?*/
//===========================================================================
bool?TBrowseForDirectory::Execute()
{
//?Make?directory?available?for?eccBrowseCallbackProc():
FBfdSelectedDirectory?=?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????????=?FFlags;
BrowsingInfo.lpsztitle??????=?title.c_str();
BrowsingInfo.lpfn???????????=?eccBrowseCallbackProc;
//?Do?the?browsing?BIF_NEWDIALOGstyle?(part?of?BIF_USENEWUI)?requires?Ole(Un)Initialize:
if?(FFlags?&?BIF_NEWDIALOGstyle)
OleInitialize(NULL);
else
CoInitializeEx(NULL?COINIT_APARTMENTTHREADED);
LPITEMIDLIST?pidl?=?SHBrowseForFolder(&BrowsingInfo);
if?(FFlags?&?BIF_NEWDIALOGstyle)
OleUninitialize();
else
CoUninitialize();
//?Retrieve?selected?folder:
if?(pidl)
{
char?path[MAX_PATH]?=?““;
SHGetPathFromIDList(pidl?path);
Directory?=?IncludeTrailingBackslash(path);
return?true;
}
else?//?Cancel?is?pressed:
{
Directory?=?““;
return?false;
}
}
//--------------------
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????155136??2006-09-24?14:38??ecc\ecc.lib
?????文件????????210??2004-04-15?22:46??ecc\Source\ecc.bpf
?????文件???????5434??2006-09-24?14:38??ecc\Source\ecc.bpr
?????文件???????1969??2005-02-04?12:19??ecc\Source\ecc.h
?????文件???????4466??2005-04-02?20:23??ecc\Source\eccBrowseForDirectory.cpp
?????文件???????3311??2005-02-04?12:19??ecc\Source\eccBrowseForDirectory.h
?????文件???????1251??2005-02-04?12:19??ecc\Source\eccCheckStringList.cpp
?????文件???????2160??2005-02-04?12:19??ecc\Source\eccCheckStringList.h
?????文件???????2646??2005-02-04?12:19??ecc\Source\eccError.cpp
?????文件???????2479??2005-02-04?12:19??ecc\Source\eccError.h
?????文件??????14865??2005-03-01?14:52??ecc\Source\eccFile.cpp
?????文件???????4778??2005-02-04?12:19??ecc\Source\eccFile.h
?????文件???????5263??2005-02-04?12:19??ecc\Source\eccFileProperties.cpp
?????文件???????4123??2005-02-04?12:19??ecc\Source\eccFileProperties.h
?????文件???????5682??2005-02-04?12:19??ecc\Source\eccFileVersionInfo.cpp
?????文件???????3023??2005-02-04?12:19??ecc\Source\eccFileVersionInfo.h
?????文件???????6087??2005-02-04?12:19??ecc\Source\eccFormMemory.cpp
?????文件???????3272??2005-02-04?12:19??ecc\Source\eccFormMemory.h
?????文件???????6615??2006-09-24?14:36??ecc\Source\eccMisc.cpp
?????文件???????3359??2005-02-04?12:19??ecc\Source\eccMisc.h
?????文件??????14717??2005-02-04?12:19??ecc\Source\eccPropertyHandler.cpp
?????文件???????7502??2005-02-04?12:19??ecc\Source\eccPropertyHandler.h
?????文件???????7487??2005-10-17?17:22??ecc\Source\eccRecentFiles.cpp
?????文件???????5252??2005-10-17?17:24??ecc\Source\eccRecentFiles.h
?????文件???????2376??2006-09-24?14:37??ecc\Source\eccRelease.cpp
?????文件???????1772??2005-03-05?20:44??ecc\Source\eccRelease.h
?????文件???????4179??2005-02-04?12:19??ecc\Source\eccShortcutFile.cpp
?????文件???????2253??2005-02-04?12:19??ecc\Source\eccShortcutFile.h
?????文件??????10272??2005-02-04?12:19??ecc\Source\eccString.cpp
?????文件???????5909??2005-02-04?12:19??ecc\Source\eccString.h
............此處省略9個文件信息
- 上一篇:linux下c語言實現多線程web服務器
- 下一篇:c語言課程設計迷宮求解.zip
評論
共有 條評論