我们老大给我的程序中有这么几句
     sysServerName:=SocketConn.AppServer.GetDBServer; //服务器名称
      sAppDBUser:=SocketConn.AppServer.GetDBUserName;//用户名称
      sPassword:=SocketConn.AppServer.GetDBPassword;  //用户密码
我有点晕,看不太明白,我自己写的时候没有getdbserver这些啊,就是我在Appserver后面再敲.就报错说不能完成调用,有谁能告诉我为什么吗?
还有就是我不太明白scoketconnetion的使用方法,望大虾们指教一二

解决方案 »

  1.   

    SocketConn.AppServer的AppServer其实就是一个IDispatch接口,IDispatch是自动化接口,如果你学过COM建过Automation Object项目就知道了。这个东西按.后后面不会自动列出方法列表,尽管敲上去就是了。
      

  2.   

    GetDBServer
    GetDBUserName
    GetDBPassword
    这几个方法是中间层已经实现了的,SocketConn.AppServer.GetDBServer就是远程调用中间层的GetDBServer方法
      

  3.   

    SocketConn.AppServer的AppServer其实就是一个IDispatch接口,IDispatch是自动化接口。
    GetDBServer 
    GetDBUserName 
    GetDBPassword 
    这几个方法是中间层已经实现了的,SocketConn.AppServer.GetDBServer就是远程调用中间层的GetDBServer方法。
      

  4.   

    DELPHI的三层结构,你的这些方法是在中间层实现的,你只管敲上去就可以了。