Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi,

I am trying to use the FSUIPC SDK, but I have some building errors.

fsuipc_user.h(45) : error C2146: syntax error : missing ';' before identifier 'FSUIPC_Open'

fsuipc_user.h(45) : fatal error C1004: unexpected end of file found

line implied is (in fsuipc_user.h):

extern DWORD FSUIPC_Version;

After a quick search on the forum, I was not able to find anything.

I suspect Visual C++ 6 is considering DWORD as an "identifier" and not a type.

You probably encountered this problem before, but like I said, I was not able to find a topic about it.

Thank you for your time!

Regards

Stéphane - dPm

Posted

I suspect Visual C++ 6 is considering DWORD as an "identifier" and not a type.

Don't you have the standard Windows header defined before the FSUIPC header? There are many things dependent upon Windows-defined names and APIs. Very little (nothing) is predefined in the compiler for Windows.

DWORD is one of the many types defiined for all Windows programs, like BYTE, BOOL, WORD. WPARAM, LPARAM, and so on. These are used in many Windows APIs. How are you trying to write a Windows program without the Windows header being included?

Maybe it is just that you are trying to include Windows-dependent parts before declaring the Windows header?

Regards

Pete

Posted

Looks like that was it!

Sorry, that is my first big program in C language, I am not used to basic things like this one.

Thanks for the answer. Now that I have included the right header, I get another error, but it is in a Visual C header. I'll deal with that one !

Regards,

Stéphane

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.