I am trying to compile a sample project shown here for C #. It needed to be converted to VS2010, but it worked fine. It builds, starts, but then dies when it tries to access a DLL function.
I made a series of images to show my steps. As you can see, the device that I designed is connected and configured correctly, but I really do not think this has anything to do with the problem. Inside the Form1.cs file, the following comment explains how to use the DLL:
I followed the instructions above and fixed the undefined link to the FTChipID namespace. I also manually checked the Object Browser to make sure the GetNumDevices function exists, and it does.
Pressing the button causes this error:
DLLNotFoundException was unhandled:
Unable to load DLL 'FTChipID.dll': the specified module was not found. (Exception from HRESULT: 0x8007007E)
in this line of code:
FTChipID.ChipID.GetNumDevices(ref numDevices);
Now you might think: "the error says that it needs FTChipID.dll, not FTChipIDNet.dll." I am wondering the same thing. I have FTChipID.dll along with the .lib and .h files, but I donβt know how to use them or where they should be for this program to find them. I tried to add a link to FTChipID.dll, but VS2010 said
... \FTChipID.dll . , , COM.
, . ? .