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.
Related
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?
the question is pretty self-explanatory. I’m coding a UWP app in VB to run on a raspberry pi running Windows 10 IOT core. I want to get a list of available serial ports, and parse that to a combobox, and then open the selected serial port and write strings to it. I knew how to do this before using system.IO.ports on VB.Net, but can someone explain how it’s done when writing for UWP, as the system.IO.ports is not included here.
Thanks for your help!
In UWP, you need to use Windows.Devices.SerialCommunication Namespace APIs to communicate with a serial device and use DataWriter to write string.
You could check the official Custom serial device sample to learn how to use it. There's no vb code sample in this sample, but you could check the c# code sample there. They're very similar.
I am learning VB (using VS 2012) in order to interface with Agilent 33220A function generator (has USB, GPIB and LAN interfaces available) via USB or GPIB.
I am well versed in Matlab but am a beginner in VB and instrument control and interfacing with a PC.
Please could someone direct me to some relevant examples for me to get started?
Ideally, I would like to have examples dealing with Agilent 33220A.
The final aim is to add an additional functionality (of Agilent 33220A) to a code already written in VB (in VS 2012).
Thanks.
Here are all the examples provided by Keysight:
https://www.keysight.com/main/techSupport.jspx?cc=GB&lc=eng&nid=-536902324.536883183&pid=127539&pageMode=DS
Look through the pages for the VB example.
More general: Learn to control instruments with Visual Basic:
https://www.keysight.com/main/editorial.jspx?cc=GB&lc=eng&ckey=474107-1-eng&nid=-11143.0.00&id=474107-1-eng
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.
Just found an old IR reciever (Microsoft eHome Infared Transceiver) and i'm trying to write an application that can use data it captures...
Any examples or jumping off points for this are appreciated.
Looks like it's a USB HID device. As such, you should be able to use Win32 API to talk to it - similar to other USB HID devices.
I think the Microsoft eHome Infared Transceiver is a Human Interface Device (HID), so I'd start with The HID Page.
This has a VB.NET sample on it.