K8061 VB2008 Express Problems

VM140(K8061) - Windows XP – Visual Basic 2008 Express

I have installed drivers and utilities to check the interface board VM140. It works fine.
I’m new to VB2008, I can write easy windows applications and don’t want to spend much time to in VB2008.
I tried to implement k8061.vb of subfolder k8061_vistapack_2007v1\VBexpress2005 but I got plenty of errors.

All I want is to call the communication routines of the K8061.DLL like OpenDevice or SetDigitalChannel. Can you help me?

You may start by going to the subfolder \k8061_vistapack_2007v1\VB.NET 2005 (Pro)
Then just double click K8061_Demo.vbproj.
The Conversion Wizard opens and you can convert the project to VB2008 format.

In this example there are all the DLL function declarations ready.
This example is a very good starting point for your application - I think.

Also, don’t be afraid to read and try to interpret the error messages in Visual Studio, they are there to help you.

Thanks. The Demo is converted now.

However the debugging stops at
Private Sub Connect_Click(. . . ) Handles Connect.Click
Dim intCard As Integer
intCard = OpenDevice

Error Message: „LoaderLock not recognized.“

I have already been at this point before. What can I do next?

The only issue I could find in Microsoft’s knowledgebase is “LoaderLock was detected”. LoaderLock is a Managed Debugging Assistant in Visual Studio. Since you are running managed code this makes sense.

You could try disabling LoaderLock exceptions. Google around for instructions on how to do this.

If all else fails, you might want to start a new project based on the demo project. Analyze the code and copy/paste the parts relevant to what you want to accomplish.