delphi5下面的字体也和6里面的不一样,在6下面保存过以后,在5下面是不能编译通过了
并且5下面没有variant单元门,6下面有的一定要

解决方案 »

  1.   

    DELPHI6增加了许多新的单元并且将很多单元里的函数重新划分,你不是给自己找麻烦吗
      

  2.   

    这里有篇文章,你看看。
    http://www.csdn.net/Develop/article/17%5C17152.shtm
      

  3.   

    呵呵,可以在程序里用 
    sourcestring 
     xxCaption = '标题' ;
    xx.Caption := xxCaption ;我遇到过这样的情况,还好问题不是特严重,直接在记事本里改过来了。
      

  4.   

    我用D7写的文件,在记事本打开也是类似于#21321#34212#21132#21321的
    这些是中文才会出现,不过不影响我编译啊,只要不用到D7独有的控件,用低版本的Delphi还是可以编译的啊
      

  5.   

    delphi6以后dfm里面的文本是用unicode存储的
      

  6.   

    你安装一下unicode字体
    如果还不行
    那就不行了
      

  7.   

    高版本兼容低版本可以
    低版本兼容高版本,No Way !
      

  8.   

    我以前也遇到过,我是在D6中将.dfm文件打开,然后粘到用D5打开的.dfm文件中,然后用D5保存。但要是大批量的话……我暂时还没办法,重复以上操作吧,估计一天也就能搞掂了
      

  9.   

    var
      I:integer;
    begin
    for i:= 20000 to 80000 do
    if widechar(i)='我' then
     memo1.Lines.Add (inttostr(i)+'=我')
      else if widechar(i)='的' then
         memo1.Lines.Add (inttostr(i)+'=的')
         else if widechar(i)='窗' then
           memo1.Lines.Add (inttostr(i)+'=窗')
            else if widechar(i)='体' then
         memo1.Lines.Add (inttostr(i)+'=体');
    end;
    结果:
    20307=体
    25105=我
    30340=的
    31383=窗
      

  10.   

    Delphi6帮助里有这么一段话,看看就明白区别了。
    你可以到大富翁里找个转换Form的工具。In the past, binary form files (or DFM files) created with newer versions of Delphi could be read by older versions. This is no longer true in Delphi 6; some binary form files may be read incorrectly because of the way that Delphi 6 performs internal string streaming. In the past, streaming was performed assuming a locale specific character set. Now streaming assumes that the character set is UTF-8. As a consequence, if there are characters with a code greater than 127 (such as the copyright symbol ? in a Delphi 6 binary form file, that file cannot be read by older versions of Delphi.If you intend to use a Delphi 6 form file (including older form files imported into and modified with Delphi 6) in an older version of Delphi, the file should be saved in text format instead of binary format.
      

  11.   

    网上找一个D6TOD5的工具!
      

  12.   

    还没解决啊!!!!!
    我写了一个“字符及汉字编码查询器”for 98 xp,也能根据编码(10和16进制)来反查汉字和字符,不知对你是否有用?
      

  13.   

    正解:
    在D6中将.dfm文件以.txt文件保存
    在d5转过来
      

  14.   

    将你的窗体在转换回来吧!ObjectResourceToText,在结合TStream