From clamav-win32-bounces@lists.clamav.net  Tue Jan 13 16:27:01 2009
Return-Path: <clamav-win32-bounces@lists.clamav.net>
X-Original-To: list@tad.clamav.net
Delivered-To: list@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id wfre+ywFWcKV; Tue, 13 Jan 2009 16:27:00 +0100 (CET)
Received: from tad.clamav.net (localhost.localdomain [127.0.0.1])
	by tad.clamav.net (Postfix) with ESMTP id 207DD16C7E7;
	Tue, 13 Jan 2009 16:27:00 +0100 (CET)
X-Original-To: clamav-win32@tad.clamav.net
Delivered-To: clamav-win32@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Pck-D5W2bk23 for <clamav-win32@tad.clamav.net>;
	Tue, 13 Jan 2009 16:26:58 +0100 (CET)
X-Greylist: delayed 494 seconds by postgrey-1.27 at tad;
	Tue, 13 Jan 2009 16:26:58 CET
Received: from mail-ew0-f20.google.com (mail-ew0-f20.google.com
	[209.85.219.20])
	by tad.clamav.net (Postfix) with ESMTP id 5722816C1F1
	for <clamav-win32@lists.clamav.net>;
	Tue, 13 Jan 2009 16:26:58 +0100 (CET)
Received: by ewy13 with SMTP id 13so73323ewy.8
	for <clamav-win32@lists.clamav.net>;
	Tue, 13 Jan 2009 07:26:58 -0800 (PST)
Received: by 10.210.59.14 with SMTP id h14mr11302924eba.81.1231859923416;
	Tue, 13 Jan 2009 07:18:43 -0800 (PST)
Received: from ?192.168.1.25? (140.Red-88-4-227.staticIP.rima-tde.net
	[88.4.227.140])
	by mx.google.com with ESMTPS id u14sm1195580gvf.26.2009.01.13.07.18.40
	(version=SSLv3 cipher=RC4-MD5); Tue, 13 Jan 2009 07:18:41 -0800 (PST)
Message-ID: <496CB130.6000606@gmail.com>
Date: Tue, 13 Jan 2009 16:20:16 +0100
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: clamav-win32@lists.clamav.net
References: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAEtDeRLg7nUiuWzRwyDLGBcKAAAAQAAAArnjFRyi9LUmija3BHFtTMwEAAAAA@creasoftware.net>
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAEtDeRLg7nUiuWzRwyDLGBcKAAAAQAAAArnjFRyi9LUmija3BHFtTMwEAAAAA@creasoftware.net>
From: Sarocet <sarocet@gmail.com>
Subject: Re: [clamav-win32] libclamav.dll & VB6
X-BeenThere: clamav-win32@lists.clamav.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: clamav-win32@lists.clamav.net
List-Id: <clamav-win32.lists.clamav.net>
List-Unsubscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32>,
	<mailto:clamav-win32-request@lists.clamav.net?subject=unsubscribe>
List-Archive: <http://lists.clamav.net/pipermail/clamav-win32>
List-Post: <mailto:clamav-win32@lists.clamav.net>
List-Help: <mailto:clamav-win32-request@lists.clamav.net?subject=help>
List-Subscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32>,
	<mailto:clamav-win32-request@lists.clamav.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: clamav-win32-bounces@lists.clamav.net
Errors-To: clamav-win32-bounces@lists.clamav.net

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

