summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/FaceTrackNoIR.cpp
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2011-04-07 17:44:03 +0000
committerWim Vriend <facetracknoir@gmail.com>2011-04-07 17:44:03 +0000
commit394dca378432d8ba65dd84432ea1a85ddea636fd (patch)
tree52ab9c5a900e78529f823d40ac0dc6b3b233e072 /FaceTrackNoIR/FaceTrackNoIR.cpp
parentb07a116670236fe13262f04d618b11460f4e4b73 (diff)
PPJoy in DLL
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@65 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FaceTrackNoIR.cpp')
-rw-r--r--FaceTrackNoIR/FaceTrackNoIR.cpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/FaceTrackNoIR/FaceTrackNoIR.cpp b/FaceTrackNoIR/FaceTrackNoIR.cpp
index 03f819de..49a6aab2 100644
--- a/FaceTrackNoIR/FaceTrackNoIR.cpp
+++ b/FaceTrackNoIR/FaceTrackNoIR.cpp
@@ -31,7 +31,7 @@
*/
#include "FaceTrackNoIR.h"
#include "tracker.h"
-#include "PPJoyServer.h"
+//#include "PPJoyServer.h"
#include "FSUIPCServer.h"
//#include "FTIRServer.h"
//#include "FGServer.h"
@@ -835,9 +835,28 @@ QLibrary *protocolLib;
case FREE_TRACK:
case SIMCONNECT:
break;
+
case PPJOY:
- _server_controls = new PPJoyControls( this, Qt::Dialog );
+ protocolLib = new QLibrary("FTNoIR_Protocol_PPJOY.dll");
+
+ getIT = (importGetProtocolDialog) protocolLib->resolve("GetProtocolDialog");
+ if (getIT) {
+ IProtocolDialogPtr ptrXyz(getIT());
+ if (ptrXyz)
+ {
+ pProtocolDialog = ptrXyz;
+ pProtocolDialog->Initialize( this );
+ qDebug() << "FaceTrackNoIR::showServerControls GetProtocolDialog Function Resolved!";
+ }
+ else {
+ qDebug() << "FaceTrackNoIR::showServerControls Function NOT Resolved!";
+ }
+ }
+ else {
+ QMessageBox::warning(0,"FaceTrackNoIR Error", "DLL not loaded",QMessageBox::Ok,QMessageBox::NoButton);
+ }
break;
+
case FSUIPC:
_server_controls = new FSUIPCControls( this, Qt::Dialog );
break;