I am having some further issues with using the ANT DLL in a standalone executable. I developed an application using Qt 4.7. Initially I could not get the ANT DLL to load. I tried installing the MS VC++ 2008 redistributable package but that did not help. I finally ended up installing a demo version of MS VC++ and that worked.
I now have my application as a standalone executable and I am trying it on different machines. It works fine on my development machine and another machine that had MS VC++ installed. However when I try it on machines that do not have MS VC++ installed, the application crashes when it tries to load the DLL. As an experiment I tried installing the demo version of MS VC++ on one of the machines that had the program crash and after that the executable worked fine.
I know there is something I am overlooking. On a computer on which the application does not work I verified that it had Microsoft.NET version > 3.5 (and sp1 installed). It also has MS VC++ 2008 redistributable installed. I checked if ANTWareII worked on the machine, and it does. ANTWare recognizes the ANT dongle and communicates with it fine.
In my application directory I am including the ANT DLLs. One of the readme files states that
"The ANT_NET.dll needs to be included as a reference, while the ANT_WrappedLib.dll, along with
the Silabs Dynamic Libraries, just needs to be present in the working directory of your
application." I am not sure what "ANT_NET.dll needs to be included as a reference" means since I have not done that in the instances in which the standalone works.
We are demonstrating the application to other people and asking them to install MS VC++ demo program is not practical. Any thoughts on what I am missing?
Thanks.