VC++ 6.0 with phidget21.h

C, C++, and Visual C++
camboljp

VC++ 6.0 with phidget21.h

Postby camboljp » Sat Apr 25, 2009 3:23 am

It were many error codes when i compiled some sample programs with Microsoft Visual C++ v6.0 such as:

c:\program files\microsoft visual studio\vc98\include\phidget21.h(751) : error C2485: 'deprecated' : unrecognized extended attribute
c:\program files\microsoft visual studio\vc98\include\phidget21.h(751) : error C2059: syntax error : '('
c:\program files\microsoft visual studio\vc98\include\phidget21.h(1048) : error C2485: 'deprecated' : unrecognized extended attribute
c:\program files\microsoft visual studio\vc98\include\phidget21.h(1048) : error C2059: syntax error : '('
c:\program files\microsoft visual studio\vc98\include\phidget21.h(1051) : error C2485: 'deprecated' : unrecognized extended attribute
c:\program files\microsoft visual studio\vc98\include\phidget21.h(1051) : error C2059: syntax error : '('
.............

when I clicked some of them, it appeared error codes on phidget21.h file, such as:
_declspec (deprecated ("Deprecated - use CPhidgetAccelerometer_getAxisCount")) __declspec (dllimport)
int __stdcall

I wonder why it does not support??
How can I solve this problem?

phoenix2307

Re: VC++ 6.0 with phidget21.h

Postby phoenix2307 » Tue Apr 28, 2009 12:37 pm

Hi Camboljp,

you should try to put a comment tag '//' at first of each

Code: Select all

__declspec (deprecated.......
expression that you will find in the phidget21.h file.
It looks like your compiler doesn't understand them...
It will avoid all warnings returned

Exemple:

Code: Select all

//__declspec (deprecated ("Deprecated - use CPhidgetEncoder_getPosition")) __declspec (dllimport)
__declspec (dllimport)
     int __stdcall
     CPhidgetEncoder_getEncoderPosition (CPhidgetEncoderHandle, int index, int *);



cordially

camboljp

Re: VC++ 6.0 with phidget21.h

Postby camboljp » Wed May 06, 2009 6:24 pm

Thank you.


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 3 guests