Click here to Skip to main content
15,921,179 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fading text out Pin
bektek25-Oct-04 9:20
bektek25-Oct-04 9:20 
GeneralRe: fading text out Pin
bektek25-Oct-04 9:21
bektek25-Oct-04 9:21 
QuestionC++ debuggin question - detect change in variable? Pin
Indrawati24-Oct-04 19:16
Indrawati24-Oct-04 19:16 
AnswerRe: C++ debuggin question - detect change in variable? Pin
Lim Bio Liong24-Oct-04 21:21
Lim Bio Liong24-Oct-04 21:21 
GeneralRe: C++ debuggin question - detect change in variable? Pin
dharani26-Oct-04 22:04
dharani26-Oct-04 22:04 
GeneralActiveX and Japanese Pin
phuna24-Oct-04 19:02
phuna24-Oct-04 19:02 
GeneralP310 Encoder Pin
Anonymous24-Oct-04 17:56
Anonymous24-Oct-04 17:56 
GeneralRe: P310 Encoder Pin
newgirls24-Oct-04 19:16
newgirls24-Oct-04 19:16 
-->here my latest code but still has a lot of error

// P310C Encoder

#include "cst25110.h"
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>

SCR_SCR_PARAMS myParams; // each instance represents one encoder
void main(void)
{
.
.
myParams.scrAttr.Port = 1; // e.g., target encoder attached to com 1
ctOpen(&myParams.scrAttr);
.
subfunction();
.
.
ctClose(&myParams.scrAttr);
}
void subfunction()
{
.
iccApduExchange(&myParams); // note we did not declare in this function
}



// P310C Smart Card Encoder

ctOpen();
ctEngageCard(); // engage contact station
ctColdReset(); // for SLE 4428 cards.


int main () {
char buffer[256];
ifstream examplefile ("CADID_listing.txt"); // The CAD_PIN, CARD_TYPE, CAD_ID will not be encoded to the card
if (! examplefile.is_open()) // For example each card will be encoded by 55555 00000001 0410000001 ( CAD_PIN, CARD TYPE and CAD_ID )
{ cout << "Error opening file"; exit (1); }

while (! examplefile.eof() )
{
examplefile.getline (buffer,100);
cout << buffer << endl;
}
return 0;
}


ctDeactivate(); // power down smartcard
ctDisengageCard(); // disengage contact station
ctClose();


-> And this is cst25110.h

/*

CST25110.h - Header file for CST25110.DLL API Development

Copyright 2003 Innolab Pte Ltd

*/





// 1. TYPE DEFINITIONS
typedef struct
{
HANDLE hComm; // Transparent handle, leave it alone!
DWORD Port; // Serial Target
DWORD Target; // indicate slot when necessary esp. APDU exchange
} SCR_SCR_ATTR;

typedef struct {
BYTE Protocol;
BYTE Convention;
BYTE pATRmode;
BYTE F;
BYTE D;
BYTE N;
BYTE IFSC;
BYTE IFSD;
BYTE CWT;
BYTE BWT;
BYTE ProgVoltage;
BYTE ProgCurrent;
BYTE ClockStop;
BYTE Class;

} SCR_ICC_PARAMS;


typedef struct
{
BYTE RequestBuffer[256];
DWORD RequestLength; // no of bytes in request buffer
BYTE ReplyBuffer[256];
DWORD ReplyLength; // no of bytes in reply buffer
SCR_ICC_PARAMS iccParams;
SCR_SCR_ATTR ScrAttr;
} SCR_SCR_PARAMS;

typedef struct {
BYTE mfKey[6];
} MF_KEY_DATA;
GeneralAccess violation error. Pin
pmahindrakar24-Oct-04 16:36
pmahindrakar24-Oct-04 16:36 
GeneralRe: Access violation error. Pin
bryce24-Oct-04 19:20
bryce24-Oct-04 19:20 
GeneralRe: Access violation error. Pin
pmahindrakar25-Oct-04 20:52
pmahindrakar25-Oct-04 20:52 
GeneralFile Version Pin
picasso224-Oct-04 16:33
picasso224-Oct-04 16:33 
GeneralRe: File Version Pin
bryce24-Oct-04 16:40
bryce24-Oct-04 16:40 
GeneralMS Web Browser Control and activex control in dll Pin
bconline200224-Oct-04 15:43
bconline200224-Oct-04 15:43 
GeneralSplitter Windows OnDraw Pin
Michael Hendrickx24-Oct-04 15:39
Michael Hendrickx24-Oct-04 15:39 
QuestionCould I get the bitmaps stored at display memory Pin
Guoguor24-Oct-04 14:23
Guoguor24-Oct-04 14:23 
AnswerRe: Could I get the bitmaps stored at display memory Pin
Maximilien24-Oct-04 14:56
Maximilien24-Oct-04 14:56 
GeneralRe: Could I get the bitmaps stored at display memory Pin
Guoguor24-Oct-04 15:14
Guoguor24-Oct-04 15:14 
GeneralClass access from windows callback Pin
Member 67873924-Oct-04 13:18
Member 67873924-Oct-04 13:18 
GeneralPreprocessor output Pin
Member 67873924-Oct-04 13:15
Member 67873924-Oct-04 13:15 
GeneralRe: Preprocessor output Pin
Chris Richardson25-Oct-04 11:49
Chris Richardson25-Oct-04 11:49 
GeneralDerive a Queue class from a List class using private inheritance Pin
flowerkarma24-Oct-04 12:11
flowerkarma24-Oct-04 12:11 
GeneralQuestion about XP themes Pin
Marcus Spitzmiller24-Oct-04 9:21
Marcus Spitzmiller24-Oct-04 9:21 
GeneralRe: Question about XP themes Pin
Neville Franks24-Oct-04 10:29
Neville Franks24-Oct-04 10:29 
GeneralRe: Question about XP themes Pin
Marcus Spitzmiller1-Nov-04 16:43
Marcus Spitzmiller1-Nov-04 16:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.