home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / numega / sc501.exe / data1.cab / Examples / BCIDSRC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-25  |  12.6 KB  |  304 lines

  1. /*
  2.  * BCIDSRC.h
  3.  * $Header: /BoundsChecker/Examples/BUGBNCHX/MAINERR/BCIDSRC.H 10    2/11/97 4:12p Stevea $
  4.  *
  5.  * Description:
  6.  *  The IDs of all the errors string table entries
  7.  *
  8.  * Notes:
  9.  *  <implementation notes go here>
  10.  *
  11.  ***********************************************************************
  12.  *
  13.  * Nu-Mega Technologies, Inc.
  14.  * P.O. Box 7780
  15.  * Nashua, NH 03060
  16.  *
  17.  * (c) Copyright 1994, 1995 Nu-Mega Technologies, Inc.
  18.  * ALL RIGHTS RESERVED.
  19.  *
  20.  ***********************************************************************
  21.  *
  22.  **********************************************************************/
  23. #ifndef _BCIDSRC_H
  24. #define _BCIDSRC_H
  25.  
  26. // The root object types.
  27. #define IDS_APIANDOLECHECK              59100
  28. #define IDS_MEMORYCHECK                 59101
  29. #define IDS_POINTERANDLEAKCHECK         59102
  30.  
  31. // The root object descriptions.
  32. #define IDS_APIANDOLECHECKDESC          59110
  33. #define IDS_MEMORYCHECKDESC             59111
  34. #define IDS_POINTERANDLEAKCHECKDESC     59112
  35.  
  36. // API Check Error Types.
  37. #define IDS_APIFAILWINFUNCFAIL         59150
  38. #define IDS_APIFAILWINFUNCNOTIMP       59151
  39. #define IDS_INVALIDARGFREEDHANDLELOCK  59153
  40. #define IDS_INVALIDARGHANDLEUNLOCKED   59154
  41. #define IDS_INVALIDARGBADFMTSPECIFIER  59155
  42. #define IDS_INVALIDARGBADDESTPTR       59156
  43. #define IDS_INVALIDARGBADHANDLE        59157
  44. #define IDS_INVALIDARGBADSRCPTR        59158
  45. #define IDS_INVALIDARGCONFLICT         59159
  46. #define IDS_INVALIDARGFMTINVALIDARG    59160
  47. #define IDS_INVALIDARGGENERAL          59161
  48. #define IDS_INVALIDARGBADFMTSTR        59162
  49. #define IDS_INVALUDARGINSUFFPARAMS     59163
  50. #define IDS_INVALIDARGOUTORANGE        59164
  51. #define IDS_INVALIDARGSTRUCTURE        59165
  52. #define IDS_INVALIDARGTOOMANYPARAMS    59166
  53. #define IDS_INVALIDARGUNDEFINED        59167
  54. #define IDS_QUESTIONALBEUSEOTHREAD     59168
  55.  
  56. // C++ Check Error Types.
  57. #define IDS_MEMALLOCCONFLICT           59201
  58.  
  59. // Compile Check Error Types.
  60. #define IDS_WRITINGOVERFLOWSMEM        59256
  61.  
  62. // Leak Check Error Types.
  63. #define IDS_MEMLEAKGENERAL             59306
  64. #define IDS_MEMLEAKTOFREE              59307
  65. #define IDS_MEMLEAKREASSIGN            59308
  66. #define IDS_MEMLEAKLEAVESCOPE          59310
  67. #define IDS_RESOURCELEAK               59311
  68.  
  69. // Pointer Check Error Types.
  70. #define IDS_ARRAYPARAMEXCEEDSRANGE     59350
  71. #define IDS_EXPRUSESUNRELPTR           59357
  72. #define IDS_EXPRTRUSESDANGLEPTR        59360
  73. #define IDS_FNPTRNOTAFN                59361
  74. #define IDS_PTRREFSUNLOCKEDBLOCK       59364
  75. #define IDS_UNALLOCATEDPTR             59365
  76. #define IDS_ASSIGNINGPTROUTOFRANGE       59366
  77. #define IDS_RETURNINGPTRTOLOCALVAR     59367
  78.  
  79. // Read Check Error Types.
  80. #define IDS_READOVERFLOWSMEM           59405
  81. #define IDS_READUNINITMEM              59406
  82.  
  83. // Write Check Error Types.
  84. #define IDS_DYNMEMOVERRUN              59450
  85. #define IDS_STACKMEMOVERRUN            59451
  86. #define IDS_STATICMEMOVERRUN           59452
  87.  
  88. // OLE Check Error Types
  89. #define IDS_OLEINTLEAK                 59500
  90. #define IDS_OLEFAILINTFUNCFAIL         59501
  91. #define IDS_OLEINVALIDARGBADDESPTR     59502
  92. #define IDS_OLEINVALIDARGBADHNDL       59503
  93. #define IDS_OLEINVALIDARGBADSRCPTR     59504
  94. #define IDS_OLEINVALIDARGCONFFLAGS     59505
  95. #define IDS_OLEINVALIDARGGENERAL       59506
  96. #define IDS_OLEINVALIDARGBADRANGE      59507
  97. #define IDS_OLEINVALIDARGSTRCTUNINT    59508
  98. #define IDS_OLEINVALIDARGUNDEFFLAGS    59509
  99.  
  100. // The product strings.
  101. #define IDS_BCPERSONAL                 59550
  102. #define IDS_BCPRO                      59551
  103. #define IDS_BCBOTH                     59552
  104.  
  105. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  106. // OLECheck - Interface leak
  107. #define IDS_OLEINTFLEAK                60340
  108. #define IDS_OLEINTFLEAKDESC            60341
  109.  
  110. // OLECheck - Interface method failure
  111. #define IDS_OLEINTFMETHODFAIL          60350
  112. #define IDS_OLEINTFMETHODFAILDESC      60351
  113.  
  114. // OLECheck - Interface method argument: Bad destination pointer
  115. #define IDS_OLEBADDESTPTR              60360
  116. #define IDS_OLEBADDESTPTRDESC          60361
  117.  
  118. // OLECheck - Interface method argument: Bad source pointer
  119. #define IDS_OLEBADSRCPTR               60370
  120. #define IDS_OLEBADSRCPTRDESC           60371
  121.  
  122. // OLECheck - Interface method argument: Bad handle
  123. #define IDS_OLEBADHANDLE               60380
  124. #define IDS_OLEBADHANDLEDESC           60381
  125.  
  126. // OLECheck - Interface method argument: General
  127. #define IDS_OLEINVARGGEN               60390
  128. #define IDS_OLEINVARGGENDESC           60391
  129.  
  130. // OLECheck - Interface method argument: Structure size field is not initialized
  131. #define IDS_OLESTRCTSIZFLD             60400
  132. #define IDS_OLESTRCTSIZFLDDESC         60401
  133.  
  134. // OLECheck - Interface method argument: Undefined or illegal flags
  135. #define IDS_OLEINVALIDFLAG             60410
  136. #define IDS_OLEINVALIDFLAGDESC         60411
  137.  
  138. // OLECheck - Interface method argument: Out of range
  139. #define IDS_OLEINVARGOUTRANGE          60420
  140. #define IDS_OLEINVARGOUTRANGEDESC      60421
  141.  
  142. // OLECheck - Interface method argument: Conflicting combination of flags
  143. #define IDS_OLEINVALIDFLAGCOMBO        60430
  144. #define IDS_OLEINVALIDFLAGCOMBODESC    60431
  145.  
  146. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  147. // API Check - API failure: Windows function failed
  148. #define IDS_APIFAILLOADBITMAPINST      59600
  149. #define IDS_APIFAILLOADBITMAPDESC      59601
  150. #define IDS_APIFAILMALLOCINST          59602
  151. #define IDS_APIFAILMALLOCDESC          59603
  152. // API Check - API failure: Windows function not implemented
  153. #define IDS_APIFAILNOTIMPINSTNT        59610
  154. #define IDS_APIFAILNOTIMPDESCNT        59611
  155. #define IDS_APIFAILNOTIMPINST95        59612
  156. #define IDS_APIFAILNOTIMPDESC95        59613
  157. // API Check - Freed handle is still locked
  158. #define IDS_FREEDHANDLELOCKEDINST      59630
  159. #define IDS_FREEDHANDLELOCKEDDESC      59631
  160. // API Check - Handle is already unlocked
  161. #define IDS_HANDLEALREADYUNLOCKEDINST  59640
  162. #define IDS_HANDLEALREADYUNLOCKEDDESC  59641
  163. // API Check - Invalid argument: At least one format specifier is illegal
  164. #define IDS_ILLEGALFORMATSPECINST      59650
  165. #define IDS_ILLEGALFORMATSPECDESC      59651
  166. // API Check - Invalid argument: Bad destination pointer
  167. #define IDS_BADDESTPTRINST             59660
  168. #define IDS_BADDESTPTRDESC             59661
  169. // API Check - Invalid argument: Bad handle
  170. #define IDS_BADHANDLEFREEINST          59670
  171. #define IDS_BADHANDLEFREEDESC          59671
  172. #define IDS_BADHANDLELFREEINST         59672
  173. #define IDS_BADHANDLELFREEDESC         59673
  174. #define IDS_BADHANDLEREMALLOCINST      59674
  175. #define IDS_BADHANDLEREMALLOCDESC      59675
  176. // API Check - Invalid argument: Bad source pointer
  177. #define IDS_BADSOURCEPTRINST           59680
  178. #define IDS_BADSOURCEPTRDESC           59681
  179. // API Check - Invalid argument: Conflicting combination of flags"
  180. #define IDS_INVALIDARGVIRTUALFREEINST     59690
  181. #define IDS_INVALIDARGVIRTUALFREEDESC     59691
  182. #define IDS_INVALIDARGGETSTRINGTYPEINST   59692
  183. #define IDS_INVALIDARGGETSTRINGTYPEDESC   59693
  184. // API Check - Invalid argument: Format string is not followed by valid argument
  185. #define IDS_FMTSTRNOTFOLLOWEDINST         59700
  186. #define IDS_FMTSTRNOTFOLLOWEDDESC         59701
  187. // API Check - Invalid argument: General
  188. #define IDS_INVARGGENHMENUINST         59710
  189. #define IDS_INVARGGENHMENUDESC         59711
  190. #define IDS_INVARGGENFILEINST          59712
  191. #define IDS_INVARGGENFILEDESC          59713
  192. #define IDS_INVARGGENHDCINST           59714
  193. #define IDS_INVARGGENHDCDESC           59715
  194. // API Check - Invalid argument: Invalid pointer to format string
  195. #define IDS_INVPTRTOFMTSTRINST         59720
  196. #define IDS_INVPTRTOFMTSTRDESC         59721
  197. // API Check - Invalid argument: Not enough arguments for this format string
  198. #define IDS_NOTENUFARGSFORFMTINST      59730
  199. #define IDS_NOTENUFARGSFORFMTDESC      59731
  200. // API Check - Invalid argument: Out of range
  201. #define IDS_INVALIDARGRANGEINST        59740
  202. #define IDS_INVALIDARGRANGEDESC        59741
  203. #define IDS_INVALIDARGCREATEFONTINST   59742
  204. #define IDS_INVALIDARGCREATEFONTDESC   59743
  205. #define IDS_INVARGARGCREATEPIPEINST    59744
  206. #define IDS_INVARGARGCREATEPIPEDESC    59745
  207. // API Check - Invalid argument: Structure size field is not initialized
  208. #define IDS_STRCTSIZEFIELDUNINITINST   59750
  209. #define IDS_STRCTSIZEFIELDUNINITDESC   59751
  210. // API Check - Invalid argument: Too many arguments for this format string
  211. #define IDS_TOOMANYARGSFORFMTSTRINST   59760
  212. #define IDS_TOOMANYARGSFORFMTSTRDESC   59761
  213. // API Check - Invalid argument: Undefined or illegal flags
  214. #define IDS_INVALIDARGAPPENDMENUINST   59770
  215. #define IDS_INVALIDARGAPPENDMENUDESC   59771
  216. #define IDS_INVALIDARGFOLDSTRINGINST   59772
  217. #define IDS_INVALIDARGFOLDSTRINGDESC   59773
  218. // API Check - Questionable use of thread
  219. #define IDS_QUESTIONTHREADINST         59775
  220. #define IDS_QUESTIONTHREADDESC         59776
  221. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  222. // C++ Check - Memory allocation conflict.
  223. #define IDS_MEMCONFLICTMALLOCDELINST   59790
  224. #define IDS_MEMCONFLICTMALLOCDELDESC   59791
  225. #define IDS_MEMCONFLICTNEWFREEINST     59792
  226. #define IDS_MEMCONFLICTNEWFREEDESC     59793
  227. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  228. // Compile Check - Mismatch in argument type
  229. #define IDS_MISMATCHINARGTYPEINST      59840
  230. #define IDS_MISMATCHINARGTYPEDESC      59841
  231. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  232. // Leak Check - Memory leak
  233. #define IDS_MEMORYLEAKINST             59950
  234. #define IDS_MEMORYLEAKDESC             59951
  235. // Leak Check - Memory leaked due to free
  236. #define IDS_MEMLEAKFROMFREEINST        59960
  237. #define IDS_MEMLEAKFROMFREEDESC        59961
  238. // Leak Check - Memory leaked due to reassignment
  239. #define IDS_MEMLEAKFROMREASSIGNINST    59970
  240. #define IDS_MEMLEAKFROMREASSIGNDESC    59971
  241. // Leak Check - Memory leaked leaving scope
  242. #define IDS_MEMLEAKFROMIGNOREINST      59980
  243. #define IDS_MEMLEAKFROMIGNOREDESC      59981
  244. #define IDS_MEMLEAKFROMSCOPEINST       59990
  245. #define IDS_MEMLEAKFROMSCOPEDESC       59991
  246. // Leak Check - Resource leak.
  247. #define IDS_RESLEAKBITMAPINST          60000
  248. #define IDS_RESLEAKBITMAPDESC          60001
  249. #define IDS_RESLEAKMETAINST            60002
  250. #define IDS_RESLEAKMETADESC            60003
  251. #define IDS_RESLEAKMENUINST            60004
  252. #define IDS_RESLEAKMENUDESC            60005
  253. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  254. // Pointer Check - Array parameter exceeds range.
  255. #define IDS_ARRAYPARAMEXRANGEINST      60010
  256. #define IDS_ARRAYPARAMEXRANGEDESC      60011
  257. // Pointer Check - Expression uses unrelated pointers.
  258. #define IDS_EXPRUSESUNRELPTRINST      60080
  259. #define IDS_EXPRUSESUNRELPTRDESC      60081
  260. // Pointer Check - Expression subtracts unrelated pointers.
  261. #define IDS_EXPRSUBSUNRELPTRSINST      60100
  262. #define IDS_EXPRSUBSUNRELPTRSDESC      60101
  263. // Pointer Check - Expression uses dangling pointer.
  264. #define IDS_EXPRUSESDANGLPTRINST       60110
  265. #define IDS_EXPRUSESDANGLPTRDESC       60111
  266. // Pointer Check - Function pointer is not a function.
  267. #define IDS_FNPTRNOTAFNINST            60120
  268. #define IDS_FNPTRNOTAFNDESC            60121
  269. // Pointer Check - Pointer references unlocked memory block.
  270. #define IDS_PTRREFSUNLOCKEDBLOCKINST   60150
  271. #define IDS_PTRREFSUNLOCKEDBLOCKDESC   60151
  272. // Pointer Check - Unallocated pointer.
  273. #define IDS_UNALLOCDPTRINST            60160
  274. #define IDS_UNALLOCDPTRDESC            60161
  275. // Pointer Check - Assigning pointer out of range
  276. #define IDS_ASSIGNPTROUTOFRANGEINST    60162
  277. #define IDS_ASSIGNPTROUTOFRANGEDESC    60163
  278. // Pointer Check - Returning pointer to local variable
  279. #define IDS_RETURNINGPTRTOLOCALVARINST 60164
  280. #define IDS_RETURNINGPTRTOLOCALVARDESC 60165
  281. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  282. // Read Check - Reading overflows memory
  283. #define IDS_READOVERFLOWSSTRUCTINST    60222
  284. #define IDS_READOVERFLOWSSTRUCTDESC    60223
  285. // Read Check - Reading uninitialized memory
  286. #define IDS_READUNINITMEMINST          60230
  287. #define IDS_READUNINITMEMDESC          60231
  288. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  289. // Write Check - Dynamic memory overrun
  290. #define IDS_DYNMEMOVERRUNINST          60260
  291. #define IDS_DYNMEMOVERRUNDESC          60261
  292. // Write Check - Stack memory overrun
  293. #define IDS_STACKMEMOVERRUNINST        60270
  294. #define IDS_STACKMEMOVERRUNDESC        60271
  295. // Write Check - Static memory overrun
  296. #define IDS_STATICMEMOVERRUNINST       60280
  297. #define IDS_STATICMEMOVERRUNDESC       60281
  298. // Write Check - Writing overflows memory
  299. #define IDS_WRITEOVERFLOWSMEMINST      60320
  300. #define IDS_WRITEOVERFLOWSMEMDESC      60321
  301.  
  302. #endif // _BCIDSRC_H
  303.  
  304.