Date:  03/04/2002 07:48:48 PM Msg ID:  000413
From:  FoxWeb Support Thread:  000412
Subject:  Re: use of a DLL in FWX
The only VFP commands that are illegal in FoxWeb are the ones that will interfere with FoxWeb's default environment.  The CLEAR DLLS command is illegal only if you don't specify the name of the DLL you want to clear (which causes VFP to clear all DLLs, including the ones used by the FoxWeb foundation program).

The program you listed is perfectly legal and if you want you can even add the following command at the end:
CLEAR DLLS "MDStringFix"

FoxWeb Support Team
support@foxweb.com

Sent by Joël Croquet on 03/04/2002 02:09:19 PM:

I would like to use the following code in a Foxweb program :

DECLARE INTEGER MDStringFix IN aamd532.dll STRING s, LONG l, STRING r

func md5String
PARAM s
r = SPACE(32)
l = LEN(s)
= MDStringFix( s, l, @r)
RETURN r

This code is used to calculate a hash according to the MD5 algorithm.

1) Is the DECLARE dll a legal Foxweb command ?
2) does I have to take care of something ?   For instance, I read in the documentation that the CLEAR DLLS command is illegal.

J. Croquet