1. win32.e
In Euphoria 2.0 beta's %EUDIR%\doc\library.doc "win32.e" is mentioned many
times, yet there is no %EUDIR%\include\win32.e ???
2. Re: win32.e
Andy Kurnia writes:
> In Euphoria 2.0 beta's %EUDIR%\doc\library.doc
> "win32.e" is mentioned many
> times, yet there is no %EUDIR%\include\win32.e ???
Thanks for reporting this. It should say "dll.e", not "win32.e".
(and %EUDIR% is the value of your EUDIR environment variable.)
Regarding DeleteFile() etc. I haven't found any
free WIN32 API references on the Internet. There's a site
in Europe that someone reported that has a WIN16 reference.
You might have to buy a book, or find someone who has the
large win32.hlp file that comes with some C/C++ compilers
for WIN32. Maybe sometime later I or somebody else will make
a .e file with a bunch of those file functions in it, callable from
Euphoria.
Thanks,
Rob Craig
Rapid Deployment Software
3. Re: win32.e
------ =_NextPart_000_01BD45D0.294BF5C0
Content-Transfer-Encoding: quoted-printable
Andy Kurnia wondered about executing functions from Win32.
The file you want is WIN32.HLP. You can check:
http://www.delphiexchange.com/files/document.html
http://www.axi.net/dex/files/document.html
Some of the functions that you want are part of the API. All of them can =
be called through interrupts; here are some examples. They are not meant =
to be a complete listing.
Any volunteers to put these into a library?
--------------------------
The DeleteFile function=20
Deletes an existing file.=20
--------------------------
BOOL DeleteFile(
LPCTSTR lpFileName // address of name of file to delete =20
);=09
--------------------------
The CopyFile function=20
Copies an existing file to a new file.=20
--------------------------
BOOL CopyFile(
LPCTSTR lpExistingFileName, // address of name of an existing
file=20
LPCTSTR lpNewFileName, // address of filename to copy to=20
BOOL bFailIfExists // flag for operation if file exists=20
);=09
--------------------------
The MoveFile function=20
Renames an existing file or a directory=20
(including all its children).=20
--------------------------
BOOL MoveFile(
LPCTSTR lpExistingFileName, // address of name of the existing file
=
=20
LPCTSTR lpNewFileName // address of new name for the file=20
);=09
--------------------------
Interrupt 21h Function 7139h =20
Make Directory
--------------------------
mov ax, 7139h ; Make Directory
mov dx, seg Name ; see below
mov ds, dx
mov dx, offset Name
int 21h
jc error
=20
--------------------------
Interrupt 21h Function 713Ah =20
Remove Directory
--------------------------
mov ax, 713Ah ; Remove Directory
mov dx, seg Name ; see below
mov ds, dx
mov dx, offset Name
int 21h
jc error
--------------------------
Interrupt 21h Function 713Bh =20
Change Directory
--------------------------
mov ax, 713Bh ; Change Directory
mov dx, seg Path ; see below
mov ds, dx
mov dx, offset Path
int 21h
jc error
--------------------------
Interrupt 21h Function 7141h =20
Delete File
--------------------------
mov ax, 7141h ; Delete File
mov ch, MustMatchAttrs ; see below=20
mov cl, SearchAttrs ; see below
mov dx, seg Filename ; see below
mov ds, dx
mov dx, offset Filename
mov si, WildcardAndAttrs ; see below
int 21h
jc error
--------------------------
Interrupt 21h Function 7147h =20
Get Current Directory
--------------------------
mov ax, 7147h ; Get Current Directory
mov dl, Drive ; see below
mov si, seg Buffer ; see below
mov ds, si
mov si, offset Buffer
int 21h
jc error
--------------------------
Interrupt 21h Function 7156h =20
Rename File
--------------------------
mov ax, 7156h ; Rename File
mov dx, seg OldName ; see below
mov ds, dx=20
mov dx, offset OldName
mov di, seg NewName ; see below
mov es, di=20
mov di, offset NewName
int 21h
jc error
=20
--------------------------
Interrupt 21h Function 716Ch =20
Create or Open File
--------------------------
mov ax, 716Ch ; Create or Open File
mov bx, ModeAndFlags ; see below
mov cx, Attributes ; see below
mov dx, Action ; see below
mov si, seg Filename ; see below
mov ds, si
mov si, offset Filename
mov di, AliasHint ; see below
int 21h
jc error
mov [Handle], ax ; file handle
mov [ActionTaken], cx ; action taken to open file
=20
-- David Cuny
------ =_NextPart_000_01BD45D0.294BF5C0
4. Re: win32.e
Robert Craig wrote:
<snip>
>
> Regarding DeleteFile() etc. I haven't found any
> free WIN32 API references on the Internet. There's a site
<snip>
> Thanks,
> Rob Craig
> Rapid Deployment Software
win32.hlp is at:
it's 7,777k ziped and almost 11 meg unziped.
At first I thought it might be a delphi oriented
reference whi the same name, but that dosn't apear
to be the case though I haven't had a good chance
to look at it thouroghly.
Kasey
5. Re: win32.e
It's the right one. It's the place where many of us got it.
Jesus.
> win32.hlp is at:
>
> ftp://ftp.borland.com/pub/techinfo/techdocs/language/delphi/gen/win32.zip
>
> it's 7,777k ziped and almost 11 meg unziped.
>
> At first I thought it might be a delphi oriented
> reference whi the same name, but that dosn't apear
> to be the case though I haven't had a good chance
> to look at it thouroghly.
>
>
> Kasey
6. Re: win32.e
- Posted by Andy Kurnia <akur at GAMERZ.NET>
Mar 03, 1998
-
Last edited Mar 04, 1998
Robert Craig wrote:
>Regarding DeleteFile() etc. I haven't found any
>free WIN32 API references on the Internet. There's a site
>in Europe that someone reported that has a WIN16 reference.
>You might have to buy a book, or find someone who has the
>large win32.hlp file that comes with some C/C++ compilers
>for WIN32. Maybe sometime later I or somebody else will make
>a .e file with a bunch of those file functions in it, callable from
>Euphoria.
Kasey wrote:
>win32.hlp is at:
>
>
>it's 7,777k ziped and almost 11 meg unziped.
Rob, why not have win32.hlp (zipped) downloadable from
http://members.aol.com/FilesEu ? Or at least, put a link to it... (also
mention it in the .DOCs).
Does someone in this list have a very well file compressor (that beats
"pkzip -ex" of PKZIP 2.04g)? If so, I'd like to know the size of win32.hlp
after being compressed by that algorithm