#include <afxdb.h>
-
hallo,
jo hab ne kleine datenbankanwendung geschrieben, bzw bin grad dabei und wenn ich die datei inkludieren kommt immer dieser mächtige(n) fehler.
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(199) : error C2146: syntax error : missing ';' before identifier 'm_nRetCode'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(199) : error C2501: 'RETCODE' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(199) : error C2501: 'm_nRetCode' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(205) : error C2629: unexpected 'class CDBException ('
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(205) : error C2238: unexpected token(s) preceding ';'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(207) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(221) : error C2065: 'RETCODE' : undeclared identifier
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(221) : error C2146: syntax error : missing ')' before identifier 'nRetCode'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(221) : warning C4229: anachronism used : modifiers on data are ignored
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(221) : error C2182: 'AfxThrowDBException' : illegal use of type 'void'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(221) : error C2059: syntax error : ')'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(251) : error C2146: syntax error : missing ';' before identifier 'm_hdbc'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(251) : error C2501: 'HDBC' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(251) : error C2501: 'm_hdbc' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(282) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(296) : error C2061: syntax error : identifier 'RETCODE'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(297) : error C2061: syntax error : identifier 'RETCODE'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(302) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(322) : error C2146: syntax error : missing ';' before identifier 'm_nTransactionCapable'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(322) : error C2501: 'SWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(322) : error C2501: 'm_nTransactionCapable' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(323) : error C2146: syntax error : missing ';' before identifier 'm_nCursorCommitBehavior'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(323) : error C2501: 'SWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(323) : error C2501: 'm_nCursorCommitBehavior' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(324) : error C2146: syntax error : missing ';' before identifier 'm_nCursorRollbackBehavior'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(324) : error C2501: 'SWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(324) : error C2501: 'm_nCursorRollbackBehavior' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(329) : error C2146: syntax error : missing ';' before identifier 'm_hstmt'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(329) : error C2501: 'HSTMT' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(329) : error C2501: 'm_hstmt' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(333) : error C2061: syntax error : identifier 'RETCODE'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(383) : error C2065: 'SQL_PARAM_INPUT' : undeclared identifier
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(383) : error C2057: expected constant expression
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(385) : error C2065: 'SQL_PARAM_OUTPUT' : undeclared identifier
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(385) : error C2057: expected constant expression
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(386) : error C2065: 'SQL_PARAM_INPUT_OUTPUT' : undeclared identifier
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(386) : error C2057: expected constant expression
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(419) : error C2146: syntax error : missing ';' before identifier 'm_hstmt'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(419) : error C2501: 'HSTMT' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(419) : error C2501: 'm_hstmt' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(432) : error C2143: syntax error : missing ';' before '__cdecl'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(432) : error C2501: 'HENV' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(450) : error C2065: 'SQL_VARCHAR' : undeclared identifier
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(466) : error C2061: syntax error : identifier 'TIMESTAMP_STRUCT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(500) : error C2061: syntax error : identifier 'TIMESTAMP_STRUCT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(613) : error C2146: syntax error : missing ';' before identifier 'm_hstmt'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(613) : error C2501: 'HSTMT' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(613) : error C2501: 'm_hstmt' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(658) : error C2061: syntax error : identifier 'RETCODE'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(710) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(723) : error C2061: syntax error : identifier 'RETCODE'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(727) : error C2061: syntax error : identifier 'UWORD'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(728) : error C2146: syntax error : missing ';' before identifier 'FetchData'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(728) : error C2501: 'RETCODE' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(728) : error C2061: syntax error : identifier 'UWORD'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(730) : error C2061: syntax error : identifier 'UWORD'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(732) : error C2061: syntax error : identifier 'RETCODE'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(743) : error C2146: syntax error : missing ';' before identifier 'm_nResultCols'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(743) : error C2501: 'SWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(743) : error C2501: 'm_nResultCols' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(756) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(757) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(763) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(764) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(776) : error C2061: syntax error : identifier 'RETCODE'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(811) : error C2061: syntax error : identifier 'UDWORD'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(812) : error C2061: syntax error : identifier 'UDWORD'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(813) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(815) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(818) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(840) : error C2146: syntax error : missing ';' before identifier 'm_dwDriverConcurrency'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(840) : error C2501: 'UDWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(840) : error C2501: 'm_dwDriverConcurrency' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(841) : error C2146: syntax error : missing ';' before identifier 'm_dwConcurrency'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(841) : error C2501: 'UDWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(841) : error C2501: 'm_dwConcurrency' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(842) : error C2143: syntax error : missing ';' before '*'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(842) : error C2501: 'UWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(842) : error C2501: 'm_rgRowStatus' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(844) : error C2146: syntax error : missing ';' before identifier 'm_hstmtUpdate'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(844) : error C2501: 'HSTMT' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(844) : error C2501: 'm_hstmtUpdate' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(881) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(890) : error C2061: syntax error : identifier 'HSTMT'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(927) : error C2146: syntax error : missing ';' before identifier 'm_nSQLType'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(927) : error C2501: 'SWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(927) : error C2501: 'm_nSQLType' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(928) : error C2146: syntax error : missing ';' before identifier 'm_nPrecision'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(928) : error C2501: 'UDWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(928) : error C2501: 'm_nPrecision' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(929) : error C2146: syntax error : missing ';' before identifier 'm_nScale'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(929) : error C2501: 'SWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(929) : error C2501: 'm_nScale' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(930) : error C2146: syntax error : missing ';' before identifier 'm_nNullability'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(930) : error C2501: 'SWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(930) : error C2501: 'm_nNullability' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(936) : error C2146: syntax error : missing ';' before identifier 'm_nSQLType'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(936) : error C2501: 'SWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(936) : error C2501: 'm_nSQLType' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(937) : error C2146: syntax error : missing ';' before identifier 'm_nPrecision'
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(937) : error C2501: 'UDWORD' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(937) : error C2501: 'm_nPrecision' : missing storage-class or type specifiers
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(937) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing clarm.exe.
datenbank1.exe - 102 error(s), 1 warning(s)zu krass woa, frag mich was ich falsch mache!? oder unterstützt embedded visual das überhaupt nicht!?
entwicklungsumgebung:
windows ce 4.2
embedded visual c++ 4.0
mdac
mysql connector 3.5
-
Hast Du vorher auch die afx.h included bzw. afxwin.h?
-
hab ich noch nicht gemacht, aber jetzt. und dann kommt der fehler,
c:\programme\windows ce tools\wce420\pa962\mfc\include\afxdb.h(24) : fatal error C1189: #error : Database classes not supported in this library variant.
was bedeutet das jetzt, datenbank wird nicht von dieser bibliothek unterstützt. *hä*
-
ODBC geht nicht mit Embedded: http://www.pocketpcdn.com/forum/viewtopic.php?p=816&sid=6c66906289fece2471416c3b61ad6d89

-
vielen vielen dank für deine hilfe. also muss ich mich jetzt auf eine andere method e einschießen.
OLE DB/CE gibts keine ordentliche page
ADOCE http://www.pocketpcmag.de/pocketpcbuch/referenz/adoce/index.htmlwas würdet ihr mir empfehlen, is adoce empfehlenswert!?
glaube nehme das
-
Ich kenne bisher leider nur ODBC, muss mich da also enthalten.

Adoce klingt gut, dass sollte wenigstens laufen, hat ja immerhin ce im Namen.
-
naja dann werde ich mir mal in adoce richtig reinpumpen und dann mal schauen was geht*bäh* wenn ich fragen habe, komme ich aufjedn auf dich zurück*g*
