# BlinkStick Interop for COM beta release

**URL:** <https://forums.blinkstick.com/t/blinkstick-interop-for-com-beta-release/84>\
**Category:** News\
**Created:** [January 13, 2015, 10:13am UTC](https://forums.blinkstick.com/t/blinkstick-interop-for-com-beta-release/84 "2015-01-13T10:13:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvydas](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/arvydas/32/242_2.png) [@arvydas](https://forums.blinkstick.com/u/arvydas)\
**Post date:** [January 13, 2015, 10:13am UTC](https://forums.blinkstick.com/t/blinkstick-interop-for-com-beta-release/84/1 "2015-01-13T10:13:01Z")

</div>

I’m very pleased to announce the availability of BlinkStick Interop COM API for Windows. This API allows access to BlinkStick devices from any programming language on Microsoft Windows that supports COM interoperability. One of those languages is Visual Basic and Visual Basic for Applications. It means that now you can directly control BlinkStick from Microsoft Office products like Word, Excel, PowerPoint and Access, but not limited to those applications only.

## Basic usage in Visual Basic

Add reference to BlinkStickInterop.

```auto
' The finder class looks for BlinkStick devices and returns reference to them
Dim finder As New BlinkStickFinder

' Variable to store reference to the device
Dim led As BlinkStick

' Find first BlinkStick on OS
Set led = finder.FindFirst()

If led Is Nothing Then
    MsgBox "BlinkStick not found!"
Else
    Call led.SetColor(0, 255, 0) ' Set the color of the LED to green
End If

```

Full API reference documentation is installed with the library and can be found in the Start menu. The latest [documentation is also available online](http://arvydas.github.io/BlinkStickInterop/).

More details and code examples will be added to [BlinkStick Interop Wiki](https://github.com/arvydas/BlinkStickInterop/wiki/).

## Download

[BlinkStick\_Interop\_1.0\_beta4\_x86.msi](https://www.blinkstick.com/system/releases/windows/BlinkStick_Interop_1.0_beta4_x86.msi) - works only with 32bit applications. Installer for 64bit application support will be added soon.

Requires [Microsoft .NET 4.0](http://www.microsoft.com/en-gb/download/details.aspx?id=17851).

Please note that this is a beta release. If you have any issues, please post them as reply to this topic.

Source code is [available on GitHub](https://github.com/arvydas/BlinkStickInterop).

## Previous releases

- [BlinkStick\_Interop\_1.0\_beta3\_x86.msi](https://www.blinkstick.com/system/releases/windows/BlinkStick_Interop_1.0_beta3_x86.msi)
- [BlinkStick\_Interop\_1.0\_beta2\_x86.msi](https://www.blinkstick.com/system/releases/windows/BlinkStick_Interop_1.0_beta2_x86.msi)
- [BlinkStick\_Interop\_1.0\_beta1\_x86.msi](https://www.blinkstick.com/system/releases/windows/BlinkStick_Interop_1.0_beta1_x86.msi)

## Changelog

**2021-02-02 1.0-beta4**

- Support for Visual Basic 6

**2020-03-22 1.0-beta3**

- Added function IBlinkStick.SetBuffered to enable buffered mode
- Added function IBlinkStick.SetUnbuffered to disable buffered mode
- Added function IBlinkStick.SetColorRange to set buffer for multiple LEDs
- Added function IBlinkStick.Send to send data to LEDs

**2015-01-19 1.0-beta2**

- Added function IBlinkStickFinder.FindSerials to get the list of serial numbers of connected BlinkStick devices

**2015-01-13 1.0-beta1**

- Initial release

---

<div class="post-metadata">

**Author:** ![baseds811](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/b/ed8c4c/32.png) [@baseds811](https://forums.blinkstick.com/u/baseds811)\
**Post date:** [October 9, 2015, 8:32am UTC](https://forums.blinkstick.com/t/blinkstick-interop-for-com-beta-release/84/2 "2015-10-09T08:32:29Z")

</div>

hallo

Everytime I try to add BlinkstickInterop to my references in Visual Basic 2010.

it gives me a error.

A reference could not be added.  
ActiveX type library was exported from a .NET assembly and cannot be added as a reference.

Add a reference from .NET assembly instead.

But it doesnt show up in the .NET references to add. Please help.

---

<div class="post-metadata">

**Author:** ![arvydas](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/arvydas/32/242_2.png) [@arvydas](https://forums.blinkstick.com/u/arvydas)\
**Post date:** [October 9, 2015, 4:56pm UTC](https://forums.blinkstick.com/t/blinkstick-interop-for-com-beta-release/84/3 "2015-10-09T16:56:21Z")

</div>

This library is only useful for classic Visual Basic. If you want to use BlinkStick with [VB.NET](http://VB.NET), just use the BlinkStickDotNet library available here:

> **[arvydas/BlinkStickDotNet](https://github.com/arvydas/BlinkStickDotNet)**
>
> BlinkStick .NET interface to control devices connected to the computer

Download the ZIP archive, open the solution file and compile. There are examples in C# with references to the assemblies and you should be able to easily convert the code to [VB.NET](http://VB.NET). If you need any further assistance, just let me know and I will be happy to help.

---

<div class="post-metadata">

**Author:** ![donblack74](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@donblack74](https://forums.blinkstick.com/u/donblack74)\
**Post date:** [July 3, 2017, 7:25am UTC](https://forums.blinkstick.com/t/blinkstick-interop-for-com-beta-release/84/4 "2017-07-03T07:25:19Z")

</div>

Hello,  
I seem to get an error when using another programming language - in this case Agilent VEE.  
It has given me an error when I try to use the COM library:-

_Failed to obtain a .Net interop assembly for the COM type library:_

_C:\Program Files (x86)\BlinkStick Interop\BlinkStickInterop.tlb_

_To use a COM type library as an .NET assembly, VEE needs to locate either a Primary Interop assembly or locate/generate an interop assembly for the COM library._

_This error occurs either when the primary interop assembly is registered incorrectly or when there is an error during the generate of the interop assembly._

_You may generate the interop assembly yourself and then use the Browse button in the .NET Assembly References dialog._

_To generate the interop assembly yourself, see documentation on “TlbImp” in Microsoft Developer’s Network._

_Unable to load the type library 'C:\Program Files (x86)\BlinkStick Interop\BlinkStickInterop.tlb"._

I am not so good with understanding all this interop “stuff”. Is there something a bit limiting with respect to the COM?  
If I am to use a COM dll, is it possible to obtain the “.h” header file ?

Thanks.

---

<div class="post-metadata">

**Author:** ![si458](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/si458/32/614_2.png) [@si458](https://forums.blinkstick.com/u/si458)\
**Post date:** [June 13, 2020, 7:17pm UTC](https://forums.blinkstick.com/t/blinkstick-interop-for-com-beta-release/84/5 "2020-06-13T19:17:03Z")

</div>

Hi,  
im having issues with the COM control and VB6  
ive referenced the TLB file as VB6 automatically picked it up and was in the list BUT  
every time i try to do anything i keep getting  
**Run-time error ‘-2146234304 (80131040)’ Automation Error**  
on the **finder.FindFirst** line  
im using the very simple basic code from the github wiki

> **[arvydas/BlinkStickInterop - 
Basic usage](https://github.com/arvydas/BlinkStickInterop/wiki#basic-usage)**
>
> BlinkStick COM interface to control devices connected to the computer

ive tried running my vb6.exe as admin and without admin  
any help would be amazing!  
Regards  
Simon

---

<div class="post-metadata">

**Author:** ![smarks\_it](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@smarks\_it](https://forums.blinkstick.com/u/smarks_it)\
**Post date:** [December 7, 2020, 7:21pm UTC](https://forums.blinkstick.com/t/blinkstick-interop-for-com-beta-release/84/6 "2020-12-07T19:21:17Z")

</div>

Hi Simon do you have a resolution to this as im having the same error Stephen

---

<div class="post-metadata">

**Author:** ![arvydas](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/arvydas/32/242_2.png) [@arvydas](https://forums.blinkstick.com/u/arvydas)\
**Post date:** [February 3, 2021, 3:55pm UTC](https://forums.blinkstick.com/t/blinkstick-interop-for-com-beta-release/84/7 "2021-02-03T15:55:49Z")

</div>

New version Beta4 is available for download in the first post which should solve automation errors.
