Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Upgrading to VS 2013

Rank

Total Posts: 2

Joined 2014-03-18

PM

Hi ALL!

I have been developing happily in Visual Studio 2005 with the ANT managed library.

I am upgrading the app to Visual Studio 2013 and it no longer works.

The form throws an exception and will not open. I have tracked it down to this line of code (indicated below) which does of course work beautifully in VS2005.

Here is the code from the top of the form.....

Imports ANT_Managed_Library
Imports WMPLib
Imports System.IO
Imports System.Data.SqlClient
Imports CycloProTrainer2015.TurboDataSetTableAdapters

Public Class frmSimulator
'ANT parameters
Public Shared Channel As ANT_Channel
Public Shared ANTSlave As New ANT_Device(0, 57600) <-*****----throws an exception here...*******.......
Public Shared nNetworkKey() As Byte = {&HB9;, &HA5;, &H21;, &HFB;, &HBD;, &H72;, &HC3;, &H45;}
Public Shared nMessagePeriod As UInt16
Public Shared nResponseTime As UInt32
Public Shared bSpeedCadencePaired As Boolean = False
Public Shared bHRPaired As Boolean = False

It is clearly having trouble opening the device. Can anyone help? is there a version of library DLLs that support Windows 8.1 and VS2013?

My USB stick is working according to Device Manager.

In addition SimulANT+1.5 works on the machine. The hardware is good. It is just VS 2013 that has an issue.

Any help would be appreciated as I would love to keep developing with ANT+ but don't want to stick to VS2005.

Thanks for your help.      
Rank

Total Posts: 2

Joined 2014-03-18

PM

Do you know what? I must be getting old or daft or both!

Obviously I have all the DLLs and the Wrapped Library in the development folder.

BUT when it runs of course it runs in the bin/debug folder.

Where I hadn't placed the wrapped library.

DUH!!!!!!!!!!!

A whole day of messing around with this only to find the answer was stupid old me again! grin

Thanks for looking anyway.