VB6 ActiveX Controls on C # / ASP.NET Website

We have a website based on C # and ASP.NET, I have a barcode scanner with a DLL file to control it, which I can get to work in VB6. Before I delved into exactly how to do this, I would like to get a quick answer, even if you can do what I want in the first place.

Can I write an activex control in VB6 that allows me to control a barcode scanner and implement this activex control on our .NET-based website?

Just to be clear, not asking HOW to do this, just asking if this can be done. I haven't programmed ActiveX yet and haven't touched VB6 for a long time.

Thank!

+3
source share
3 answers

I believe that this should be possible; but you probably need to implement it using JavaScript and ActiveX objects. This will require the custom browser to be configured so that your website can interact with ActiveX objects. A simple example of this is to use a link to launch a program (for example, a remote desktop client):

<script type="text/javascript">
    function runMstsc() {
        var command="mstsc.exe /v:127.0.0.1 /w:1024 /h:768";
        var scriptHost = new ActiveXObject("WScript.Shell");
        scriptHost.run(File);
    }
</script>

Assuming your application is a valid ActiveX control, you should be able to have thumbnails like WScript.Shell.

0
source

ActiveX - , . . , , ActiveX. AJAX/XML/JavaScript .

0

, ActiveX. - , , .

, , - -? ClickOnce, .

0
source

Source: https://habr.com/ru/post/1767080/


All Articles