怎么在无delphi的环境下将一个文本文件绑在应用程序中,再运行这个应用程序将这个文本文件释放出来!

解决方案 »

  1.   

    用resource文件。
    提供几个函数:
    var
      temp:tresourcestream;
    begin
    temp:=tresourcestream.create(...);//忘了,查帮助吧。
    resource文件的建立。建议安装rxlib,
      

  2.   

    [email protected]
    给我一个谢谢!!!!!!!
      

  3.   

    你是绑定文本文件到exe吗?还是把exe绑到txt?好像是stream属性可以解决的,memorystream也可以的,看看这两个类的所有性质吧。
      

  4.   

    procedure TMyForm1.ToolButton2Click(Sender: TObject);//捕捉计算器
    var
      HWndwin: HWnd;
    begin
      inherited;
      winexec('calc.exe',SW_SHOWDEFAULT);
      HWndwin:=findwindow(nil,'计算器');
      if HWndwin=null then
         application.MessageBox('没找到!','提示',0)
      else
        begin
          if windows.SetParent(HWndwin,self.Panel2.Handle)=null then
             application.MessageBox('失败了','提示',0);
        end;
    end;
      

  5.   

    The detail please browse http://expert.csdn.net/Expert/TopicView1.asp?id=1326665