Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #8911 > unrolled thread
| Started by | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| First post | 2016-01-26 11:07 +0100 |
| Last post | 2016-01-28 10:58 +0100 |
| Articles | 13 — 5 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Smartcard Reader Franz Rachbauer <office@rachbauer.org> - 2016-01-26 11:07 +0100
Re: Smartcard Reader D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2016-01-27 16:51 +0100
Re: Smartcard Reader Franz Rachbauer <office@rachbauer.org> - 2016-01-27 19:11 +0100
Re: Smartcard Reader D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2016-01-27 23:21 +0100
Re: Smartcard Reader "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-01-28 08:13 +0100
Re: Smartcard Reader Franz Rachbauer <office@rachbauer.org> - 2016-01-28 14:11 +0100
Re: Smartcard Reader "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-01-28 15:08 +0100
Re: Smartcard Reader D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2016-01-28 16:53 +0100
Re: Smartcard Reader Sherlock <sherlock@sherlock.com.au> - 2016-01-27 07:55 -0800
Re: Smartcard Reader Sherlock <sherlock@sherlock.com.au> - 2016-01-27 07:59 -0800
Re: Smartcard Reader Sherlock <sherlock@sherlock.com.au> - 2016-01-27 08:02 -0800
Re: Smartcard Reader Franz Rachbauer <office@rachbauer.org> - 2016-01-27 19:32 +0100
Re: Smartcard Reader "Gerhard Bunzel" <g.bunzel@domonet.de> - 2016-01-28 10:58 +0100
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2016-01-26 11:07 +0100 |
| Subject | Smartcard Reader |
| Message-ID | <n87gi2$44d$1@gioia.aioe.org> |
Hi there, does anyone have experience with VO access on usb smartcard readers (keywords PC/SC, APDU, PKCS)? I need access to Globaltrust cards to sign financial data. Regards, Franz
[toc] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2016-01-27 16:51 +0100 |
| Message-ID | <2mphabt0sjelrro5fkiakt9ltm60jdfnit@4ax.com> |
| In reply to | #8911 |
On Tue, 26 Jan 2016 11:07:55 +0100, Franz Rachbauer <office@rachbauer.org> wrote: Hello Franz, >does anyone have experience with VO access on usb smartcard readers >(keywords PC/SC, APDU, PKCS)? I need access to Globaltrust cards to sign >financial data. > In case nobody has, this may help you: http://www.codeproject.com/Articles/16653/A-Smart-Card-Framework-for-NET The full working sample says "card reader using the PC/SC Win32 API" so that should work for you. It doesn't seem to be a lot of code so either using the C# code via com or translating it to Vulcan should do the trick.. Dick
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2016-01-27 19:11 +0100 |
| Message-ID | <n8b18n$1qd8$1@gioia.aioe.org> |
| In reply to | #8912 |
Hi Dick, this page I already found but unfortunately I don't have C# or Vulcan, I only have VO 2.8. Regards, Franz Am 27.01.2016 um 16:51 schrieb D.J.W. van Kooten: > On Tue, 26 Jan 2016 11:07:55 +0100, Franz Rachbauer > <office@rachbauer.org> wrote: > > Hello Franz, > >> does anyone have experience with VO access on usb smartcard readers >> (keywords PC/SC, APDU, PKCS)? I need access to Globaltrust cards to sign >> financial data. >> > In case nobody has, this may help you: > > http://www.codeproject.com/Articles/16653/A-Smart-Card-Framework-for-NET > > The full working sample says "card reader using the PC/SC Win32 API" > so that should work for you. It doesn't seem to be a lot of code so > either using the C# code via com or translating it to Vulcan should do > the trick.. > > Dick >
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2016-01-27 23:21 +0100 |
| Message-ID | <2qfiab9fmo0t2rq9rdos5bm5gkelqaioah@4ax.com> |
| In reply to | #8916 |
On Wed, 27 Jan 2016 19:11:25 +0100, Franz Rachbauer
<office@rachbauer.org> wrote:
Hello Franz,
>Hi Dick,
>this page I already found but unfortunately I don't have C# or Vulcan, I
>only have VO 2.8.
>
I can imagine that it looks a lot more difficult then. But a bit of
investigating here will help you in the future too.
First, download the free (for smaller companies) Visual Studio
Community. C# will be included.
https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx
Unzip the sample project and doubleclick the solution (the .sln file
in the root of the project) and run it. Usually Codeproject programs
will work from the box.
Then, in Visual Studio, select Project, New, Visual C#, Class Library.
You will get code like this:
namespace WhatEverYouCallYourProject
{
// This project can output the Class library as a NuGet Package.
// To enable this option, right-click on the project and select
the Properties menu item. In the Build tab select "Produce outputs on
build".
public class WhateverYouCallYourClass
{
public WhateverYouCallYourClass()
{
// Put your code here
}
}
}
Now you copy the working parts of the sample code where I wrote Put
your code here. Make sure that all the using statements from the
sample are in your library too and also select them using
Add/Reference, .Net. With a bit of luck, it compiles without too much
trouble. It will create a DLL.
Now this is the general way to use that external DLL code from VO, for
my Vulcan DLL it is:
oVulcan := OLEAutoObject{"IC2VulcanMethods.VOVulcanClass"}
IF oVulcan:Finit
cResult:=oVulcan:ShowWin(cData)
ENDIF
IC2VulcanMethods.VOVulcanClass is the namespace you selected, a dot
and the class where your code resides. So in my sample above you use:
WhatEverYouCallYourProject.WhateverYouCallYourClass
and ShowWin is a method within the DLL, passing a paramater cData and
receiving a return value from the DLL in cResult.
I hope this little tutorial helps.
Dick
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2016-01-28 08:13 +0100 |
| Message-ID | <dgttctFqge4U1@mid.individual.net> |
| In reply to | #8916 |
Hi Franz, PMFJI > this page I already found but unfortunately I don't have C# or > Vulcan, I only have VO 2.8. first or later you will need to go forward and use .NET. It is a long and hard way, so it will better to start as soon as possible and to make as much experience as possible. VO applications will run for several years from now on, but you will need .NET for both the frontend (GUI enhancements make a big step with WPF) and the backend (new APIs and functionality will only be available in .NET and not anymore as C DLLs). If you don't do this, at some time you risk to have totally outdated software, both technically and from the look. Wolfgang P.S. at this time, the most of my working is VO, but customers are making pressure for GUI and tecnical enhancements that are possible only with .NET --
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2016-01-28 14:11 +0100 |
| Message-ID | <n8d43a$md7$1@gioia.aioe.org> |
| In reply to | #8919 |
Hi Wolfgang,
what is PMFJI?
My plan is to retire soon and so I do not have the need to make the step
to NET. My problem is, that I have 3 clients with POS software written
in VO 2.8 and so I have the moral responsibility to make it ready for
2017 ("Registrierkassenpflicht"). That should be the last work!
So if someone is able to write a wrapper (preferred)/dll/activeX against
cash that I can call from VO, please contact me.
Maybe I make the step to NET with X#, but only as a private and if it's
frightfully boring.
Regards, Franz
Am 28.01.2016 um 08:13 schrieb Wolfgang Riedmann:
> Hi Franz,
>
> PMFJI
>
>> this page I already found but unfortunately I don't have C# or
>> Vulcan, I only have VO 2.8.
>
> first or later you will need to go forward and use .NET. It is a long
> and hard way, so it will better to start as soon as possible and to
> make as much experience as possible.
>
> VO applications will run for several years from now on, but you will
> need .NET for both the frontend (GUI enhancements make a big step with
> WPF) and the backend (new APIs and functionality will only be available
> in .NET and not anymore as C DLLs).
>
> If you don't do this, at some time you risk to have totally outdated
> software, both technically and from the look.
>
> Wolfgang
>
> P.S. at this time, the most of my working is VO, but customers are
> making pressure for GUI and tecnical enhancements that are possible
> only with .NET
>
>
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2016-01-28 15:08 +0100 |
| Message-ID | <dgulmiF1uatU1@mid.individual.net> |
| In reply to | #8923 |
Hi Franz,
> what is PMFJI?
"Pardon me for jumping in"
> My plan is to retire soon and so I do not have the need to make the
> step to NET. My problem is, that I have 3 clients with POS software
> written in VO 2.8 and so I have the moral responsibility to make it
> ready for 2017 ("Registrierkassenpflicht"). That should be the last
> work!
that is another thing, of course.
Retiring will be an issue for when I'm approaching the 70 years of age,
and since I have now about 17 years until then, I have to make the .NET
step, but probably it will be the last architecture step.
Wolfgang
--
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2016-01-28 16:53 +0100 |
| Message-ID | <8rdkab58kdus1okabneaae5chsgugf3vv0@4ax.com> |
| In reply to | #8923 |
On Thu, 28 Jan 2016 14:11:58 +0100, Franz Rachbauer
<office@rachbauer.org> wrote:
Hello Franz,
>So if someone is able to write a wrapper (preferred)/dll/activeX against
>cash that I can call from VO, please contact me.
If I were you, I'd still give my suggestion a try. First, you should
be able to see if the sample software is doing what you want it to do.
Then it shouldn't be to difficult to isolate the working parts of the
code into a C# library even if you don't know anything about C#. The
most difficult part is to balance the { and } brackets, starting and
ending a block of code.
For getting your end result to work, I think it's a lot easier and
also less expensive to send someone a nearly working solution than let
her/him start from scratch. And after all, you need to have the source
and need to be able to create the DLL yourself too.
I really dislike VS and C# but can write C# programs pretty well
currently (with a lot more lookups than I need for VO) and I use it
for anything I can not do in VO or -directly- Vulcan). In case a more
experienced C# programmer doesn't offer you to help, I can give it a
try if you're stuck. Drop me a mail van kooten at ic2 (dot) com
(without spaces) and I can see if I can help you with it.
Dick
[toc] | [prev] | [next] | [standalone]
| From | Sherlock <sherlock@sherlock.com.au> |
|---|---|
| Date | 2016-01-27 07:55 -0800 |
| Message-ID | <e54c849f-6e1b-492b-91d8-265b2d52df44@googlegroups.com> |
| In reply to | #8911 |
Franz http://www.usblyzer.com/ This might help Phil McGuinness
[toc] | [prev] | [next] | [standalone]
| From | Sherlock <sherlock@sherlock.com.au> |
|---|---|
| Date | 2016-01-27 07:59 -0800 |
| Message-ID | <2e0890f5-ff91-4b2c-bfcc-fca0427e956c@googlegroups.com> |
| In reply to | #8913 |
Franz https://pcsclite.alioth.debian.org/ccid.html Source code for a generic USB CCID (Chip/Smart Card Interface Devices) driver and ICCD (Integrated Circuit(s) Card Devices). Phil McGuinness
[toc] | [prev] | [next] | [standalone]
| From | Sherlock <sherlock@sherlock.com.au> |
|---|---|
| Date | 2016-01-27 08:02 -0800 |
| Message-ID | <7a89c00e-6ecb-4daf-ae40-ca9f2e44f25e@googlegroups.com> |
| In reply to | #8914 |
Franz
http://www.codeproject.com/Articles/23018/How-to-access-SmartCards-simply-and-effectively
Has download for DEMO and driver and source code
The advanced demo demonstrates how to use SmartCards effectively over the basic layer:
There is an APDU processor: it can process the user input
One APDU with spaces separating: "0084 0000 08"
Multi-APDUs: "0084 0000 08; 00A4 0000 02 3F;"
Even an APDU's script file: "c:\myapdu.txt"
ATR analyzing, we demonstrate the protocol: T=0, or T=1.
Multi-APDU console: This consols is useful for these kinds of tests:
Phil McGuinness
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2016-01-27 19:32 +0100 |
| Message-ID | <n8b2ge$1se7$1@gioia.aioe.org> |
| In reply to | #8915 |
Hi Sherlock, thank you for the links, I will have a look over the pages. But it is a little bit difficult for me, because C and C# are not the languages I do. And the main problem starts how I have to do a wrapper class in VO for the PC/SC API. Regards, Franz Am 27.01.2016 um 17:02 schrieb Sherlock: > Franz > > http://www.codeproject.com/Articles/23018/How-to-access-SmartCards-simply-and-effectively > > Has download for DEMO and driver and source code > > The advanced demo demonstrates how to use SmartCards effectively over the basic layer: > > There is an APDU processor: it can process the user input > One APDU with spaces separating: "0084 0000 08" > Multi-APDUs: "0084 0000 08; 00A4 0000 02 3F;" > Even an APDU's script file: "c:\myapdu.txt" > ATR analyzing, we demonstrate the protocol: T=0, or T=1. > Multi-APDU console: This consols is useful for these kinds of tests: > > Phil McGuinness >
[toc] | [prev] | [next] | [standalone]
| From | "Gerhard Bunzel" <g.bunzel@domonet.de> |
|---|---|
| Date | 2016-01-28 10:58 +0100 |
| Message-ID | <n8cop3$aki$1@news.m-online.net> |
| In reply to | #8917 |
Franz, here is a small description for important functions - in german: http://www.smartcard-magic.net/de/pc-sc-reader/winscard-api-c-c/ For that Microsoft WinSCard-API it should not be so hard to create a wrapper. https://pcsclite.alioth.debian.org/api/group__API.html And here are some samples for a SDK: http://www.springcard.com/en/solutions/pcsc-sdk.html http://www.pcscworkgroup.com/ HTH Gerhard Bunzel "Franz Rachbauer" schrieb im Newsbeitrag news:n8b2ge$1se7$1@gioia.aioe.org... Hi Sherlock, thank you for the links, I will have a look over the pages. But it is a little bit difficult for me, because C and C# are not the languages I do. And the main problem starts how I have to do a wrapper class in VO for the PC/SC API. Regards, Franz Am 27.01.2016 um 17:02 schrieb Sherlock: > Franz > > http://www.codeproject.com/Articles/23018/How-to-access-SmartCards-simply-and-effectively > > Has download for DEMO and driver and source code > > The advanced demo demonstrates how to use SmartCards effectively over the > basic layer: > > There is an APDU processor: it can process the user input > One APDU with spaces separating: "0084 0000 08" > Multi-APDUs: "0084 0000 08; 00A4 0000 02 3F;" > Even an APDU's script file: "c:\myapdu.txt" > ATR analyzing, we demonstrate the protocol: T=0, or T=1. > Multi-APDU console: This consols is useful for these kinds of tests: > > Phil McGuinness >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web