Home > Net >  How to use these components?
How to use these components?

Time:09-27

In a hotel locks docking interface in the document, there are the following components:

Interface documentation section:


According to the document, should be written by c + + DLL, but I am only c #,
Excuse me, in the component. The lib files and. DLL file how to use? How to complete the lock butt?

CodePudding user response:

Find a DLL function, and then import the DLL, a lot of online, but the key data structure of the c + + and c # is not big, you have to carefully to match,

CodePudding user response:

The above methods, there is a "*" symbol in the c # call, how to deal with

CodePudding user response:

This I like you to write a root you lock interface

CodePudding user response:

You this is called proUsb

CodePudding user response:

refer to the second floor uncle tis response:
method above, there is a "*" symbol c # call, how to deal with


 [DllImport (" proRFL. DLL, "CharSet=CharSet. Ansi, CallingConvention=CallingConvention. StdCall)] 
Public static extern int GetDLLVersion (StringBuilder bufVer);

CodePudding user response:

reference 4 floor Eason0807 response:
you if this is called proUsb

Well, you are written in c #?

CodePudding user response:

reference 4 floor Eason0807 response:
you if this is called proUsb

An error, you can share your code?

CodePudding user response:

"What the DLL:


What reason be?

CodePudding user response:

This DLL project, reference is added to the reference

CodePudding user response:

references 9 f LvBao_117 response:
, reference is added to the project cited this DLL

Still won't do

CodePudding user response:

BadImageFormatException 64 hosts are often not equipped with 32 bit DLL, can't add 64 bit DLL or 32-bit host,
Right project - property - compile - the goal, to "Any CPU" x86, x64 (or if the DLL is a 64 - bit),

CodePudding user response:

11 references github_36000833 response:
BadImageFormatException 64 hosts are often not equipped with 32 bit DLL, can't add 64 bit DLL or 32-bit host,
Right project - property - compile - the goal, to "Any CPU" x86, x64 (or if the DLL is a 64 - bit),

It is as you say here

Just tried, or not, an error: unable to load the DLL "proRFL. DLL" : can't find the specified module,

CodePudding user response:

1, confirm proRFL. DLL in 'in the current directory
'Dependence on 2, confirming proRFL. DLL DLL in, can use dumpbin tool (running VisualStudio development command line window) :

C: \... \ bin \ Debug \ & gt; Dumpbin. Exe/DEPENDENTS proRFL. DLL

CodePudding user response:

Some c + + DLL, c # can't call, for example the MFC, sizers, etc., native c + + library do
It is best to directly write c + + program

CodePudding user response:

The
reference 13 floor github_36000833 reply:
1, confirm proRFL. DLL in 'in the current directory
'Dependence on 2, confirming proRFL. DLL DLL in, can use dumpbin tool (running VisualStudio development command line window) :

C: \... \ bin \ Debug \ & gt; Dumpbin. Exe/DEPENDENTS proRFL. DLL

Both confirmed that no problem

CodePudding user response:

reference 15 floor uncle tis response:
Quote: refer to the 13th floor github_36000833 response:

1, confirm proRFL. DLL in 'in the current directory
'Dependence on 2, confirming proRFL. DLL DLL in, can use dumpbin tool (running VisualStudio development command line window) :

C: \... \ bin \ Debug \ & gt; Dumpbin. Exe/DEPENDENTS proRFL. DLL

Both confirmed
,

I wrote this before, about the external DLLS referenced part, I give you post once, but I use to check the method of DLL version
 
///
///open the USB
///

///
/// 0 indicates success, or failure & lt;/returns>
[DllImport (" proRFL. DLL, "CharSet=CharSet. Ansi, CallingConvention=CallingConvention. StdCall)]
Public static extern int initializeUSB (byte d12);

/////& lt; summary>
/////close the USB port
/////& lt;/summary>
/////& lt; Param name="d12 & gt;" USB type for proUSB fixed 1 & lt;/param>
//[DllImport (" proRFL. DLL, "CharSet=CharSet. Ansi, CallingConvention=CallingConvention. StdCall)]
//public static extern void CloseUSB (byte d12);

///
///card reader buzzer
///

///
///
/// 0 indicates success, or failure & lt;/returns>
[DllImport (" proRFL. DLL, "CharSet=CharSet. Ansi, CallingConvention=CallingConvention. StdCall)]
Public static extern int Buzzer (byte dl2, byte t);

///
///issue "guest card", also known as "guest card" or "room card
"///

///
///
///
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  •  Tags:  
  • C#
  • Related