I'm getting a headache over this one.
I've checked all the characters over and over again and I still get this error message right after the ALIAS clause : ") expected".
When I take out the section marked "Public/Exported ..." there are no compile errors. When I retype everything just in case there's a hidden character somewhere I still get the error. When I take out the first DECLARE I get the same error on the very next line.
All the SUBs are behaving this way and the FUNCTION just gives a "syntax error" on the empty parenthesis AND when I put "sText AS STRING" into the empty parenthesis. I've read the online help and the printed manual several times this afternoon -- my code looks correct to me.
Either I'm going crazy or I'm doing something wrong. I took my meds today, so I'm inclined to think I'm doing something wrong here.
I've checked all the characters over and over again and I still get this error message right after the ALIAS clause : ") expected".
When I take out the section marked "Public/Exported ..." there are no compile errors. When I retype everything just in case there's a hidden character somewhere I still get the error. When I take out the first DECLARE I get the same error on the very next line.
All the SUBs are behaving this way and the FUNCTION just gives a "syntax error" on the empty parenthesis AND when I put "sText AS STRING" into the empty parenthesis. I've read the online help and the printed manual several times this afternoon -- my code looks correct to me.
Either I'm going crazy or I'm doing something wrong. I took my meds today, so I'm inclined to think I'm doing something wrong here.
Code:
#COMPILER PBWIN 8.04 'compiler required for this code #COMPILE DLL 'generate a Windows Dynamic Link Library #DEBUG ERROR ON 'remove this line for final build OPTION EXPLICIT 'all variables must be declared before use 'Windows API & PBForms include #INCLUDE "Win32api.inc" 'for Windows API calls #INCLUDE "IPHlpAPI.inc" 'for API calls: GetAdaptersInfo() and GetIfTable() #INCLUDE "PBForms.INC" 'PB forms manager 'VB6 modules and classes ported from v2 #INCLUDE "ClassList.bi" #INCLUDE "ModList.bi" '================================== ' Unmodified PB generated code for a DLL here '================================== '===================================================== ' *** Public/Exported Library Methods/Functions *** '===================================================== DECLARE SUB ShowAbout ALIAS "ShowAbout" (ParentAppName AS STRING, _ ParentAppVer AS STRING, _ ESCAppName AS STRING, _ ESCAppVer AS STRING) EXPORT DECLARE SUB ShowSystemInfo ALIAS "ShowSystemInfo" (ParentAppName AS STRING, _ ParentAppVer AS STRING, _ ESCAppName AS STRING, _ ESCAppVer AS STRING) EXPORT DECLARE SUB CheckLic ALIAS "CheckLic" (ParentAppName AS STRING, _ ParentAppVer AS STRING, _ ESCAppName AS STRING, _ ESCAppVer AS STRING, _ Caller AS STRING, _ Flag AS INTEGER) EXPORT DECLARE SUB CSUCheckPassword ALIAS "CSUCheckPassword" (ParentAppName AS STRING, _ ParentAppVer AS STRING, _ ESCAppName AS STRING, _ ESCAppVer AS STRING, _ sOption AS STRING, _ OPTIONAL sPassword AS STRING) EXPORT DECLARE FUNCTION LetCSUPassword ALIAS "LetCSUPassword" () EXPORT AS STRING DECLARE SUB DecodeText ALIAS "DecodeText" (sText AS VARIANT) EXPORT DECLARE SUB EncodeText ALIAS "EncodeText" (sText AS VARIANT) EXPORT '=========================================================================================================
Comment