Click here to Skip to main content
11,428,004 members (59,374 online)
Rate this: bad
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 is nt working in windows they asked to call directly.. Here is code for it.
<script language="javascript">
function Transmit_click(){
    DX = new ActiveXObject("DynamicWrapperX"); // Create an object instance.
    DY = new ActiveXObject("DynamicWrapperX"); // Create an object instance.
    alert("Initialising DLLPath");
    var DLLPath="";
        var wshshell = new ActiveXObject("");
        DLLPath = wshshell.ExpandEnvironmentStrings("%DLLPATH1%");
        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)34.6K
Sergey Alexandrovich Kryukov at 8-Nov-12 2:09am
There is not such thing as "Java script" -- Java is not a scripting language.
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".
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?

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

Advertise | Privacy | Mobile
Web01 | 2.8.150428.2 | Last Updated 8 Nov 2012
Copyright © CodeProject, 1999-2015
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