我的做法是:新建了一个普通的应用程序 ,加了一个remobject remote datamoudle,再在这个上面放了adoconnect,
adoquery,dataprovider,作为服务器端新建了一个普通的应用程序,加了一个datamoudle 放了ROBinMessage, RODataSnapConnection,ROWinInetHTTPChannel,ClientDataSet,作为客户端运行服务器端后,开始设置客户端,但ClientDataSet找不到DataProvider
错误提示如下
[0E62C0A5]{RemObjects_Core_D11.bpl} Urowininethttpchannel.TROWinInetHTTPChannel.Check + $D9
[0E62C609]{RemObjects_Core_D11.bpl} Urowininethttpchannel.TROWinInetHTTPChannel.IntDispatch + $245
[0E62C927]{RemObjects_Core_D11.bpl} Urowininethttpchannel.TROWinInetHTTPChannel.SendData + $2E7
[0E62C3F8]{RemObjects_Core_D11.bpl} Urowininethttpchannel.TROWinInetHTTPChannel.IntDispatch + $34
[0E606B50]{RemObjects_Core_D11.bpl} Uroclient.TROTransportChannel.Dispatch + $144
[0E6072B3]{RemObjects_Core_D11.bpl} Uroclient.TROTransportChannel.Dispatch + $107
[0B5D28C8]{RemObjects_DataSnap_D11.bpl} Urodatasnap_intf.TAppServer_Proxy.AS_GetProviderNames + $94
[0B5D2912]{RemObjects_DataSnap_D11.bpl} Urodatasnap_intf.TAppServer_Proxy.AS_GetProviderNames + $DE
[0B5D3F9E]{RemObjects_DataSnap_D11.bpl} Urodatasnapconnection.TROCustomDataSnapConnection.GetProviderNames + $2E
[200FDA52]{vcl100.bpl  } StdCtrls.TCustomListBox.GetItemIndex (Line 4393, "StdCtrls.pas" + 2) + $11
[227B438A]{dclmid100.bpl} LMidReg.TProviderNameProperty.GetValues (Line 324, "LMidReg.pas" + 5) + $8
[20E1098B]{vclide100.bpl} IDEInspListBox.TInspListBox.ListDropDown (Line 1626, "ideinsplistbox.pas" + 9) + $12
[20E0C080]{vclide100.bpl} IDEListBtns.TListButton.DropDown (Line 670, "IDEListBtns.pas" + 5) + $A
[20E0BAF2]{vclide100.bpl} IDEListBtns.TListButton.DefaultHandler (Line 491, "IDEListBtns.pas" + 13) + $4
[20E0BB86]{vclide100.bpl} IDEListBtns.TListButton.WMLButtonDown (Line 524, "IDEListBtns.pas" + 7) + $2
[20006A3F]{rtl100.bpl  } System.TObject.Dispatch (Line 9284, "sys\system.pas" + 8) + $0
[2013C527]{vcl100.bpl  } Controls.TControl.WndProc (Line 5146, "Controls.pas" + 83) + $6
[20140158]{vcl100.bpl  } Controls.TWinControl.IsControlMouseMsg (Line 7176, "Controls.pas" + 9) + $25
[201406A7]{vcl100.bpl  } Controls.TWinControl.WndProc (Line 7304, "Controls.pas" + 111) + $6
[11E0F3B9]{cxLibraryD11.bpl} Cxcontainer.TcxCustomInnerListBox.CNDrawItem + $695
[2013FDD0]{vcl100.bpl  } Controls.TWinControl.MainWndProc (Line 7073, "Controls.pas" + 3) + $6
[20040E4C]{rtl100.bpl  } Classes.StdWndProc (Line 11583, "common\Classes.pas" + 8) + $0
[20137642]{vcl100.bpl  } Controls.FindControl (Line 2104, "Controls.pas" + 6) + $9
[201625E8]{vcl100.bpl  } Forms.TApplication.ProcessMessage (Line 8103, "Forms.pas" + 21) + $1
[2016262A]{vcl100.bpl  } Forms.TApplication.HandleMessage (Line 8124, "Forms.pas" + 1) + $4
[2016291F]{vcl100.bpl  } Forms.TApplication.Run (Line 8223, "Forms.pas" + 20) + $3
[0042297A]{bds.exe     } bds.bds (Line 195, "" + 7) + $7
大家帮我看看 错在哪里?
谢谢

解决方案 »

  1.   

    这个,看demo比较好吧。
    客户端要放rochannel,romessage,
    服务端要有一个roserver具体的,研究demo,我说不清楚了
      

  2.   

    remobject remote datamoudle也是使用Indy组件进行通信的
      

  3.   

    根据自带的demo,我想那需要新建一个工程那么我如果想对已有的基于midas的程序进行修改,不就不行了?!对已经写好的midas程序 通过什么办法可以 改成基于remobject的程序呢?
      

  4.   

    在remobject开发n层的数据库程序的文档中,其中有一步:将使用Data Abstract ADO 驱动连接到Microsoft SQL Server。这一步我一直做不出来
    我放上tdaAdoDriver(6.39.0.777),可这个控件什么属性都没有啊
    怎么设置?
      

  5.   

    我也在用remobject,不过没在服务端用过dataprovider.返回数据集都是作为函数返回值返回的
      

  6.   

    wzwcn
    大哥  你就不能共享一个小例子给我们学习一下吗?就帮我们做2-3个form对应2-3个表的更新  查询  就可以了[email protected]
      

  7.   

    我现的正在做,用的是data astract 。