masterdPm Posted February 12, 2008 Report Posted February 12, 2008 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
Pete Dowson Posted February 12, 2008 Report Posted February 12, 2008 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
masterdPm Posted February 12, 2008 Author Report Posted February 12, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now