F
fenghuo
Unregistered / Unconfirmed
GUEST, unregistred user!
这是一个简单的代码,可是调试时出错,谁能告诉我原因?
var
RealKey: pbyte;
RealKeyLength: integer;
begin
RealKeyLength := length('abcd');
getmem(RealKey, RealKeyLength);
StrPCopy(@RealKey, 'abcd');
freemem(RealKey, RealKeyLength);
var
RealKey: pbyte;
RealKeyLength: integer;
begin
RealKeyLength := length('abcd');
getmem(RealKey, RealKeyLength);
StrPCopy(@RealKey, 'abcd');
freemem(RealKey, RealKeyLength);