Hi everyone:
I would like to ask a question about programing the LEDs through c++ for il2. As i'm very green with this language i get a lot of error, i "killed" a few already but there's one i can't kill. This is the code i built to try and get the handler so i can use after with some setLED command, ahh yes the code:
// Test Led.cpp : main project file.
#include "stdafx.h"
#include <LogiJoystick.h>
#include <LogiControllerInput.h>
using namespace System;
using namespace LogitechControllerInput;
LogitechControllerInput::ControllerInput;
LPDIRECTINPUTDEVICE8 device_;
ControllerInput* g_controller;
;
int main()
{
g_controller->Update();
for (INT ii = 0; ii < LG_MAX_CONTROLLERS; ii++)
{
if (g_controller->IsConnected(ii))
{
int u=0;
}
if (g_controller->IsConnected(ii,LG_MODEL_G940_THROTTLE))
{
device_ = g_controller->GetDeviceHandle(ii);
}
}
}The error i get is this one:
error LNK2028: unresolved token (0A000344) "public: void __thiscall LogitechControllerInput::ControllerInput::Update(void)" (?Update@ControllerInput@LogitechControllerInput@@$$FQAEXXZ) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)I understand that's something i miss to implement.... but as green as i'm i dont figure out what's it.
Thanks a lot jus for reading.... and huge thanks if anyone points me in the right direction!!