Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: win32

libclamav.dll & VB6

 

 

ClamAV win32 RSS feed   Index | Next | Previous | View Threaded


dinardo at creasoftware

Jan 13, 2009, 6:15 AM

Post #1 of 4 (1284 views)
Permalink
libclamav.dll & VB6

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?

I would something like this:

Declare Function cl_scanfile Lib "libclamav.dll" ....

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

Thanks.... for all

A. Di Nardo
--
View this message in context: http://www.nabble.com/libclamav.dll---VB6-tp21433070p21433070.html
Sent from the clamav-win32 mailing list archive at Nabble.com.

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


dinardo at creasoftware

Jan 13, 2009, 6:21 AM

Post #2 of 4 (1213 views)
Permalink
libclamav.dll & VB6 [In reply to]

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?



I would something like this:



Declare Function cl_scanfile Lib "libclamav.dll" ....



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



Thanks.... for all



A. Di Nardo

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


sarocet at gmail

Jan 13, 2009, 7:20 AM

Post #3 of 4 (1214 views)
Permalink
Re: libclamav.dll & VB6 [In reply to]

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


njh at bandsman

Jan 13, 2009, 8:12 AM

Post #4 of 4 (1209 views)
Permalink
Re: libclamav.dll & VB6 [In reply to]

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

ClamAV win32 RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.