473,405 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Steam API problems...

93 64KB
Hey, once again I have a problem with the steam API:

Error: steamtypes.h '__int16' does not name a type.
It seems that the compiler can't adapt to the API.
Any ideas?

Le code:
Expand|Select|Wrap|Line Numbers
  1.  
  2. //========= Copyright © 1996-2008, Valve LLC, All rights reserved. ============
  3. //
  4. // Purpose:
  5. //
  6. //=============================================================================
  7.  
  8. #ifndef STEAMTYPES_H
  9. #define STEAMTYPES_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13.  
  14. #define S_CALLTYPE __cdecl
  15.  
  16. // Steam-specific types. Defined here so this header file can be included in other code bases.
  17. #ifndef WCHARTYPES_H
  18. typedef unsigned char uint8;
  19. #endif
  20.  
  21. #if defined( __GNUC__ ) && !defined(POSIX)
  22.     #if __GNUC__ < 4
  23.         #error "Steamworks requires GCC 4.X (4.2 or 4.4 have been tested)"
  24.     #endif
  25.     #define POSIX 1
  26. #endif
  27.  
  28. #if defined(__x86_64__) || defined(_WIN64)
  29. #define X64BITS
  30. #endif
  31.  
  32. // Make sure VALVE_BIG_ENDIAN gets set on PS3, may already be set previously in Valve internal code.
  33. #if !defined(VALVE_BIG_ENDIAN) && defined(_PS3)
  34. #define VALVE_BIG_ENDIAN
  35. #endif
  36.  
  37. typedef unsigned char uint8;
  38. typedef signed char int8;
  39.  
  40. #if defined( _WIN32 )
  41.  
  42. typedef __int16 int16;
  43. typedef unsigned __int16 uint16;
  44. typedef __int32 int32;
  45. typedef unsigned __int32 uint32;
  46. typedef __int64 int64;
  47. typedef unsigned __int64 uint64;
  48.  
  49. typedef int64 lint64;
  50. typedef uint64 ulint64;
  51.  
  52. #ifdef X64BITS
  53. typedef __int64 intp;                // intp is an integer that can accomodate a pointer
  54. typedef unsigned __int64 uintp;        // (ie, sizeof(intp) >= sizeof(int) && sizeof(intp) >= sizeof(void *)
  55. #else
  56. typedef __int32 intp;
  57. typedef unsigned __int32 uintp;
  58. #endif
  59.  
  60. #else // _WIN32
  61.  
  62. typedef short int16;
  63. typedef unsigned short uint16;
  64. typedef int int32;
  65. typedef unsigned int uint32;
  66. typedef long long int64;
  67. typedef unsigned long long uint64;
  68.  
  69. // [u]int64 are actually defined as 'long long' and gcc 64-bit
  70. // doesn't automatically consider them the same as 'long int'.
  71. // Changing the types for [u]int64 is complicated by
  72. // there being many definitions, so we just
  73. // define a 'long int' here and use it in places that would
  74. // otherwise confuse the compiler.
  75. typedef long int lint64;
  76. typedef unsigned long int ulint64;
  77.  
  78. #ifdef X64BITS
  79. typedef long long intp;
  80. typedef unsigned long long uintp;
  81. #else
  82. typedef int intp;
  83. typedef unsigned int uintp;
  84. #endif
  85.  
  86. #endif // else _WIN32
  87.  
  88. const int k_cubSaltSize   = 8;
  89. typedef    uint8 Salt_t[ k_cubSaltSize ];
  90.  
  91. //-----------------------------------------------------------------------------
  92. // GID (GlobalID) stuff
  93. // This is a globally unique identifier.  It's guaranteed to be unique across all
  94. // racks and servers for as long as a given universe persists.
  95. //-----------------------------------------------------------------------------
  96. // NOTE: for GID parsing/rendering and other utils, see gid.h
  97. typedef uint64 GID_t;
  98.  
  99. const GID_t k_GIDNil = 0xffffffffffffffffull;
  100.  
  101. // For convenience, we define a number of types that are just new names for GIDs
  102. typedef GID_t JobID_t;            // Each Job has a unique ID
  103. typedef GID_t TxnID_t;            // Each financial transaction has a unique ID
  104.  
  105. const GID_t k_TxnIDNil = k_GIDNil;
  106. const GID_t k_TxnIDUnknown = 0;
  107.  
  108.  
  109. // this is baked into client messages and interfaces as an int,
  110. // make sure we never break this.
  111. typedef uint32 PackageId_t;
  112. const PackageId_t k_uPackageIdFreeSub = 0x0;
  113. const PackageId_t k_uPackageIdInvalid = 0xFFFFFFFF;
  114.  
  115.  
  116. // this is baked into client messages and interfaces as an int,
  117. // make sure we never break this.
  118. typedef uint32 AppId_t;
  119. const AppId_t k_uAppIdInvalid = 0x0;
  120.  
  121. typedef uint64 AssetClassId_t;
  122. const AssetClassId_t k_ulAssetClassIdInvalid = 0x0;
  123.  
  124. typedef uint32 PhysicalItemId_t;
  125. const PhysicalItemId_t k_uPhysicalItemIdInvalid = 0x0;
  126.  
  127.  
  128. // this is baked into client messages and interfaces as an int,
  129. // make sure we never break this.  AppIds and DepotIDs also presently
  130. // share the same namespace, but since we'd like to change that in the future
  131. // I've defined it seperately here.
  132. typedef uint32 DepotId_t;
  133. const DepotId_t k_uDepotIdInvalid = 0x0;
  134.  
  135. // RTime32
  136. // We use this 32 bit time representing real world time.
  137. // It offers 1 second resolution beginning on January 1, 1970 (Unix time)
  138. typedef uint32 RTime32;
  139.  
  140. typedef uint32 CellID_t;
  141. const CellID_t k_uCellIDInvalid = 0xFFFFFFFF;
  142.  
  143. // handle to a Steam API call
  144. typedef uint64 SteamAPICall_t;
  145. const SteamAPICall_t k_uAPICallInvalid = 0x0;
  146.  
  147. typedef uint32 AccountID_t;
  148.  
  149. typedef uint32 PartnerId_t;
  150. const PartnerId_t k_uPartnerIdInvalid = 0;
  151.  
  152. // ID for a depot content manifest
  153. typedef uint64 ManifestId_t;
  154. const ManifestId_t k_uManifestIdInvalid = 0;
  155.  
  156.  
  157.  
  158. #endif // STEAMTYPES_H
  159.  
  160.  
  161.  
