K8055n vb.net2015 // vb.net2017 dll

The K8055D.dll [VB.ET 2008] cannot be loaded in VB of Visual Studio 2015 AND 2017.

Who can help with a solution, maybe the DLL needs a recompile in the later Visual Studio versions.

Thanks
Onno

What is the error message you got?

Thanks for the fast reply VEL255! Let me tell you the exact steps I am taking:

  • I am running Visual Studio Community 2017, version 15.8.5. In this environment also Visual Basic is available.
  • I have downloaded you ZIP from the Velleman site k8055n_vm110n_rev1206.
  • After extract I get the folder VM110N(K8055N)_USB_interface_card, this folder contains the folder DLL_v5.0.0.0 ( here is your DLL ) and the folder VM110N(K8055N)_USB_interface_card\Examples\K8055NDemoVB_2008 where I have the VB.net project.
  • I copy the project folder to my VBnet 2018 projects folder.
  • START VS2017
  • Click open project / solution. Browse for the K8055Demo folder in the VBnet projects folder.
  • Select the K8055Demo Visual Studio Solution file.
  • As your source is written in VS2008, VS2017 converts the source code, and messages the following : K8055Demo.sln: Visual Studio needs to make non-functional changes to this project in order to enable the project to open in released versions of Visual Studio newer than Visual Studio 2010 SP1 without impacting project behavior.
  • No errors, just conversion information.
  • Click on BUILD, REBUILD K8055Demo.
  • VS2017 reports: ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
  • Click on the Start button
  • VS2015 reports as follows: System.InvalidOperationException: ‘An error occurred creating the form. See Exception.InnerException for details. The error is: Unable to load DLL ‘k8055d.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)’
  • This error is correct. After loading the project, there is no reference to the K8055 DLL.
  • In solution explorer of VS2017, right click ‘References’, ‘Add reference’, Browsing to the extracted Velleman folder, I select the DLL_v5.0.0.0 and click OK.
  • VS2017 reports the following Error:

A reference to path\DLL_v5.0.0.0\K8055D.DLL could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

I can open the design of the form and see the VB code. The missing reference to the DLL is where it all stops

Looking forward to your replies.

Best regards,
Onno

The K8055D.DLL is a standard Windows DLL, you cannot reference it.

If not yet done: Copy the file K8055D.DLL from the folder \DLL_v5.0.0.0 to the \Windows\ SysWOW64 folder.
If you have 32-bit Windows copy the DLL to \Windows\System32 folder.

Hi VEL255,

Thanks for the assistance.
Yes it works now!

Ordered the kit at CONRAD and will build the application soon.

Best regards, Onno

No problem! Glad to see it’s resolved.