Hi all,
I’m currently using my k8055 to run an electric motor, which triggers when certain thresholds are met in a racing simulation game. I’ve been given the dll file to do so, and the source and header files which were used to compile the dll. I’ve dropped the dll file into the appropriate folder, and the k8055D_C dll into the windows directory and it all works fine.
Next I wanted to try and alter the code in order to add a few more features into the plugin and activate a few more digital outputs on the board when other thresholds are met… I used a visual express c++ 2010 project template which was used to create the original dll, and substituted the source and header files for the ones that were given to me. When I tried to compile to see if i could duplicate the plugin before I began altering code, it gave me the following error:
1>------ Build started: Project: ExamplePlugin, Configuration: Debug Win32 ------
1> Creating library .\Debug/ExamplePlugin.lib and object .\Debug/ExamplePlugin.exp
1>DLL_Calls.obj : error LNK2019: unresolved external symbol __imp__ClearAllDigital@0 referenced in function “void __fastcall ResetDigital(void)” (?ResetDigital@@YIXXZ)
1>DLL_Calls.obj : error LNK2019: unresolved external symbol __imp__ClearAllAnalog@0 referenced in function “void __fastcall ResetAnalog(void)” (?ResetAnalog@@YIXXZ)
1>DLL_Calls.obj : error LNK2019: unresolved external symbol __imp__OpenDevice@4 referenced in function “void __fastcall ConnectToHardware(void)” (?ConnectToHardware@@YIXXZ)
1>DLL_Calls.obj : error LNK2019: unresolved external symbol __imp__SetDigitalChannel@4 referenced in function “void __fastcall SetDigital(long)” (?SetDigital@@YIXJ@Z)
1>DLL_Calls.obj : error LNK2019: unresolved external symbol __imp__ClearDigitalChannel@4 referenced in function “void __fastcall ClearDigital(long)” (?ClearDigital@@YIXJ@Z)
1>DLL_Calls.obj : error LNK2019: unresolved external symbol __imp__OutputAnalogChannel@8 referenced in function “void __fastcall SetAnalog(long,long)” (?SetAnalog@@YIXJJ@Z)
1>DLL_Calls.obj : error LNK2019: unresolved external symbol __imp__CloseDevice@0 referenced in function “void __fastcall DisconnectFromHardware(void)” (?DisconnectFromHardware@@YIXXZ)
1>.\Debug/ExamplePlugin.dll : fatal error LNK1120: 7 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Could this be due to the fact that the project is not referenced to the K8055 plugin/library, and if so, how can I go about fixing it?
Kind regards,
Julian
P.S. I’m relatively new to all this!!