利用TDCOMConnection来创建三层结构,调用ClientDataset控件的active=true时出现Error loading midas.dll

解决方案 »

  1.   

    在你的project 中, uses midaslib; 
    試下
      

  2.   

    你在第一次查询的时候try open
      except
       begin
          Reg := TRegistry.Create;
          try
           Reg.RootKey :=HKEY_CLASSES_ROOT;
           if Reg.OpenKey('\CLSID\{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}', True) then
            Reg.DeleteKey('\CLSID\{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}');
            showmessage('加载dll出错请确定后重新打开程序!');
            cancl:=true;
            form1.Close;
            Application.Free;
            exit;
          finally
          Reg.Free;
          inherited;
          end;
        end//
      end;//end of try
    我的问题就解决了你的呢