Dec 15 '14 #1
2 2181
weaknessforcats
9,208 Expert Mod 8TB
I would contact Valve Corp. who wrote the API and ask them your question.
Dec 15 '14 #2
Xillez
93 64KB
ok, thanks for you time XD
Dec 15 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ivan Voras | last post by:
I have a string fetched from database, in iso8859-2, with 8bit characters, and I'm trying to send it over the network, via a socket: File "E:\Python24\lib\socket.py", line 249, in write data =...
14
by: Jim Hubbard | last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework? Not if you are unaware of the 1,596 issues listed at KBAlertz (http://www.kbalertz.com/technology_3.aspx). If you are...
3
by: Mark | last post by:
Hi, I have put together a script in C# that takes a text file, then streams it into a SQLServer database. What I am trying to do now is create another script that does the exact opposite: selects...
3
by: Alex Clark | last post by:
Hi All, I'm having some problems reading a network stream. I'm writing a lightweight POP client to handle a very specific task, but I keep unexpectedly reaching the end of the datastream when...
6
by: pbearne | last post by:
Hi I need to load an url which should return an pdf/doc file or and html page if file not found I then need to return this file to the request(client) as ether as a download using...
3
by: =?Utf-8?B?aXJpcw==?= | last post by:
I have vista, home (cheapest) version and my internet connection intermitently cuts out, then mysteriously goes on again, sometimes after an hour, sometimes after several hours. sometimes this...
0
by: =?Utf-8?B?aXJpcw==?= | last post by:
I have vista, home (cheapest) version and my internet connection intermitently cuts out, then mysteriously goes on again, sometimes after an hour, sometimes after several hours. sometimes this...
0
by: =?Utf-8?B?U3Vl?= | last post by:
I need your help. I am a medical transcriptionist trying to start a new job. I have dowloaded the company's software (Chart Net) and when I try to open the voice files I get this ACM steam open...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.