使用VB.NET 进行RFID 编程|第二部分

发布于 2024-12-18 21:34:49 字数 726 浏览 4 评论 0原文

这篇文章与之前的一篇文章相关: 使用 VB.NET 进行 RFID 编程

感谢您的回答,马克,我已经将它们更改为整数(因为它与端口一样长但 dc_init 作为整数时不匹配)我决定用整数更改所有内容。它有效。

现在,我遇到了另一个问题。 dc_init 工作后(在我将这些数据类型更改为整数后),我在调用 dc_cards 函数时遇到问题。

有关 dc_init 函数的更多信息,我还提供了手册文件(来自 RFID 入门包),

以下是您需要查看的内容: 下载

很抱歉,我无法更具体地解释这个问题,因为我无法发布图像,并且只能包含 2 个链接。下载上面的东西也许会有所帮助。它包括我在 VB.NET 中的项目、VB6 示例程序(它可以工作并且完全没有错误)、dcrf32.dll 文件(将它们复制到 system32 RFID 驱动程序)。

我根据VB6示例程序(来自入门包)在VB.NET中执行此操作,但由于将VB6迁移到VB.NET,这有点困难。

我对这段代码真的很奇怪,我从来没有学过它,我不知道该怎么做。也许马克可以在我的情况下进一步帮助我。 多谢。

This post is related to a post before this one :
RFID Programming With VB.NET

Thanks for the answer Mark, i already change those to integer (because it doesnt match when port as long but the dc_init as Integer) i decided to change everything with Integer. And it works.

Now, i'm having another problem.
After the dc_init works (after i change those datatype to integer) i'm having a problem when calling dc_cards function.

For further information about the dc_init function i also include the manual file (from the RFID starter pack)

Here is the things that you need to see :
Download

I'm sorry i can't explain more specific about this problem, because i can't post images and only 2 link that i can include. Maybe it would help by downloading those thing above. It includes my project in VB.NET, and the VB6 example program (it works and no bug at all), the dcrf32.dll file (copy them to system32 the driver for RFID).

I'm doing this in VB.NET according to VB6 sample program (from the starter pack), but it's kind of difficult since migrating VB6 to VB.NET.

i really strange with this code, i never learn it and i don't know what to do. Maybe Mark could help me further in my situation.
Thanks a lot.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风启觞 2024-12-25 21:34:49

dc_card 函数的声明应该是:

Declare Auto Function dc_card Lib "dcrf32.dll" (ByVal icdev As Integer, ByVal mode as Short, snr As Integer) As Short

您应该传递从 dc_init 函数获得的 icdev,模式为 0,您的信息将位于 snr 变量中,状态将位于 st 中。

st = dc_card(ByVal icdev, cardmode, snr)

在你的声明中:

Dim snr, tagtype as Integer
Dim cardmode as Short

...

The Declaration for the dc_card Function should be:

Declare Auto Function dc_card Lib "dcrf32.dll" (ByVal icdev As Integer, ByVal mode as Short, snr As Integer) As Short

You should be passing the icdev you got from the dc_init function, and the mode of 0, your information will be in the snr variable and the status will be in st.

st = dc_card(ByVal icdev, cardmode, snr)

in your declares:

Dim snr, tagtype as Integer
Dim cardmode as Short

...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文