Jump to content
The simFlight Network Forums

davidtee

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by davidtee

  1. Hi, I'm trying to get a test program running using FSUIPC4 (4.16.2 - downloaded this morning) and the C++ library in the sdk r27. When I try to build the included sample app, I've been getting complier errors. I got some complaints about the wsprintf statement, and being unable to convert between char and LPWSTR, after I fixed those, I got an error about it not being able to find LIBC.lib. I tried to create a new project from scratch, with only the main function (without any calls to FSUIPC in it). With only including the FSUIPC_User.h file, I get a whole pile of errors. (see below) If anyone has been using FSUIPC with C++, I'd love to know how, or what I'm not doing/doing wrong. Sorry if you're also a member of the forums over at fsdeveloper. I made a similar post there, but I was posting here in hopes of a response, being that's this is a forum dedicated to FSUIPC. Thanks, David Here's the error I'd get: 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(37) : error C2146: syntax error : missing ';' before identifier 'FSUIPC_Version' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(37) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(37) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(39) : error C2146: syntax error : missing ';' before identifier 'FSUIPC_FS_Version' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(39) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(39) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(41) : error C2146: syntax error : missing ';' before identifier 'FSUIPC_Lib_Version' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(41) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(41) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(45) : error C2146: syntax error : missing ';' before identifier 'FSUIPC_Open' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(45) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(45) : error C2146: syntax error : missing ')' before identifier 'dwFSReq' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(45) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(45) : error C2059: syntax error : ')' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(46) : error C2146: syntax error : missing ';' before identifier 'FSUIPC_Open2' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(46) : error C2146: syntax error : missing ')' before identifier 'dwFSReq' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(46) : error C2059: syntax error : ')' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(48) : error C2146: syntax error : missing ';' before identifier 'FSUIPC_Read' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(48) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(48) : error C2146: syntax error : missing ')' before identifier 'dwOffset' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(48) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(48) : error C2059: syntax error : ')' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(49) : error C2146: syntax error : missing ';' before identifier 'FSUIPC_ReadSpecial' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(49) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(49) : error C2146: syntax error : missing ')' before identifier 'dwOffset' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(49) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(49) : error C2059: syntax error : ')' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(50) : error C2146: syntax error : missing ';' before identifier 'FSUIPC_Write' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(50) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(50) : error C2146: syntax error : missing ')' before identifier 'dwOffset' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(50) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(50) : error C2059: syntax error : ')' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(51) : error C2146: syntax error : missing ';' before identifier 'FSUIPC_Process' 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(51) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(51) : error C2065: 'pdwResult' : undeclared identifier 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(51) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\john\my documents\visual studio 2008\projects\fsuipctest4\fsuipctest4\fsuipc_user. h(51) : fatal error C1903: unable to recover from previous error(s); stopping compilation :?:
×
×
  • 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.