Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

'cmddata' : unknown size

Featured Replies

Posted

error C2133: 'cmddata' : unknown size

in h file:
extern const t_cmddata cmddata[];

typedef unsigned long  ulong;          // Unsigned long

typedef struct t_cmddata {
  ulong          mask;                 // Mask for first 4 bytes of the command
  ulong          code;                 // Compare masked bytes with this
  char           len;                  // Length of the main command code
  char           bits;                 // Special bits within the command
  char           arg1,arg2,arg3;       // Types of possible arguments
  char           type;                 // C_xxx + additional information
  char           *name;                // Symbolic name for this command
} t_cmddata;


In cpp file:
const t_cmddata cmddata[] = {
  { 0x0000FF, 0x000090, 1,00,  NNN,NNN,NNN, C_CMD+0,        "NOP" },
...
error C2133: 'cmddata' : unknown size
-----------
And also: in h:
extern const char      *regname[3][9];

in cpp:
const char *regname[3][9] = {
  { "AL", "CL", "DL", "BL", "AH", "CH", "DH", "BH", "R8"  },
  { "AX", "CX", "DX", "BX", "SP", "BP", "SI", "DI", "R16" },
  { "EAX","ECX","EDX","EBX","ESP","EBP","ESI","EDI","R32" } };

error C2086: 'regname' : redefinition
 

How to fix the above errors? I'm using Visual C++ 6.0.
 

  • Author

The above declarations are 100% valid,
the problem was invalid instruction on the top of header (.h file)
solved now.
 

54 minutes ago, CodeExplorer said:

the problem was invalid instruction on the top of header (.h file)

and what was it?

  • Author
Just now, jackyjask said:

and what was it?

Quote

#ifndef MAINPROG
#define /*unique*/ extern
#else
#define /*unique*/
#endif

And after it:
 

Quote

unique int       ideal;

I've wrongly replaced "unique" with /*unique*/ on whole project and this was generating problem;
originally first quoted line was without comments:
 

Quote

#ifndef MAINPROG
#define unique extern
#else
#define unique
#endif

All works fine now.

 

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.