realbasic-nug
[Top] [All Lists]

Declare to libclamav.dylib?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Declare to libclamav.dylib?
From: Christopher Jett <chris at jettfuel dot net>
Date: Mon, 30 Jul 2007 19:43:03 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
I have a RB application that currently uses the shell class to scan  
files using ClamAV.  I thought it might be more efficient and more  
elegant to access libclamv.dylib directly via declares rather than  
rely on the ClamAV daemon.  However, I am a total newb when it comes  
to declares.  I thought I'd ask here if anyone had already done some  
work in this regard that they might be willing to share.  Or, if  
there's someone here that might assist me in figuring this out.
--
Chris Jett
chris at jettfuel dot net
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


From  Mon 30 Jul 2007 20:53:18 -0400
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 196FC3806F2E; Mon, 30 Jul 2007 17:53:29 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on 
        www.realsoftware.com
X-Spam-Level: 
X-Spam-Status: No, score=-1.7 required=4.5 tests=AWL,BAYES_00,NO_REAL_NAME 
        autolearn=no version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
        by xmail.realsoftware.com (Postfix) with ESMTP id 18EE83806F28;
        Mon, 30 Jul 2007 17:53:28 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id 4BFC64E47B1;
        Mon, 30 Jul 2007 19:53:16 -0500 (CDT)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from mout.perfora.net (mout.perfora.net [74.208.4.195])
        by lists.realsoftware.com (Postfix) with ESMTP id A7DE34E47A6
        for <realbasic-nug at lists dot realsoftware dot com>;
        Mon, 30 Jul 2007 19:53:11 -0500 (CDT)
Received: from [172.19.56.140] (helo=pustefix136.perfora.net)
        by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis),
        id 0MKp8S-1IFfzC2iZl-0005mt; Mon, 30 Jul 2007 20:53:18 -0400
Message-Id: <27271319 dot 1007461185843198615 dot JavaMail dot servlet at 
perfora>
From: rblists at oatmealandcoffee dot com
To: <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Registration  - How to
MIME-Version: 1.0
X-Priority: 3
X-Binford: 6100 (more power)
X-Mailer: Webmail
X-Originating-From: 32022859
X-Routing: US
X-Message-Id: <32022859$1185843198568172 dot 19 dot 56 dot 14030599177 at 
pustefix136 dot perfora dot net--1342917451>
X-Received: from pustefix136.perfora.net by 146.115.56.112 with HTTP id
        32022859 for [realbasic-nug at lists dot realsoftware dot com];
        Mon, 30 Jul 2007 20:53:18 EDT
Date: Mon, 30 Jul 2007 20:53:18 -0400
X-Provags-ID: V01U2FsdGVkX1+Ssgg6MKNddfE1+0KF01nhPqK0URLcB0m4ACN
        Zm56VkBnp8HS8X2rZRwovNpfiXklkeCmdEqcaEEs/lzPzmzX/i 4i8xFPtEOg=
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

I think you might be muddling things by having the class actually set the key 
each time a new instance is created, when you might really only need it set 
once. The key could be set in the App.Open event and then the classes check to 
see if the key is correct when they're created. If you absolutely must have the 
class set the key, then you could have it check to see if a key has been set in 
the global module first, and if it hasn't, then enter the key. If the key has 
been set, then check to see if the key is correct and take the appropriate 
course of action.

HTH!


Ahh.. yeah to bad the info isn't free though on RbLibrary.com


Ok I put the goods in a Global mod.

A question. Should the key info be entered in the GlobalMod, from the 
first instance of the class ?
Or should the key info be entered in the globalmod from somewhere else, 
say the windows
open event ?

Right now it only works when putting it the first instance of the class.



Philip Regan wrote:

>There's actually a couple of really good articles on RBLibrary.com  
>that get into how to do registration algorithms and the like, and  
>then the article about creating a dictionary-based preferences class  
>pairs with it really well because it shows just how easy it (prefs)  
>can be. I keep a very obfuscated  registration text file in one of  
>the special folders that RB gives native access to that gets read  
>when the app opens to tell it if it's registered or not.
>
>But at least try the global mod.
>
>  
>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>
  • Declare to libclamav.dylib?, Christopher Jett <=