Jump to content
The simFlight Network Forums

RBeranek

Members
  • Posts

    3
  • Joined

  • Last visited

RBeranek's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I recompiled my code using VS2003 and ran it on a XP machine and everything is working fine now. I think it has something to do with VS2005 and the application type because I was unable to run the version I compiled in VS2005 on the XP computer. If I resolve the issue I will post the fix. Thanks for all the help.
  2. Yes, I am running Vista. I've removed 'admistrator mode' from FS, my program and UIPChello. UIPCHello is still able to connect however I am still getting the same error when trying to connect with my program.
  3. hello everyone, I am trying to write a basic C++ program to read data from flight sim. I am able to compile and run my program, however ever i get error code 2 when trying to open the connection to flight stim using FSUIPC_open. I am able to succesfully run the sample program that comes with the sdk (UIPCHello). Yes, flight sime is open and I am running my program with admistrator priviliges. I have attched my code for further reference. Any insight would be greatly appreciated. #include #include #include #include #include #include using namespace std; int main() { ofstream data; data.open("data.txt"); DWORD dwResult; int result; double *acceleration; double value; int i; FSUIPC_Open(SIM_ANY, &dwResult); cout< acceleration=&value; *acceleration=20.0; for(i=0;i<10;i++){ FSUIPC_Read(3090,8 , acceleration, &dwResult); FSUIPC_Process(&dwResult); result=dwResult; cout< data< Sleep(1000); } data.close(); return 0; }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.