如何處理大於64K的文件

yydyqy 2004-02-03 09:24:18
我用data控件連到一大與64K的文件,當對超出64k的區域進行操作時會有問題,如何進行有效分段,才能對其正確使用
...全文
34 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
sbnth 2004-02-03
  • 打赏
  • 举报
回复
分成多个资源,运行的时候将资源合并到一个内存块中。
yydyqy 2004-02-03
  • 打赏
  • 举报
回复
關鍵是我必須在一個文件中進行操作(用二分法查找所需資料).將多個資源合併後,所佔內存塊又將超過64K,如何解決?請注意下面這段話:
Note that chunks range in size from byte to slightly less than 64KB; you cannot allocate a single chunk larger than this

內存分配函數的定義:
MemPtrNew
Purpose Allocate a new nonmovable chunk in the dynamic heap.
Declared In MemoryMgr.h
Prototype MemPtr MemPtrNew (UInt32 size)
Parameters -> size The desired size of the chunk.
Result Returns pointer to the new chunk, or 0 if unsuccessful.
Comments This routine allocates a nonmovable chunk in the dynamic heap
returns a pointer to the chunk. Applications can use it when
allocating dynamic memory. Note that chunks range in size from
byte to slightly less than 64KB; you cannot allocate a single chunk
larger than this.
In Palm OS 3.5, the dynamic heap is sized based on the amount
memory available, and is generally larger than before.

3,120

社区成员

发帖
与我相关
我的任务
社区描述
塞班系统(Symbian系统)是塞班公司为手机而设计的操作系统,它的前身是英国宝意昂公司的 EP ( Electronic Piece of cheese)操作系统。
社区管理员
  • Symbian社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