Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am not a programmer by profession but I can follow code when it is explained, so here goes, I am trying to open a usb fingerprint scanner and smart card reader -FS82HC - in order to both read and write a fingerprint as well as a 6 digit alphanumeric access code to the card, can anyone help?

What I have tried:

I have looked at various sample code samples from various sources including the supplier but the code given is written in VS 2005 whereas I am using Visual Studio 2019 Community
Posted
Updated 21-Dec-19 20:30pm

VS2019 can open VS2005 solution and project. On your file explorer, double-click on the *.sln or *.vcproj, VS2019 will open and ask you want to convert to VS2019 format, select "Yes" and VS2019 will convert your *.vcproj file to *.vcxproj with a conversion report.

Build the C++ project to check for any errors.
 
Share this answer
 
Comments
Member 14670586 22-Dec-19 2:12am    
i have done that, but still my problem is more BASIC i know that in basic i can run a portion of code without using other portions that may be needed overall, how do i run portions of c++ without having to compile first?
Shao Voon Wong 22-Dec-19 3:15am    
In C++, you have to compile and link the executable before running it. Just compile it successfully and run sample program.
Shao Voon Wong 22-Dec-19 4:37am    
BASIC is using an interpreter to interpret and verify the code before running it while C++ is a compiled language that needs everything to be compiled successfully before running. A compiled language is usually faster at running than an interpreted language. I hope I clear your doubts.
RickZeeland 22-Dec-19 4:47am    
Not quite when using VB.NET, then it is "compiled" to IL (intermediate language) :)
Member 14670586 22-Dec-19 6:55am    
I know that

in basic i can type

10
20...
..90
100 open com1 for input
200 read input
300 print input
310
320

and run only lines 100 200 and 300 for example
when it will run

how do i with a blank screen in VS 2019

enter and run

open usb port 1
read usb port 1
print usb port 1

the port is connect to a smart card reader FS82HC



See answers here: Get fingerprint with vb.net :: Support Forum :: WinSCP[^]

You need the The WinSCP .NET assembly winscpnet.dll which is a .NET wrapper.
See: WinSCP .NET Assembly and COM Library :: WinSCP[^]
It can be downloaded here: Downloading and Installing WinSCP .NET Assembly :: WinSCP[^]
 
Share this answer
 
v2
Comments
Member 14670586 22-Dec-19 7:04am    
I have looked there and see the following code fragment

public string ScanFingerprint(
SessionOptions sessionOptions,
string algorithm
)

my problem now is in a BASIC program i could just run the code to see if it would be helpful to me, with VS 2019 how can i run just this code fragment?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900