From: "antonio.carlini" <arcarlini@iee.org>
Subject: Re: Dec C; System Services question....
Date: 2000/10/04 [thread overview]
Message-ID: <39DB99A0.F4360A9D@iee.org> (raw)
In-Reply-To: 8rg0j9$fhr$1@nnrp1.deja.com
atadashi@my-deja.com wrote:
>
> Well. I've just about exhausted all my resources. So, as a last
> resort I'm posing this question to this newsgroup.
> I'm using the System Services routines,
> specifically, "SYS$DEVICE_SCAN", from DEC C to locate disk drives on
> the current node. I'm running DEC C v5.7-004 on OpenVMS Alpha v7.2-1.
> Here is a snipet of the source code:
Never, ever supply a small complete example of compilable code
that demonstrates the problem. Support people absolutely hate this,
they just love to have to turn your text into compilable code
by hand over several iterations :-)
[snip uncopilable stuff ...]
> where parm4 is,
> ILE3 stItemList[2] = {
> { 4, DVS$_DEVCLASS, &iItemCode, iZERO },
> { iZERO, iZERO, iZERO, iZERO }
> };
> and...
> unsigned long int iItemCode;
you left out "is apparently uninitialised" although since
there doesn't seem to be a complete example it is hard to tell
for sure :-)
> The code compiles properly, links properly and runs properly but only
> returns an iStatus of 2648 (SS$_NOMOREDEV - no device was found). So,
> the call is working but the device search criteria does not seem to be
> correct.
iItemCode almost certainly had junk in it ...
> If anyone out there has used this system service, could you please help
> me?
If the above doesn't sort you out, post a *small* example
that fails (it doesn't need all the fancy command line
parsing stuff ... just hard code the search string to "*"
and don't bother displaying output .. .that's what DEBUG is for).
Antonio
---------------
Antonio Carlini arcarlini@iee.org
prev parent reply other threads:[~2000-10-04 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-04 4:00 Dec C; System Services question atadashi
2000-10-04 4:00 ` antonio.carlini [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox