if I use strings
when I run this code using asm backend, debug output is 0,3
if I use pointers
when I run this code using asm backend, debug output is 0,5
I discovered this trying to figure out why movefilex_() was failing
So My bigger question is why is this failing?
Code: Select all
Procedure.s GetTempFileName()
Protected lg, tempFilename.s,tempPath.s
tempPATH = Space( #MAX_PATH )
lg = GetTempPath_( #MAX_PATH, tempPATH )
tempPATH=Left( tempPATH, lg )
tempFILENAME=Space( #MAX_PATH )
GetTempFileName_( tempPATH, "huh", 0, tempFILENAME )
debug tempFileName
Debug FileSize( tempFilename ) ; file does exist!
Debug MoveFileEx_( tempFilename, "", #MOVEFILE_DELAY_UNTIL_REBOOT )
Debug GetLastError_(); C=0, asm=3 (system cannot find path specified)
Debug MoveFileEx_( @tempFilename, #NUL, #MOVEFILE_DELAY_UNTIL_REBOOT )
Debug GetLastError_(); C=0, asm=5 (access denied)
ProcedureReturn tempFilename
EndProcedure
DeleteFile( GetTempFileName(),#PB_FileSystem_Force)1259.254764 2024/04/18 04:42:45.768 5932 cc1.exe Invalid parameter passed to C runtime function.[/code]

