Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript DLL
Hi all,
I got one dll(name KioskPinPad) ,so from JavaScript I need to call a function(GenPinBlock) which is in dll.
Kindly help me out to find a solution.
Previously they were using some dynamicwrapperx dll..it is nt working in windows 7..so they asked to call directly.. Here is code for it.
<html>
<script language="javascript">
function Transmit_click(){
try{
 
    DX = new ActiveXObject("DynamicWrapperX"); // Create an object instance.
    DY = new ActiveXObject("DynamicWrapperX"); // Create an object instance.
    alert("Initialising DLLPath");
    var DLLPath="";
    try{
        var wshshell = new ActiveXObject("wscript.shell");
        DLLPath = wshshell.ExpandEnvironmentStrings("%DLLPATH1%");
    }catch(err){
        alert("Error in getting DLL Path "+err.description);
    }
DY.Register(DLLPath+"/kioskCardReader", "SwipeCard", "r=s");      // This function has no parameters.

    //Pinpad Keyu 3688A
    DX.Register(DLLPath+"/kioskPinPad", "DownloadWorkKey", "i=s","r=s");
    DX.Register(DLLPath+"/kioskPinPad", "GenPinBlock", "i=ss","r=s");
PinBlock = DX.GenPinBlock("",CardDetails);
Thanks in advance.
Posted 7-Nov-12 21:07pm
Edited 8-Nov-12 0:33am
(no name)33.9K
v3
Comments
Sergey Alexandrovich Kryukov at 8-Nov-12 2:09am
   
There is not such thing as "Java script" -- Java is not a scripting language.
--SA
Naveen_143 at 8-Nov-12 2:43am
   
JavaScript is present and is used for client side operation in web applications. You can search in net for java script.
jim lahey at 8-Nov-12 4:34am
   
Java script != JavaScript
TorstenH. at 8-Nov-12 5:34am
   
how about that? I changed tags. Now the JS people can find it.
Sergey Alexandrovich Kryukov at 8-Nov-12 14:28pm
   
You are way too nice. OP resists it as hard as one can, but you keep seeding the Good. :-)
And the question makes no sense anyway. It looks not that OP does not understand what is "Java", but also what is "call".
--SA
Sergey Alexandrovich Kryukov at 8-Nov-12 14:27pm
   
(Sight...) JavaScript, but not "Java script". Just fix the title of your question!
Also, "Java is present and has nothing to do with JavaScript". Huh?
--SA

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

  Print Answers RSS
0 DamithSL 400
1 Maciej Los 222
2 OriginalGriff 213
3 BillWoodruff 130
4 Zoltán Zörgő 85
0 OriginalGriff 7,969
1 DamithSL 6,139
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,309
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 8 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100