检查你的Api函数个别函数在98下是正常的在2000下不支持

解决方案 »

  1.   

    第一個問題我自已解決了,是因為"字符集"原來是"西歐",我把他改成了BIG5就好了。
    至於第二個問題,是因為我調用了Shell32.dll裡的API函數Shell_NotifyIcon.
    而2000的shell32.dll和98的shell32.dll好像不同(字節大小都不一樣)。該如何解決呢。
      方法除了"重新编译"就沒別的嗎?
      

  2.   

    你的第二个问题也应该是字符集的问题吧,更改那3个tab的字符集试试!
      

  3.   

    看來是沒人能回答我的問題了,我對CSDN是越來越失望了
      

  4.   

    你是台湾的朋友吧?
    技术问题形形色色,专家也有盲区,何况expert也不能成天挂在网上啊,而且很多人都强调 急急急……可是再急一时半会儿也不一定能碰上能解决问题的人,是不是?
            这个时候没人能回答你的问题,不代表永远也没人答,耐心点吧
    帮你up
      

  5.   

    unit Unit4;interfaceuses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs,ShellApi, StdCtrls;type
      TForm1 = class(TForm)
        Button1: TButton;
        Button2: TButton;
        procedure Button1Click(Sender: TObject);
        procedure Button2Click(Sender: TObject);
      private
        { Private declarations }
        IconData    : TNotifyIconData;
      public
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
    begin
      With IconData do Begin
        cbSize := SizeOf(icon);
        Wnd := Handle ;
        uID := 1;
        uFlags := NIF_ICON Or NIF_MESSAGE Or NIF_TIP;
        uCallBackMessage := WM_USER+1001;
        hIcon := Application.Icon.Handle;
        StrCopy(szTip,Pchar('haha'));
      End;  Shell_NotifyIcon(NIM_ADD,@IconData);end;procedure TForm1.Button2Click(Sender: TObject);
    begin
      Shell_NotifyIcon(NIM_DELETE,@IconData);end;end.像这样的代码在Win2000里编译后,在win2000正常执行,在win98就不行。
    到底是怎么回事啊