I'm having a similar problem with the latest ANT_DLL.dll.
The problem appears to be with ANT_DLL.dll 3/12/2010 69KB
I found an older version of the ANT_DLL.dll 2/29/2008 20KB and my code works fine, though with fewer interface.
bOk = ANT_Init(AntDeviceNumber, AntUtils::BaudRate);
Fails for me in LibusbError(see below).
AntWareII works fine for me. I can see my usb stick, change settings,etc. I've installed the latest drivers. I also tried on a fresh machine that never had any drivers.
I verified the demos in
ANT_USB2_Windows_Package also fail the same way.
DEMO_DLL fails
The new DLL fails on
bOk = ANT_Init(AntDeviceNumber, AntUtils::BaudRate);
ANT_Init is valid, loaded via GetProcAddress and verified.
First-chance exception at 0x7705b727 in DEMO_DLL.exe: Microsoft C++ exception: LibusbError::Enum at memory location 0x0041f35c..
First-chance exception at 0x7705b727 in DEMO_DLL.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7705b727 in DEMO_DLL.exe: Microsoft C++ exception: LibusbError::Enum at memory location 0x0041f360..
First-chance exception at 0x7705b727 in DEMO_DLL.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
'DEMO_DLL.exe': Loaded 'C:\\Users\\tomw\\Desktop\\bikestuff\\ant_usb2_windows_package\\ANT_USB2_Windows_Package\\Debug\\DSI_CP210xManufacturing_3_1.dll', Binary was not built with debug information.
First-chance exception at 0x7705b727 in DEMO_DLL.exe: Microsoft C++ exception: int at memory location 0x0041f63c..
First-chance exception at 0x7705b727 in DEMO_DLL.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
Again same code with the older DLL and everything works.
What's the difference between the 2 DLLs? There is a lot more interfaces and the size is different.
-Tom