CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Interface with SmartCard reader.
I have a question on BCB3.0 program talking to a smart card
reader.Currently i try out on a program talking to smart card reader.
The reader is supplied with API and some library. I have write a simple
program to detected the reader. Here is the program.
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Crypto.h"
#include "hl_media.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
HL_HANDLE h ;
int rc ;
rc = hl_on( &h, (HL_MEDIA)HL_ARCRYPTOSAFE, NULL ) ;
if ( rc != HL_OK )
ShowMessage("Unable to initiate HL session. Error");
else
ShowMessage("Successfull");
}
//---------------------------------------------------------------------------
I have added
#include "hl_media.h" in the heading.
I add some library that is needed in the program(supplied by the smart
card).
When i run the program i got this error message:-
[LinkerError] 'C:\PROGRAM
FILES\BORLAND\CBUILDER3\PROJECTS\CRYPTO\HL_MED32.LIB' contains invalid
OMF record, type 0x21.
When i use back this program in Visual C++ 5.0. it complied and run
without difficulties.
What is the problem. What is OMF record?
Thank in advance for the help.
FB
W Komornicki's Home Page |
Main Index |
Thread Index