Hi Linomar!
I took a look at this library and I'm afraid you can't use it in Delphi directly. It has no exported functions nor it is a COM-Object, so I wouldn't know how to interact with it in Delphi. I think it's a dll specific to ms c++.(Everybody may feel invited to correct me if I'm wrong) If You want to use functions provided by cryptopp in Delphi you need to write a wrapper to a more common interface, e.g. old standard dll or COM. If you just need a few functions you should maybe try the first approach. Build functions in C that perform the tasks you need directly accessing cryptopp and export them in a classic dll (you should find hints about how to write dll's with MS VC in the internet). In Delphi you just call this functions. This is easy: You just create a unit, and declare the functions/procedures. In the Implementation part it looks like this:
function StartDB(Path: pchar): boolean; external 'MapLib.dll'; cdecl;
Take care of memory Handling!
The second approach(using COM) allows a more generic and comfortable interface, but you'll need a profound experience with COM, ATL and C++ to do this.
Sorry I don't have better news!

brgds
Sven

Linomar da Costa Botelho schrieb:

Hi Sven,

I'm sending you the dll file that I have. This file I have compiled in Visual C 6.0 with the source files that I found in http://www.eskimo.com/~weidai/cryptlib.html Why do you think I won't be able to use this dll with Delphi? Do I have to pass an object as parameter to the functions of this dll? Unfortunately I can't use DCPCrypt because it doesn't have the RSA algorithm.

Thanks for your help.

----- Original Message ----- From: "Sven Weiberg" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, September 12, 2005 9:54 AM
Subject: Re: Help about function calling


I'm not sure if this works at all... afaics Cryptopp is strictly oo c++ and not classic simple function call. I don't know if this is in any form compatible to delphi. But if you send me the compiled dll I might have a look. I would suggest to have a look at Delphi-specific Components, e.g. DCPCrypt.

brgds
Sven

Linomar da Costa Botelho wrote:

--
===================
Sven Weiberg
61169 Friedberg

Tel 06031-63441
Mobil 0178-4207077
ICQ 283-325-817
===================








--
===================
Sven Weiberg
61169 Friedberg

Tel 06031-63441
Mobil 0178-4207077
ICQ 283-325-817
===================

Reply via email to