I have been attempting to use K8062d.dll with Visual C++ 8. Below is the gist of my code, which executes but does not work. Am I missing something?
I should first point out that I have tested with the already compiled DMX_demo.exe program, which controls my lamps properly.
HINSTANCE m_hK8062dDLL;
int init();
using namespace std;
int main(int)
{
int h = init();
StartDevice();
SetChannelCount(32);
SetData(2, 250);
cout << "Press Enter to \"CloseDevices\" and to \"FreeLibrary\"" << endl;
cin.get();
StopDevice();
FreeLibrary(m_hK8062dDLL);
return EXIT_SUCCESS;
}
int init()
{
// Loading DLL
m_hK8062dDLL = LoadLibrary(“k8062d.dll”); // This is loading properly
// DLL function assignments - These appear to be assigned properly
StartDevice = (PFNSTARTDEVICE)GetProcAddress(m_hK8062dDLL, “StartDevice”);
SetData = (PFNSETDATA)GetProcAddress(m_hK8062dDLL, “SetData”);
SetChannelCount = (PFNSETCHANNEL)GetProcAddress(m_hK8062dDLL, “SetChannelCount”);
StopDevice = (PFNSTOPDEVICE)GetProcAddress(m_hK8062dDLL, “StopDevice”);
return 0;