Click here to Skip to main content
15,877,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,
i have create one COM dll in MS VS 2008 with function
STDMETHODIMP CPinPad::GenPinBlock(CHAR* WorkKey,CHAR* CardDetailsAll, CHAR* PinBlock). I am trying to call this function from html file as
DZ = new ActiveXObject("kiosk.PinPad");
alert("ALL FUNCTIONS REGISTERED");
pinblock= DZ.GenPinBlock("",CardDetails); //carddetails ="afafaf123132";
For this Iam getting error as ERROR TYPE MISMATCH. I am unable to find the cause. Please help
Posted
Comments
__John_ 16-Nov-12 6:57am    
I assume the language is C++, you dont state.
You need to show declaration of 'CardDetails' and 'pinblock'.
Also CPinPad::GenPinBlock takes 3 strings, you are calling it with 2.

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