Using HID barcode scanner with vb.net - vb.net

Is there a simple dll library/assembly that I can add as a reference to my 2019 visual basic program that will provide methods (or a form control so events such as receiving data could be easily handled) to access my HID USB scanner? I'm using the scanner as a HID, not as a keyboard wedge. I have tried 'Windows.Devices.HumanInterfaceDevice.dll' with no luck. When I try to add as a reference. Visual studios tells me to please make sure that it is a valid assembly. It doesn't like it - after some reading it seems that it is a UWP library and can only be used in a UWP project. Again, is there a simple 'dll' library that I can add to my simple winform 2019 visual basic program that will provide methods to access my HID USB scanner? Is it unreasonable that I would expect there to be such a library/assembly/reference?

Related

Are there any example to use DirectX SwapChainPanel in XAML Control with C++/WinRT and Consume it by C#/.Net using Windows App SDK?

I'm new in WinRT or COM application but now looking for good sample program using C++ SwapChainPanel in XAML for DirectX and operate it in C# as desktop applications using WindowsAppSDK.
I know there are some or few examples showing:
Make Windows Runtime Component using C++/WinRT and consume it in C# (but no XAML) The reflection is used.
Make custom control in C++/WinRT and consume it in C++ on the same project.
Make custom control in C#/WinRT and consume it in C# on the same project.
Use DirectX via DirectN or old sharpDX or such C# wrapper. (but no C++)
Make C++ user control as UWP control and consume it in UWP project.
There many comments UWP and WinUI3 is almost equivalent but I cannot find out exact example doing this. If you know some, please point them out.
Or, should I give it up and go another choice? Once I've made a .Net program using OpenTK but not so good at get performance, then this time I'm trying DirectX.
Thanks for any advise.

Using MIDI to USB cable to get information in VB.NET

I recently started developing a program using the k8062d.dll for the Velleman VM116.
My mixing table is a SGM studio 12 from which I have a MIDI to USB cable going into my laptop. I am using Microsoft Visual Basic 2010 to code my program. Now, what I need is when changing a slide on my mixing table it sends an signal through the MIDI cable, but I can't seem to find how I would receive this information in Visual Basic.
Anyone who knows what to do?
Thanks,
Merijn
There are other libraries you can use as well. Like MIDI.NET, The C# Midi Toolkit and perhaps NAudio. Search for managed Midi libraries and pick one that suits you most.
VB.NET does not have built-in MIDI support.
You need to access the raw Win32 MIDI API using P/Invoke.
Alternatively, use some library that already does this.

Flash Interface in Vb.Net

is it possible to create an application with flash interface in Vb?
I'm using visual basic 2008.thanks.
I did that a decade ago in VB6. Back then, there was an SWF player ActiveX that could be added to a form... I think the ActiveX DLL was included in that standard Flash plugin for IE and the only thing I had to do is to add a reference to that DLL.
Back then, it was distributed by Macromedia... I'm not sure if it's still possible since Adobe is the distributor.
Sorry if I don't have any recent informations about this :(

Convert Smart Device Dll to ActiveX control for Windows Mobile

I am using C# and Visual Studio 2008.
I have a class that will turn on the scanner of my Windows Mobile Device and then will capture the read of the scanner when pressed. It will also shut down appropriately and cleanly. I am using a vendor provided SDK to do a lot of the heavy lifting.
I have this working correctly in a Mobile App, but I also need the dll to be able to be called via COM/ActiveX from a web site. I have been going around and around about how to do this. I've bounced between various settings and project types. I've tried converting it over to C++ and ATL. But so far nothing works.
I get conflicting information depending upon where I look. I need help. Can only C++ do this? Is there something I'm missing? I can't be the only person needing to do this. How can I do this?
You cannot create ActiveX/COM components in managed code with the Compact Framework. There is not EE Hosting support, so it simply cannot be done. You will have to write this in C++ (not managed C++, but old-fashioned native).
As a side note that is sometimes overlooked on COM controls, you also have to implement IObjectSafety for the control to work in a browser.

How to commnicate with a PDA built-in scanner using vb.net smart device?

I am developing an application to run on a PDA.
The PDA is running on Windows CE 5.0 and has a barcode scanner integrated.
I am using Framework 3.5 VB.Net 2008 smart device project to develop my application.
Now, my question is about opening the barcode scanner to read scanned barcodes into my PDA application.
I used system.io.ports to open COM1, 2, 3 and I can get them opened but obviously none of theses ports opens up the scanner.
Any idea how to open/communicate with the PDA scanner?
Most Windows CE PDAs have a generic driver that make the integrated barcode reader act as if it was a keyboard. In that case, you don't need to do anything to handle the barcode reader. When it reads, and the focus is on a control where you can type, the input is automatically typed as a string.
There are PDAs of course that don't come pre-configured. In these cases, you can usually find a library with examples even in .NET in the device manufacturer's site.