C
cjsyf
Unregistered / Unconfirmed
GUEST, unregistred user!
function RemoveFolder(FolderNameChar
bDeleteReadOnly:boolean
bDeleteFolder:boolean): boolean
stdcall;
var
bSuccess:boolean;
begin
bSuccess := true
//这一句出错
CleanFolder(FolderName,bDeleteReadOnly,bSuccess);
if bDeleteFolder = true then
begin
RemoveFolder := RemoveDirectory(FolderName);
exit;
end;
RemoveFolder := bSuccess;
end;
这段代码运行时一直发生这样的错误:
Access violation at address 00235569 ....Read of address 0000005C.
调试时发现是赋值语句出错。请问如何改
bDeleteReadOnly:boolean
bDeleteFolder:boolean): boolean
stdcall;
var
bSuccess:boolean;
begin
bSuccess := true
//这一句出错
CleanFolder(FolderName,bDeleteReadOnly,bSuccess);
if bDeleteFolder = true then
begin
RemoveFolder := RemoveDirectory(FolderName);
exit;
end;
RemoveFolder := bSuccess;
end;
这段代码运行时一直发生这样的错误:
Access violation at address 00235569 ....Read of address 0000005C.
调试时发现是赋值语句出错。请问如何改