On Mon 2009-01-26 02:44:58 UTC-0800, Gus Vincent Dato 
(gusvincentd...@yahoo.com) wrote:

> oops... here it is... 

You again neglected to paste the compilation errors you're seeing.

For some reason your email client is sending odd control characters in
your messages.

> #include "md5wrapper.h"
> int main( int argc, char** argv )
> {
> ??// creating a wrapper object
> ??md5wrapper md5;
> ??// create a hash from a string
> ??//std::string hash1 = md5.getHashFromString("Hello World");
> ??// create a hash from a file
> ??std::string hash1 = md5.getHashFromFile("c:\eula.1031.txt");
> ??std::string hash2 = md5.getHashFromFile("c:\eula.1031.txt");

'\' is a special character.  It needs to be escaped:

"c:\\eula.1031.txt"

> ??if(hash1!=hash2) {
> ????printf("not match!\n");
> ??}
> ??return 0;
> }

No prototype for printf().

Reply via email to