Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6908351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:33:09+00:00 2026-05-27T08:33:09+00:00

Now, i know a little bit about the class and how to install the

  • 0

Now, i know a little bit about the class and how to install the COMRD800.dll driver (using command prompt : regsvr32).

I’m using Visual Studio 2010 as my text editor, and VB.NET as my programming language.

But here i am, another problem is chasing me again. I don’t know where is my fault.

First, i wanna explain, that when using this RF ID, there are some function to be called before writing and reading the hex key from RF ID tag.
Here are the functions that i have to use before writing or reading.

dc_init(100,115200) 'to open the port, this should be initialized first
dc_beep(icdev,10) 'just to make the device beeping
dc_load_key_hex(icdev,0,0,"ffffffffffff") 'initializing the device key
dc_request(icdev,0,tagtype) 'to get the Card Tag Type
dc_anticoll(icdev,0,snr) 'to get the card's serial number
dc_select(icdev,snr,sizeA) 'to get the size of the card's memory to pc (it always "8")
dc_authentication(icdev,0,0) 'to pass the authentication
dc_write_hex(icdev,1,TestStr) 'writing to the RF ID tag with string TestStr
dc_read_hex(icdev,1,TestStr2) 'Nah, here is where the error occured. 

TestStr2 is a refference variable, in other words, the value of hex would be stored there.
(i should print the TestStr2 to get hex value from RF ID tag)

When the function return “0” it means “correct” or working.
But when the function return <> 0 it means “something is wrong”.

This far, they all return “0”. (Except the dc_read_hex where the error existed).

Explaining :
Those functions came from the driver (dcrf32.dll file). To use them in my project, i must declare them in my VB.NET Module file. (in my project it’s the “KoneksiRFID.vb” file).

So far i have no problem with the functions, but when i get to the “reading” part (dc_read_hex function) i have an error.
It said “FatalExecutionEngineError”.

Images

As you can see, the problem occured when i read the value.
Here is my project if you want to participate in my problem and find a way to solve them.
Thanks Before, for whoever tried to solve this problem. I Appreciate it so much.

My Entire Project (including its driver and RFID manual .pdf)

Oh one more thing, you have to put the “driver (dcrf32.dll, dcrf32.lib,dcrf32.h) files” to your bin or windows/system32 <– i don’t know if this required or not. But, just try it when the vb.net module didn’t work properly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:33:09+00:00Added an answer on May 27, 2026 at 8:33 am

    Your VB6 definition is this:

    Declare Function dc_read_hex Lib "dcrf32.dll" (ByVal icdev As Long, ByVal adr%, ByVal sdata$) As Integer
    

    You currently have your definition as this, you have not adjusted the data type of adr or the return value:

    Declare Function dc_read_hex Lib "dcrf32.dll" (ByVal icdev As Integer, ByVal adr%, ByRef sdata$) As Integer
    

    Try defining it as:

    Declare Function dc_read_hex Lib "dcrf32.dll" (ByVal icdev As Integer, ByVal adr as Short, ByRef sdata as String) As Short
    

    Edit:

    Give this a try from this MSDN page you will probably have to add Imports System.RunTime.InteropServices.

    Declare Function dc_read_hex Lib "dcrf32.dll" (ByVal icdev As Integer, ByVal adr as Short, <MarshalAs(UnmanagedType.LPTStr)> sdata as String) As Short
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm little bit confused with one thing about memory stack. From what I know
Now that LINQ to SQL is a little more mature, I'd like to know
So, I now know what to save from nightly builds . What about when
Now I know about the normal CSS list styles (roman, latin, etc) and certainly
using (FileStream fileStream = new FileStream(path)) { // do something } Now I know
I know a bit about database internals. I've actually implemented a small, simple relational
I'm a little bit confused now after I've seen a code snippet for iPhone
Right now I am writing a little c++ console program using VS2010 Express. The
I'm a little bit confused now. There is a weather and stock widget on
I know very little about web programming but I need to establish a license

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.