Click here to Skip to main content
13,046,184 members (69,630 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 20:07pm
Updated 7-Nov-12 23:33pm
There is not such thing as "Java script" -- Java is not a scripting language.
Naveen_143 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 8-Nov-12 4:34am
Java script != JavaScript
TorstenH. 8-Nov-12 5:34am
how about that? I changed tags. Now the JS people can find it.
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".
(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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 8 Nov 2012
Copyright © CodeProject, 1999-2017
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