I’m trying to upgrade to the new FrontPanel 3.0 API. Here are the errors I am getting while trying to compile the examples (Counters, Pipetest) using the new API files (okFrontPanelDLL.cpp)
D:\acassidy\opal_kelly\reg_app\wxWidgets\okFrontPanelDLL.cpp(72) : error C2562: ‘SetReference’ : ‘void’ function returning a value
D:\acassidy\opal_kelly\reg_app\wxWidgets\okFrontPanelDLL.h(252) : see declaration of ‘SetReference’
D:\acassidy\opal_kelly\reg_app\wxWidgets\okFrontPanelDLL.cpp(122) : error C2562: ‘SetReference’ : ‘void’ function returning a value
D:\acassidy\opal_kelly\reg_app\wxWidgets\okFrontPanelDLL.h(294) : see declaration of ‘SetReference’
D:\acassidy\opal_kelly\reg_app\wxWidgets\okFrontPanelDLL.cpp(737) : error C2562: ‘okFrontPanelDLL_GetVersion’ : ‘void’ function returning a value
D:\acassidy\opal_kelly\reg_app\wxWidgets\okFrontPanelDLL.h(122) : see declaration of ‘okFrontPanelDLL_GetVersion’
I am using Microsoft Visual C++ 6. Under project settings, I have selected Multithread DLL.
Initially I only included the OKFrontPanelDLL.h file and I get the following error:
Linking…
testOKFrontPanelDLL.obj : error LNK2001: unresolved external symbol _okFrontPanelDLL_LoadLib
Debug/testOKFrontPanelDLL.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
After I included the OKFrontPanelDLL.cpp file in the project, I get the following error message:
Compiling…
okFrontPanelDLL.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\testOKFrontPanelDLL\okFrontPanelDLL.cpp(72) : error C2562: ‘SetReference’ : ‘void’ function returning a value
c:\program files\microsoft visual studio\myprojects\testokfrontpaneldll\okfrontpaneldll.h(256) : see declaration of ‘SetReference’
C:\Program Files\Microsoft Visual Studio\MyProjects\testOKFrontPanelDLL\okFrontPanelDLL.cpp(122) : error C2562: ‘SetReference’ : ‘void’ function returning a value
c:\program files\microsoft visual studio\myprojects\testokfrontpaneldll\okfrontpaneldll.h(298) : see declaration of ‘SetReference’
C:\Program Files\Microsoft Visual Studio\MyProjects\testOKFrontPanelDLL\okFrontPanelDLL.cpp(749) : error C2562: ‘okFrontPanelDLL_GetVersion’ : ‘void’ function returning a value
c:\program files\microsoft visual studio\myprojects\testokfrontpaneldll\okfrontpaneldll.h(124) : see declaration of ‘okFrontPanelDLL_GetVersion’
Error executing cl.exe.
I am new to programming so any help would be greatly appreciated. I am unable to get started on the work because of this so if anyone of you has seen this error and know how to work around it, please help me. I think it is some settings with Microsoft Visual IDE. I tried reading the front panel pdf document but there isn’t any guide to resolve this.
Can you advise me how can I get the newer version of the front panel dll? I tried going to the front panel page but there is no reference to how to download it.