JON SKEET!我需要你的帮助! [英] JON SKEET! i need your help!

查看:65
本文介绍了JON SKEET!我需要你的帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你提到在之前的帖子中将actole.tlb导入.net -

我想尝试与act 6数据库接口 - 所以我想我会尝试

使用tlbimp导入act.tlb - 但是我的自我注册失败了。


您是否有关于如何在c#中打开数据库的示例源?当我在.net应用程序中使用actole并试图连接我得到

错误-87无法打开数据库时...
br />

所以我想我应该尝试act.tlb,但现在我得到这个

自我注册错误。


你能帮忙吗?我不顾一切地继续这样做。


谢谢,


加里。

you have mentioned importing actole.tlb into .net in a previous post -
i''m trying to interface with an act 6 database - so thought i''d try to
import act.tlb using tlbimp - but i''m getting self registration failed.

Do you have any sample source on how to open a database in c#?

when i used actole in the .net app and tried to connect i''m getting
error -87 can''t open database...

so i thought i should try act.tlb instead, but now im getting this
self-registration error.

Can you assist at all? i''m desperate to move on with this.

Thanks,

Gary.

推荐答案

如何打开''act 6数据库''我的意思!

how to open an ''act 6 database'' i meant !




< ga ******** @ myway.com>在消息中写道

新闻:11 ********************* @ i40g2000cwc.googlegro ups.com ...

|你曾提到在之前的帖子中将actole.tlb导入.net -

|我正在尝试与act 6数据库进行交互 - 所以我想我会尝试

|使用tlbimp导入act.tlb - 但是我的自我注册失败了。

|

|您有关于如何在c#中打开数据库的示例来源吗?

|

|当我在.net应用程序中使用actole并试图连接我得到

|错误-87无法打开数据库...

|

|所以我想我应该尝试act.tlb,但现在我得到这个

|自行注册错误。

|

|你能帮忙吗?我不顾一切地继续这样做。

|

|谢谢,

|

| Gary。

|

如果你从头开始尝试怎么办?

试着用一个简单的脚本打开数据库,就像这样:


''文件:Test.vbs

Dim o

设置o = CreateObject(" actole.database")

o.Open你的完整dbf路径


将其复制到名为test.vbs的文件


...

并使用cscript test.vbs从命令行运行它。

如果这样可行(如果它没有抛出错误),则意味着整个ACT

的东西都已正确安装,只有这样你才能继续从actole.tlb创建

互操作库,或者设置对actole.tlb的引用在

你的项目。


威利。



<ga********@myway.com> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...
| you have mentioned importing actole.tlb into .net in a previous post -
| i''m trying to interface with an act 6 database - so thought i''d try to
| import act.tlb using tlbimp - but i''m getting self registration failed.
|
| Do you have any sample source on how to open a database in c#?
|
| when i used actole in the .net app and tried to connect i''m getting
| error -87 can''t open database...
|
| so i thought i should try act.tlb instead, but now im getting this
| self-registration error.
|
| Can you assist at all? i''m desperate to move on with this.
|
| Thanks,
|
| Gary.
|
What if you try to start from the beginning?
Just try to open the DB using a simple script, like this:

''File : Test.vbs
Dim o
Set o= CreateObject("actole.database")
o.Open "your full dbf path"

copy this to a file named test.vbs

...
and run it from the command line using cscript test.vbs.
If this works (if it doesn''t throw an error) , it means that the whole ACT
stuff is correctly installed, only then you can move on by creating the
interop library from actole.tlb, or setting a reference to the actole.tlb in
your project.

Willy.



威利谢谢你的回复 - 我试过你说的但是它没有b $ b似乎做得太多了。

它没有抛出错误就回来了我一个闪烁的逗号nd提示。


然后我完全移动了数据库,因此

脚本中的路径错误,它仍然没有给我一个错误,只是返回我再次转到

命令提示符。


所以我不确定这是如何让我更接近解决方案=(

Willy thank you for your reply - I tried what you said but it doesn''t
seem to be doing much.
It didn''t throw an error just returned me to a flashing command prompt.

Then i moved the database completely so the path was wrong in the
script and it still didn''t give me an error just returned me to the
command prompt again.

So i''m not sure how this moves me any closer to a solution =(


这篇关于JON SKEET!我需要你的帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