如题:
如有一段DELPHI源代码如下,如何改写VB的代码,各位高人指教.
fillchar(photo,100,#0);
Len:=GetPhotoBMP(@photo[1],100*1024);
fileHandle:=FileCreate('F:\VC++Project\IDCardReader\Debug\photo.bmp');
if fileHandle<>0 then
begin
FileWrite(fileHandle,photo,Len);
FileClose(fileHandle);
image1.Picture.LoadFromFile('F:\VC++Project\IDCardReader\Debug\photo.bmp');
end;
end;