Re: Power Objects and local directory listings

From: Robert Clevenger <robc_at_magicnet.net>
Date: 1998/01/03
Message-ID: <68jvuh$779$1_at_comet3.magicnet.net>#1/1


What you are probably going to have to do is to call the Windows API calls for
the directory searching routines. Search the WIN32 or WIN16 API calls for:

WIN32:
FindFirstFile, FindClose, FindNextFile, GetFileAttributes, SetFileAttributes, WIN32_FIND_DATA

Or something similiar on WIN16, I don't have the API reference with me.

Here is some information from the Power Object 2.1 Help File:

Syntax for DLL Function and Subroutine Declarations For Windows 3.1 (16-bit):
The syntax for declaring a subroutine defined in a 16-bit DLL: DECLARE SUB sub_name LIB "DLL_name" (arguments) The syntax for declaring a function defined in a 16-bit DLL is similar: DECLARE FUNCTION func_name LIB "DLL_name" (arguments) AS return_value

For Windows 95,NT (32-bit) you need to add an ALIAS, as follows: The syntax for declaring a subroutine defined in a 32-bit DLL: DECLARE SUB sub_name LIB "DLL_name" ALIAS "sub_name" (arguments) The syntax for declaring a function defined in a 32-bit DLL is similar: DECLARE FUNCTION func_name LIB "DLL_name" ALIAS "func_name" (arguments) AS return_value

Hope this helps,

Robert Clevenger

Ed Dana wrote in message <34AD1318.9BED9A38_at_email.sps.mot.com>...
>Anyone have any ideas on how to get a local directory listing from
>Power Objects? It has routines for creating directories, changing paths
>and removing directories, but I can't find any for actually reading a
>directory. I've even tried the SHELL routine and others, with no
>success.
>
>Any Ideas?
>
>Ed Dana,
>Consultant/Developer.
>
>
Received on Sat Jan 03 1998 - 00:00:00 CET

Original text of this message