----- Original Message -----
From: "Nanja Raje Urs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 20, 2003 12:59 AM
Subject: How Link Crypto++5.1 lib to DLL
|
|
| Hi
| I'm in the process of creating regular DLL in Visual studio(VC++). I want
| to use the crypto++ 5.1 library in my DLL workspace. I followed the
| following process
|
| 1)Compiled crypto++5.1 separately
| 2)Included the cryptlib.dsp in my DLL workspace.
| 3)added cryptlib.lib to "link" in settings tab of visual studio.
| Now if I call functions of crypto5.1 library it gives me linking error,
| eventhough i have included header files in my dll woekspace.
| please give me the detail of linking.
|
| Urs
|
Hi Urs,
Are you using CryptoPP:: namespace? For example:
try {
CryptoPP::SHA256 hash;
UCHAR digest[ CryptoPP::SHA256::DIGESTSIZE ];
hash.Update( szText, nCharCount * sizeof( TCHAR ) );
hash.Final( digest );
} catch( ... ) {
bReturn = FALSE;
}
Jeff