Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SMPT mail problem Pin
Joaquín M López Muñoz12-Jan-04 11:22
Joaquín M López Muñoz12-Jan-04 11:22 
GeneralRe: SMPT mail problem Pin
bryce12-Jan-04 16:45
bryce12-Jan-04 16:45 
GeneralRe: SMPT mail problem Pin
murali_utr12-Jan-04 17:38
murali_utr12-Jan-04 17:38 
Generalabout cov and eig Pin
Vincent Sim12-Jan-04 10:36
Vincent Sim12-Jan-04 10:36 
GeneralDrag and drop CtreeView Pin
act_x12-Jan-04 10:25
act_x12-Jan-04 10:25 
GeneralRe: Drag and drop CtreeView Pin
KaЯl12-Jan-04 23:54
KaЯl12-Jan-04 23:54 
GeneralCRichedit control scrolling Pin
Anonymous12-Jan-04 10:21
Anonymous12-Jan-04 10:21 
GeneralDarkside mini SQL errors in http extension dll Pin
Kuniva12-Jan-04 10:21
Kuniva12-Jan-04 10:21 
Hi, i'm trying to implement the Darkside mini SQL library in my ISAPI extension DLL. I tested the library before with a console application and it worked great, but not with my ISAPI dll... I get the following errors:

MHExtension.cpp
c:\dsqlm_1\include\dsql_m_structs.h(46) : error C2059: syntax error : 'constant'
c:\dsqlm_1\include\dsql_m_structs.h(46) : error C2143: syntax error : missing ';' before '}'
c:\dsqlm_1\include\dsql_m_structs.h(47) : error C2377: 'INT' : redefinition; typedef cannot be overloaded with any other symbol
        c:\program files\microsoft visual studio\vc98\include\windef.h(161) : see declaration of 'INT'
c:\dsqlm_1\include\dsql_m_structs.h(47) : error C2377: 'FLOAT' : redefinition; typedef cannot be overloaded with any other symbol
        c:\program files\microsoft visual studio\vc98\include\windef.h(145) : see declaration of 'FLOAT'
c:\dsqlm_1\include\dsql_m_structs.h(47) : error C2377: 'CHAR' : redefinition; typedef cannot be overloaded with any other symbol
        c:\program files\microsoft visual studio\vc98\include\winnt.h(134) : see declaration of 'CHAR'
c:\dsqlm_1\include\dsql_m_structs.h(48) : error C2377: 'BOOL' : redefinition; typedef cannot be overloaded with any other symbol
        c:\program files\microsoft visual studio\vc98\include\windef.h(142) : see declaration of 'BOOL'
c:\dsqlm_1\include\dsql_m_structs.h(64) : error C2146: syntax error : missing ';' before identifier 'unique'
c:\dsqlm_1\include\dsql_m_structs.h(64) : error C2501: 'boolean' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(64) : error C2501: 'unique' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(65) : error C2146: syntax error : missing ';' before identifier 'indexed'
c:\dsqlm_1\include\dsql_m_structs.h(65) : error C2501: 'boolean' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(65) : error C2501: 'indexed' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(66) : error C2146: syntax error : missing ';' before identifier 'nullable'
c:\dsqlm_1\include\dsql_m_structs.h(66) : error C2501: 'boolean' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(66) : error C2501: 'nullable' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(67) : error C2146: syntax error : missing ';' before identifier 'in_active'
c:\dsqlm_1\include\dsql_m_structs.h(67) : error C2501: 'boolean' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(67) : error C2501: 'in_active' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(70) : error C2629: unexpected 'class Column ('
c:\dsqlm_1\include\dsql_m_structs.h(70) : error C2238: unexpected token(s) preceding ';'
c:\dsqlm_1\include\dsql_m_structs.h(83) : error C2061: syntax error : identifier 'boolean'
c:\dsqlm_1\include\dsql_m_structs.h(84) : error C2146: syntax error : missing ';' before identifier 'isUnique'
c:\dsqlm_1\include\dsql_m_structs.h(84) : error C2501: 'boolean' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(85) : error C2061: syntax error : identifier 'boolean'
c:\dsqlm_1\include\dsql_m_structs.h(86) : error C2146: syntax error : missing ';' before identifier 'isIndexed'
c:\dsqlm_1\include\dsql_m_structs.h(86) : error C2501: 'boolean' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(87) : error C2061: syntax error : identifier 'boolean'
c:\dsqlm_1\include\dsql_m_structs.h(88) : error C2146: syntax error : missing ';' before identifier 'isNullable'
c:\dsqlm_1\include\dsql_m_structs.h(88) : error C2501: 'boolean' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(99) : error C2143: syntax error : missing ';' before '*'
c:\dsqlm_1\include\dsql_m_structs.h(99) : error C2501: 'Database' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(99) : error C2501: 'db' : missing storage-class or type specifiers
c:\dsqlm_1\include\dsql_m_structs.h(103) : error C2629: unexpected 'class Table ('
c:\dsqlm_1\include\dsql_m_structs.h(103) : error C2238: unexpected token(s) preceding ';'
c:\dsqlm_1\include\dsql_m_structs.h(151) : error C2143: syntax error : missing ';' before '}'
c:\dsqlm_1\include\dsql_m_structs.h(151) : error C2143: syntax error : missing ';' before '}'
c:\dsqlm_1\include\dsql_m_structs.h(151) : error C2143: syntax error : missing ';' before '}'
c:\dsqlm_1\include\sql_lexer.h(39) : error C2143: syntax error : missing ';' before '{'
c:\dsqlm_1\include\sql_lexer.h(39) : error C2447: missing function header (old-style formal list?)
c:\dsqlm_1\include\bridge.h(101) : error C2079: 'table' uses undefined class 'Table'
D:\Programming\Projects\VC++ Projects\MordredsHaven\MHExtension.cpp(18) : error C2143: syntax error : missing ';' before '__stdcall'
D:\Programming\Projects\VC++ Projects\MordredsHaven\MHExtension.cpp(18) : error C2501: 'BOOL' : missing storage-class or type specifiers
D:\Programming\Projects\VC++ Projects\MordredsHaven\MHExtension.cpp(18) : error C2371: 'BOOL' : redefinition; different basic types
        c:\dsqlm_1\include\dsql_m_structs.h(48) : see declaration of 'BOOL'
