Jump to content
The simFlight Network Forums
Sign in to follow this  
gene92110

can't connect to FSX using latest FSUIPC

Recommended Posts

We developed c++ code about 10 years ago to interface to FS2004 using FSUIPC running on XP.  We are in the process updating the code to run on Win7 and FSX.  I downloaded the latest FSUIPC 4.939 from schiratti.com and installed it successfully (it found FSX).  However, when I try to run our sw, it can't connect to FS.  Are the FSUIPC calls the same and the way to connect to FS?  I can't recall where I got the fsuipc.h and fsuipc.cpp files, it's been too long. The call that's failing is SendMessageTimeout, which is returning a value of 0 for dwError.  I apologize if I'm forgetting to do something simple, as I said it's been a long time since we developed the code and interface to FS.  Thank you.

Share this post


Link to post
Share on other sites

We developed c++ code about 10 years ago to interface to FS2004 using FSUIPC running on XP.  We are in the process updating the code to run on Win7 and FSX.  I downloaded the latest FSUIPC 4.939 from schiratti.com and installed it successfully (it found FSX).  However, when I try to run our sw, it can't connect to FS.  Are the FSUIPC calls the same and the way to connect to FS?

 

Yes, the interface is 100% compatible right back to FS98 days.

 

The call that's failing is SendMessageTimeout, which is returning a value of 0 for dwError.

 

0 = no error. So how is it failing?

 

FSUIPC produces a Log, in the FS Modules folder. Have you checked? There are logging facilities to record application reads and writes. Have you tried checking that way?

 

If you don't understand any of the logging or other data, paste it here and I'll have a look. But an error code od 0 is not helpful.

 

Pete

Share this post


Link to post
Share on other sites

Hmm, the code I have says: if (dwError != FS6IPC_MESSAGE_SUCCESS) then it got an error.  FS6IPC_MESSAGE_SUCCESS = 1, so it's looking for a 1 for a return value.

 

The code was able to interface to FS2004 now, although I've run into an annoying problem in that, after FS starts, if I start my app, FS pauses.  FS running on XP doesn't pause if my app, or any other app, starts up.  But other than that, it looks like I'm up and running.  Thanks.

 

BTW, there is an acknowledgement to Adam Szofran at the top of the fsuipc.cpp file.  Maybe you, or Mr. Schiratti wrote the fsuipc.cpp and fsuipc.h files I got from somewhere?

Share this post


Link to post
Share on other sites

Hmm, the code I have says: if (dwError != FS6IPC_MESSAGE_SUCCESS) then it got an error.  FS6IPC_MESSAGE_SUCCESS = 1, so it's looking for a 1 for a return value.

 

The codes for dwError are all named "FSUIPC_ERR_ ...",.  FS6IPC_MESSAGE_SUCCESS will be referring not the the error code returned in dwError but the return from the function itself. You only look at the dwError code if the return says FAILURE (i.e returns FALSE).

 

BTW, there is an acknowledgement to Adam Szofran at the top of the fsuipc.cpp file.  Maybe you, or Mr. Schiratti wrote the fsuipc.cpp and fsuipc.h files I got from somewhere?

 

Aren't you getting the files from the FSUIPC SDK?

 

Adam wrote FSUIPC's version-specific predecessor, FS6IPC, for FS98 (and FS5IPC before that for FS95).

 

Pete

 

 

Pete

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • 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.