W
wzs1976
Unregistered / Unconfirmed
GUEST, unregistred user!
FData: PByte
// Pointer to the file's data when mapped.
PData: PChar;
FData := MapViewOfFile(FMapHandle, FILE_MAP_ALL_ACCESS, 0, 0, FFileSize);
if FData = Nil then
raise Exception.Create('Failed to map view of file');
finally
// Release the file-mapping object handle
CloseHandle(FMapHandle);
end;
try
{ !!! Here is where you would place the functions to work with
the mapped file's data. For example, the following line forces
all characters in the file to uppercase }
PData := PChar(FData);
//pchar不是用来进行字符串转换的 吗 ,看帮助看不懂,这里是怎么用的 请帮忙解释一下!
// Pointer to the file's data when mapped.
PData: PChar;
FData := MapViewOfFile(FMapHandle, FILE_MAP_ALL_ACCESS, 0, 0, FFileSize);
if FData = Nil then
raise Exception.Create('Failed to map view of file');
finally
// Release the file-mapping object handle
CloseHandle(FMapHandle);
end;
try
{ !!! Here is where you would place the functions to work with
the mapped file's data. For example, the following line forces
all characters in the file to uppercase }
PData := PChar(FData);
//pchar不是用来进行字符串转换的 吗 ,看帮助看不懂,这里是怎么用的 请帮忙解释一下!