Veröffentlicht 6. Februar 200916 j Hallo, ich habe ein versucht strings einzubinden wie auf 1.5.1 * Klasse string in C++ beschrieben. Erhalte aber error C4430: missing type specifier - int assumed. Note: C++ does not support default-int #pragma once #include <afx.h> #include <afxwin.h> #include <afxinet.h> #include <stdio.h> #include "read_serverlist.h" #include <string> class Connect : public read_serverlist { public: Connect(void); static CFtpConnection * Connect::getLastConnection(); static CFtpConnection *connection_pointer; string last_textfile; public: ~Connect(void); };
6. Februar 200916 j Hallo, dieses Problem hat sich erledigt. Musste aber auch noch #include "stdafx.h" einfügen. #pragma once #include "stdafx.h" #include <afx.h> #include <afxwin.h> #include <afxinet.h> #include <stdio.h> #include "read_serverlist.h" #include <string.h> using namespace std; //das habe ich gefunden wieso reicht das nicht? class Connect : public read_serverlist { public: Connect(void); static CFtpConnection * Connect::getLastConnection(); static CFtpConnection *connection_pointer; string last_textfile; public: ~Connect(void); }; Bearbeitet 6. Februar 200916 j von wulfgang
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.