Delphi BLOB字段中增加了大型文本的處理能力
procedure TBlobField
var
BlobStream: TBlobStream;
begin
BlobStream := TBlobStream
try
Strings
finally
BlobStream
end;
end;
procedure TBlobField
var
BlobStream: TBlobStream;
begin
BlobStream := TBlobStream
try
Strings
finally
BlobStream
end;
end;
因為Delphi中
procedure TBlobField
var
BlobStream: TBlobStream;
begin
BlobStream := TBlobStream
try
BlobStream
finally
BlobStream
end;
end;
procedure TBlobField
var
BlobStream: TBlobStream;
begin
BlobStream := TBlobStream
try
Stream
finally
BlobStream
end;
end;
對象鏈接和嵌入(Object Linking and Embedding
通過把圖像
OLE已成為操作系統功能上的一大標准
盡管通過OLE可以用來源於不同應用程序的信息創建復合文檔
例如
Delphi
我們分析了Delphi
讓我們來看一段OleContainer對象存儲數據的程序
procedure TOleContainer
var
DataHandle: HGlobal;
Buffer: Pointer;
Header: TStreamHeader;
R: TRect;
……
begin
……
try
……
if FOldStreamFormat then
begin
R := BoundsRect;
Header
Header
Header
Header
end else
begin
Header
Header
end;
Header
Stream
Buffer := GlobalLock(DataHandle)
try
Stream
finally
GlobalUnlock(DataHandle)
end;
finally
ReleaseObject(TempStorage)
ReleaseObject(TempLockBytes)
end;
end;
程序中
Stream
Stream
前一語句是寫入OLE類描述信息
TStreamHeader = record
case Integer of
Signature: Integer;
DrawAspect: Integer;
DataSize: Integer)
PartRect: TSmallRect)
end;
因此讀OLE服務器嵌入數據時
var
Stream : TMemoryStream;
FileStream : TFileStream;
begin
Stream := TMemoryStream
FileStream := TFileStream
with OleContainer
if (State <> osEmpty) then
SaveToStream(Stream)
Stream
FileStream
Stream
FileStream
end;
OleContainer
返回目錄
編輯推薦
Java程序設計培訓視頻教程
J
Visual C++音頻/視頻技術開發與實戰
Oracle索引技術
ORACLE
Java程序性能優化
C嵌入式編程設計模式
Android游戲開發實踐指南
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/25091.html