D:\Programming\Projects\VC++ Projects\MordredsHaven\MHExtension.cpp(38) : error C2143: syntax error : missing ';' before '__stdcall'
D:\Programming\Projects\VC++ Projects\MordredsHaven\MHExtension.cpp(38) : error C2501: 'BOOL' : missing storage-class or type specifiers
D:\Programming\Projects\VC++ Projects\MordredsHaven\MHExtension.cpp(38) : error C2371: 'BOOL' : redefinition; different basic types
        c:\dsqlm_1\include\dsql_m_structs.h(48) : see declaration of 'BOOL'
D:\Programming\Projects\VC++ Projects\MordredsHaven\MHExtension.cpp(425) : error C2143: syntax error : missing ';' before 'tag::id'
D:\Programming\Projects\VC++ Projects\MordredsHaven\MHExtension.cpp(425) : error C2501: 'BOOL' : missing storage-class or type specifiers
D:\Programming\Projects\VC++ Projects\MordredsHaven\MHExtension.cpp(425) : error C2371: 'BOOL' : redefinition; different basic types
        c:\dsqlm_1\include\dsql_m_structs.h(48) : see declaration of 'BOOL'
D:\Programming\Projects\VC++ Projects\MordredsHaven\MHExtension.cpp(425) : fatal error C1004: unexpected end of file found
Error executing cl.exe.


Something to do with the types already defined in windef.h.. but i don't see why it says that since there's no type redefinition, just an enum, like this (dsql_m_structs.h):

class MyDate;
namespace dsqlm {

	class Database;
	
	enum boolean { FALSE=0,TRUE=1 };
	enum DsqlType {SMALLINT,INT,BIGINT,FLOAT,DOUBLE,CHAR,VARCHAR,
		DATE,TIME,TIMESTAMP,BOOL,AUTOID,UID};
	enum ComparissonOperator {EQUALS,NOT_EQUALS,GREATER_THAN,LESSER_THAN,
		GREATER_THAN_OR_EQUAL_TO,LESSER_THAN_OR_EQUAL_TO,
		LIKE};
	enum LogicalOperator {AND,OR};

...


Does anyone see how i could fix it? I really need the database..
Thanks

Kuniva
--------------------------------------------
GeneralModifying exceptions inside a catch block Pin
Marcello12-Jan-04 10:09
Marcello12-Jan-04 10:09 
GeneralRe: Modifying exceptions inside a catch block Pin
Joaquín M López Muñoz12-Jan-04 11:18
Joaquín M López Muñoz12-Jan-04 11:18 
GeneralRe: Modifying exceptions inside a catch block Pin
Marcello12-Jan-04 17:05
Marcello12-Jan-04 17:05 
Generalunresolved external symbol Pin
TolTol12-Jan-04 9:32
TolTol12-Jan-04 9:32 
GeneralRe: unresolved external symbol Pin
Jörgen Sigvardsson12-Jan-04 9:53
Jörgen Sigvardsson12-Jan-04 9:53 
GeneralRe: unresolved external symbol Pin
TolTol12-Jan-04 11:50
TolTol12-Jan-04 11:50 
QuestionIs there a way to detect a debug build? Pin
toddbrooks12-Jan-04 9:04
toddbrooks12-Jan-04 9:04 
AnswerRe: Is there a way to detect a debug build? Pin
Neville Franks12-Jan-04 9:35
Neville Franks12-Jan-04 9:35 
AnswerRe: Is there a way to detect a debug build? Pin
LizardWiz12-Jan-04 11:25
LizardWiz12-Jan-04 11:25 
GeneralRe: Is there a way to detect a debug build? Pin
toddbrooks12-Jan-04 11:31
toddbrooks12-Jan-04 11:31 
GeneralProblem Deleting Pointer Pin
DruOfGov12-Jan-04 8:18
DruOfGov12-Jan-04 8:18 
GeneralRe: Problem Deleting Pointer Pin
Joe Woodbury12-Jan-04 8:33
professionalJoe Woodbury12-Jan-04 8:33 
GeneralRe: Problem Deleting Pointer Pin
DruOfGov12-Jan-04 8:51
DruOfGov12-Jan-04 8:51 
GeneralRe: Problem Deleting Pointer Pin
Joe Woodbury12-Jan-04 10:02
professionalJoe Woodbury12-Jan-04 10:02 
GeneralRe: Problem Deleting Pointer Pin
DruOfGov12-Jan-04 10:14
DruOfGov12-Jan-04 10:14 
GeneralRe: Problem Deleting Pointer Pin
Joe Woodbury12-Jan-04 10:34
professionalJoe Woodbury12-Jan-04 10:34 
GeneralRe: Problem Deleting Pointer Pin
DruOfGov12-Jan-04 10:38
DruOfGov12-Jan-04 10:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.