Okay, here's a strange one for me!
(all lines adjusted to be readable)
File: test.inc
Has just 1 function
DECLARE FUNCTION FindFirstFile LIB "kernel32.dll" _
ALIAS "FindFirstFileA" (lpFileName AS ASCIIZ, _
lpFindFileData AS WIN32_FIND_DATA) AS LONG
(WIN32_FIND_DATA types are declared properly)
File: test.bas
curpath$ = "c:\"
' this works fine!
hFile& = FindFirstFile(curpath$ & "*.*", gfRecs)
' However, make a small change!
curpath$ = "c:\*.*"
' this produces an error in PB6
hFile& = FindFirstFile(curpath$, gfRecs)
Can someone explain why ?
Thanks
MWM
-------------
mwm
Comment