|
|
导航: |
论坛 -> DELPHI技术
斑竹:liumazi,sephil |
|
作者: |
|
2004/2/18 14:30:31 |
标题: |
|
加入我的收藏 |
楼主: |
各位大侠:
我做了一个简单的 COM+, 编译为dll文件. 我在客户端调用服务器上的COM+中的方法, 我在客户端程序中引用COM+中的Lib,比如BarCode_LIB,但是运行客户端程序时, 总提示我"File not found:'BarCode_LIB'",
请给我支持, 如何解决这个问题.
----------------------------------------------
- |
作者: |
bios (阿贡) |
★☆☆☆☆ |
-
|
盒子中级会员 |
|
2004/2/18 14:34:06 |
1楼: |
可能是编译路径
----------------------------------------------
|
作者: |
|
2004/2/18 15:16:10 |
2楼: |
能不能发一点源码呀,,
----------------------------------------------
我爱你delphi
|
作者: |
|
2004/2/18 15:26:07 |
3楼: |
客户端源程序
unit Login;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, BarCodeSys_TLB;
type TFrmLogin = class(TForm) btnLogin: TButton; btnExit: TButton; lblUserName: TLabel; lblPassword: TLabel; lblComputerName: TLabel; edtUserName: TEdit; edtPassword: TEdit; edtComputerName: TEdit; procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end;
var FrmLogin: TFrmLogin;
implementation
{$R *.dfm}
var flag:Integer; MyVar:IComBaCode;
procedure TFrmLogin.FormCreate(Sender: TObject); begin MyVar:=ComBaCode.CreateRemote(edtComputerName.Text); flag:=0; end; end.
----------------------------------------------
-
|
作者: |
|
2004/2/18 15:29:06 |
4楼: |
在我把BaCodeSys_LIB.dcu拷贝到客户端当前目录下,又提示我如下错误:Object or Class required
----------------------------------------------
-
|
作者: |
bios (阿贡) |
★☆☆☆☆ |
-
|
盒子中级会员 |
|
2004/2/18 15:36:11 |
5楼: |
Object or Class 是COM的OCX控件要在注册表中注册guid
----------------------------------------------
|
作者: |
|
2004/2/18 16:37:43 |
6楼: |
上面问题已解决,但是我在客户端运行客户端程序时,出现如下的错误. interface no supported
----------------------------------------------
-
|
作者: |
bios (阿贡) |
★☆☆☆☆ |
-
|
盒子中级会员 |
|
2004/2/18 16:50:01 |
7楼: |
GUID接口不支持!
----------------------------------------------
|
作者: |
|
2004/2/18 16:52:27 |
8楼: |
请问在客户端如何COM+的接口????
----------------------------------------------
-
|
|