Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem compiling dll with dbfdef.h included

Status
Not open for further replies.

BlackDice

Programmer
Mar 1, 2004
257
US
I'm trying to compile a dll that is statically linked to MFC. I keep getting this error message:

error C2143: syntax error : missing ';' before ''

the file that it's saying this about I've used before but it's blowing up at this spot now:

typedef struct{ DBF_UCHAR dbf_id; // 0x02 FoxBASE // 0x03 FoxBASE+/dBASE III PLUS, no memo // 0x30 Visual FoxPro // 0x43 dBASE IV SQL table files, no memo // 0x63 dBASE IV SQL system files, no memo // 0x83 FoxBASE+/dBASE III PLUS, with memo // 0x8B dBASE IV with memo // 0xCB dBASE IV SQL table files, with memo // 0xE5 HiPer-SIx with memo (.SMT) // 0xF5 FoxPro 2.x (or earler) with memo // 0xFB FoxBASE DBF_CHAR last_update[3];// Last update (YYMMDD) // Fox: curent century + YY // dBase: 1900 + YY // SIx: 0x700(1792) + YY DBF_LONG last_rec; // Number of record in file DBF_UINT data_offset; // Position of first data record DBF_UINT rec_size; // Lenght of one data record (including delete flag) DBF_CHAR filler[16]; // Reserved DBF_CHAR table_flag; // Table Flags (Only Visual Foxpro) // 0x01 file has structural .cdx or .mdx // 0x02 file has a Memo field // 0x04 file is a database .dbc // Note that this byte can contain the sum of // any of the above values. DBF_UCHAR code_page; // Code page mark // 0x01 437 U.S. MS-DOS // 0x69 620 Mazovia (Polish) MS-DOS // 0x6A 737 Greek MS-DOS (437G) // 0x02 850 International MS-DOS // 0x64 852 Eastern European MS-DOS // 0x67 861 Icelandic MS-DOS // 0x66 865 Nordic MS-DOS // 0x65 866 Russian MS-DOS // 0x68 895 Kamenicky (Czech) MS-DOS // 0x6B 857 Turkish MS-DOS // 0xC8 1250 Eastern European Windows // 0xC9 1251 Russian Windows // 0x03 1252 Windows ANSI // 0xCB 1253 Greek Windows // 0xCA 1254 Turkish Windows // 0x04 10000 Standard Macintosh // 0x98 10006 Greek Macintosh // 0x96 10007 Russian Macintosh // 0x97 10029 Eastern European Macintosh DBF_UINT reserved; // Recerved, contains 0x00} DBF_HEAD;


If it's broken, I probably did it

bdiamond

bdiamond
 
Ouch! Maybe it has to do with the fact that there are no newlines in the file?

I REALLY hope that helps.
Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top