🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
1 messages
1 total messages Started by Skaarak Thu, 13 Jul 2006 18:45
IdHashMessageDigest5 Exception
#2270
Author: Skaarak
Date: Thu, 13 Jul 2006 18:45
24 lines
1433 bytes
BCB6, Indy9 (9.0.50)

I'm trying to get the hash of a file, I'm using this code:

void __fastcall TMainForm::Button2Click(TObject *Sender)
{
    unsigned int val;

    TIdHashMessageDigest5 *MD5 = new TIdHashMessageDigest5 ();
    val = MD5->HashValue("pvr2_0001.txt");
    debugbox2->Text = val;
    delete MD5;
}

Whenever the HashValue function is run it raises an Exception that goes
into the IdHashMessageDigest.hpp file:
public:
 inline unsigned __fastcall  HashValue(const AnsiString ASrc){ return 
TIdHash128::HashValue(ASrc); }

Is there some other trick to this method?

Thanks
-Cory 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads