Mailing List Archive

R: libclamav.dll & VB6
Hi Sarocet,

thanks for your quick reply.

I've supposed which the libclamav.dll can't be used in VB6.

I will something only for single file scanning (all types includes), for
write a function which so about:

Result = scan(sFilePath)

Where the "scan" function don't use the ClamD daemon, but a more low level
process (like the libclamav.dll) and the "Result" variable return a String
with "pathFileName OK" or "pathFileName VIRUS.NAME".

A dll proxy can be interesting... Do you know an method clear and
transparent for this?

If do you know... please... send me the instructions...

Many thanks

A. Di Nardo


-----Messaggio originale-----
Da: clamav-win32-bounces@lists.clamav.net
[mailto:clamav-win32-bounces@lists.clamav.net] Per conto di Sarocet
Inviato: martedì 13 gennaio 2009 16.20
A: clamav-win32@lists.clamav.net
Oggetto: Re: [clamav-win32] libclamav.dll & VB6

Aniello Di Nardo wrote:
> Hi,
>
>
>
> I've created a little program in VB6 for file scanner using the ClamD
TCP/IP
> daemon on 3310 port.
>
>
>
> My questions are:
>
>
>
> 1 - It's possible to use libclamav.dll in a VB6 App?
>
> 2 - If is possible, how to declare and use the libclamav.dll in a .bas
> module?
>
> 3 - There are a small samples code for this?
>
No. libclamav.dll uses __cdecl. VB can only call stdcall dlls. You would
need at least a proxying dll.
The datatypes would probably be hard to mimic. many structures. Although
perhaps the proxying dll
could allocate it. Which functions did you want to use?

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32
R: libclamav.dll & VB6 [ In reply to ]
Ops... excuse me for the confusion...

now I know that ClamAV is written in C and not in C++

Thanks Nigel

-----Messaggio originale-----
Da: clamav-win32-bounces@lists.clamav.net
[mailto:clamav-win32-bounces@lists.clamav.net] Per conto di Nigel Horne
Inviato: martedì 13 gennaio 2009 17.13
A: clamav-win32@lists.clamav.net
Oggetto: Re: [clamav-win32] libclamav.dll & VB6

Aniello Di Nardo wrote:

> I've found the clamav.h file, but I've not experience in C++ and C++ code
> convertion in VB6.

You need to be aware that ClamAV is written in C not in C++.

> A. Di Nardo

-Nigel

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32