realbasic-nug
[Top] [All Lists]

Getting number of devices

To: realbasic-nug at lists dot realsoftware dot com
Subject: Getting number of devices
From: Jean-Luc Arnaud <jlarnaud at cdmultimedia dot fr>
Date: Fri, 29 Jun 2007 16:37:23 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Hello to all of you,

Does anyone know a DLL call returning the number 
and/or a list of all devices connected to a PC 
Computer ?
I'm looking for something like "mountvol /l" (DOS 
command, try it in Execute ... CMD and then 
mountvol /l), but I don't want to use a DOS 
Command. Why ? Because, in particular, Vista and 
XP are returning information in a different text 
format. It would probably be the same case with 
different foreign systems. However, I'm 
developing an international app.

Please, note that RB Command "VolumeCount" does 
only return the number of mounted volumes. When 
you have more than 26 devices, it does not see 
the additional ones, nor it does see mounted 
volume points. (FYI, mounted volume points are 
volumes pointing to folders on NTFS HD. Volumes 
may keep a letter or not. I.E., let say I have an 
external disk mounted as E:, it could be mounted 
too as mounted volume point in a 'MyExternalDisk' 
folder and be accessed by E: or 
C:\MountedPoints\MyExternalDisk, provided that 
MountedPoints is a folder containing all my 
mounted points. But it could be unmounted from E: 
and be accessible only through its mounted point 
path).

Any helpful information welcome.

Thanks
-- 
Jean-Luc Arnaud
Directeur Technique


Centre Direct du Multimedia
BP 32
5 rue du 8 Mai 1945
91470 - LIMOURS - FRANCE

Siret 403 860 034 000 20 / Evry

Tel : 33 (0)1 64 91 46 24
Fax : 33 (0)1 64 91 46 87
mailto:jlarnaud at cdmultimedia dot fr
http://www.cdmultimedia.fr

Notre spécialité : Transfert de tous formats 
vidéo vers un format numérique DVD, AVI, 
QuickTime, ?
Montage et authoring de DVD, archivage de vidéo et audio.
Copie de petites séries et de grandes séries de CD et DVD
Matériel et prestation de copie de clés USB, FlashRam Card, disquettes, ?
Hébergement Internet et de streaming vidéo sur nos serveurs.

Frais SACEM/SDRM minorés de 15 à 20% sur duplication de CD et DVD
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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


From  Fri 29 Jun 2007 14:38:14 +0000
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 84B3E30F68A3; Fri, 29 Jun 2007 07:38:32 -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.4 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 0A01630F6898;
        Fri, 29 Jun 2007 07:38:27 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id E400040BFEF;
        Fri, 29 Jun 2007 09:38:12 -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 rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [216.148.227.153])
        by lists.realsoftware.com (Postfix) with ESMTP id 7930040BFE2
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 29 Jun 2007 09:38:09 -0500 (CDT)
Received: from rmailcenter77.comcast.net ([204.127.197.177])
        by comcast.net (rwcrmhc13) with SMTP
        id <20070629143814m130053t5ne>; Fri, 29 Jun 2007 14:38:14 +0000
Received: from [204.14.71.111] by rmailcenter77.comcast.net;
        Fri, 29 Jun 2007 14:38:14 +0000
From: keatk at comcast dot net
To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: REALSQLDatabase and Boolean values
Date: Fri, 29 Jun 2007 14:38:14 +0000
Message-Id: <062920071438 dot 1060 dot 
46851956000231180000042422007510900B049D0199D30E0E05 at comcast dot net>
X-Mailer: AT&T Message Center Version 1 (Oct  4 2006)
X-Authenticated-Sender: a2FhLXdvcmxkQGNvbWNhc3QubmV0
MIME-Version: 1.0
X-Content-Filtered-By: Mailman/MimeDel 2.1.9
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 create the table in the IDE,  use DatabaseRecord to create new records and 
RecordSet to modify them istead of raw SQL and DB.SQLExecute. With all that, 
selects using 0 and 1's for booleans work fine.

-------------- Original message --------------
From: "Dennis Birch" <dennisbirch at gmail dot com>

> On 6/28/07, Karen wrote:
> >
> > On Jun 29, 2007, at 1:01 AM, Dennis Birch wrote:
> >
> > > "SELECT myField FROM myTable WHERE myBooleanField = 1"
> >
> > 1 and 0 work for me for true and false just fine.
>
> They clearly do not work for me. Can you describe your setup in more
> detail? Perhaps I'm doing something wrong with the way I create the
> table or populate the records.
> _______________________________________________
> Unsubscribe or switch delivery mode:
>
>
> Search the archives:
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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


From  Fri 29 Jun 2007 08:58:38 -0600
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 4DE6D30F7C69; Fri, 29 Jun 2007 07:59:04 -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=-3.0 required=4.5 tests=ALL_TRUSTED,AWL,BAYES_00,
        NO_REAL_NAME autolearn=ham version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
        by xmail.realsoftware.com (Postfix) with ESMTP id 55A6130F7C2C;
        Fri, 29 Jun 2007 07:58:48 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id 549A140C254;
        Fri, 29 Jun 2007 09:58:37 -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 mail.verex.com (mail.verex.com [66.116.103.197])
        by lists.realsoftware.com (Postfix) with ESMTP id 7C58140C249
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 29 Jun 2007 09:58:33 -0500 (CDT)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id B636E77471D
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 29 Jun 2007 08:58:38 -0600 (MDT)
Date: Fri, 29 Jun 2007 08:58:38 -0600
Subject: Re: Tenths of seconds in Date
From: joe at strout dot net
To: realbasic-nug at lists dot realsoftware dot com
In-Reply-To: <DD2C55FD-16D9-497B-967B-E53DB91779C8 at pamlicosounds dot com>
X-Mailer: VerEx Email Gateway
Message-Id: <20070629145838 dot B636E77471D at mail dot verex dot com>
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>
MIME-Version: 1.0
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

On Jun 29, 2007, at 03:44 UTC, Dave Shirk wrote:

> I still need a way to determine fractions of a second, and see no
> accurate way to accomplish it.
>
> I can fake it - but in this case it will not be good.

I think it would be perfectly accurate to use Microseconds in
combination with New Date.  Here's what I would do, off the top of my
head:

1. In initialization, go into a tight loop where you repeatedly get the
New Date until you see Floor(TotalSeconds) change.

2. Immediately get the Microseconds value, and store it away.  Now you
have a base Microseconds value aligned with clock seconds.

3. Now whenever you need a time to a 10th of a second, get a New Date,
and get the Microseconds value.  From the latter subtract the base
value you stored in step 2, divide this down to 10ths of a second, and
take that mod 10.  That's your 10th of a second -- multiply by 0.1 and
add to the TotalSeconds from the date.

Cheers,
- Joe

--
Joe Strout -- joe at strout dot net
Strout Custom Solutions, LLC


_______________________________________________
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>