高分求教两个函数

gqxs 2004-04-08 04:32:45
1、SaveVCLComponentToStream和LoadVCLComponentFromStream函数的使用例子;
2、上面两个函数的应用例子;
...全文
60 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
gqxs 2004-04-21
  • 打赏
  • 举报
回复
散分
yunuo2010000 2004-04-14
  • 打赏
  • 举报
回复
学习
chpst 2004-04-14
  • 打赏
  • 举报
回复
学习学习
凑个热闹,给我一份
我把查到的贴出来 e文不好请楼主解释
Saves a VCL component to a stream.
Header
atlvcl.h
Category
Streaming utilities
typedef IStream __RPC_FAR *LPSTREAM;
void __fastcall SaveVCLComponentToStream(TComponent *instance, LPSTREAM pStream);
Description
Use SaveVCLComponentToStream to save a TComponent descendant using a stream interface.
instance is the component instance to save.
pStream is a pointer to the IStream interface to which the component should be saved.

Loads a VCL component from a stream.
Header
atlvcl.h
Category
Streaming utilities
typedef IStream __RPC_FAR *LPSTREAM;
void __fastcall LoadVCLComponentFromStream(TComponent *instance, LPSTREAM pStream);
Description
Use LoadVCLComponentFromStream to load a TComponent descendant using a stream interface.
instance is the component instance to load.
pStream is a pointer to the IStream interface from which the component should be loaded.

gqxs 2004-04-14
  • 打赏
  • 举报
回复
to jinhaiwu(海魂) :
请你把你的代码运行一下,自己先试验一下好吗?
jinhaiwu 2004-04-13
  • 打赏
  • 举报
回复
LoadVCLComponentFromStream一样;
jinhaiwu 2004-04-13
  • 打赏
  • 举报
回复
#include <atl/atlvcl.h>
void TDropTarget::Create( TComponent *AOwner )
{
LPSTREAM pStream ;
SaveVCLComponentToStream(AOwner,pStream) ;
}
gqxs 2004-04-09
  • 打赏
  • 举报
回复
自己UP
diligent_boy 2004-04-08
  • 打赏
  • 举报
回复
恩,不太好找
thp 2004-04-08
  • 打赏
  • 举报
回复
找找看

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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