Skip to content

Electron + Scanner integration using proprietary DLL #195

Answered by agracio
jtommy asked this question in Q&A
Discussion options

You must be logged in to vote

In pure C# class you can create new CuDoubleSidedScannerAPI() once and then use it in all of your methods, so as I said clone https://github.com/agracio/edge-js-quick-start and create a proper C# class where you instantiate CuDoubleSidedScannerAPI once and all the methods use that instance. Quick start provides great example on how to use compiled C# dlls rather than inline C#.

Something like this

    public class DoubleSidedScanner
    {
        CuDoubleSidedScannerAPI scannerLibrary = new CuDoubleSidedScannerAPI();
        
        public async Task<object> Init(dynamic input)
        {
            return scannerLibrary.EnumScanner();
        }
        
        public async Task<object> S…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jtommy
Comment options

@jtommy
Comment options

Comment options

You must be logged in to vote
5 replies
@jtommy
Comment options

@agracio
Comment options

Answer selected by jtommy
@agracio
Comment options

@jtommy
Comment options

@agracio
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants