em đang tập lập trình,tét 1 số ví dụ
-trênêVC3.0 thì chạy ok,sau đó em cài EVC4.0 sp4 để lập trình trên PPC2003 thì test lại nó báo lỗi
class CPDASocket : public CCeSocket
{
DECLARE_DYNAMIC(CPDASocket);
public:
//
// Constructor
//
CPDASocket(PURPOSE_E iPurpose=FOR_DATA);
protected:
//
// Called when data arrives
//
virtual void OnReceive(int nErrorCode);
};
lỗi sau:
Deleting intermediate files and output files for project 'PDABOT - Win32 (WCE emulator) Debug'.
--------------------Configuration: PDABOT - Win32 (WCE emulator) Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
F:\CHUONGTRINH\ROBOT\PDABOT\PDASocket.h(3) : error C2504: 'CCeSocket' : base class undefined
F:\CHUONGTRINH\ROBOT\PDABOT\PDASocket.h(13) : error C2629: unexpected 'class CPDASocket ('
F:\CHUONGTRINH\ROBOT\PDABOT\PDASocket.h(13) : error C2238: unexpected token(s) preceding ';'
Error executing cl.exe.
PDABOT.exe - 3 error(s), 0 warning(s)
xin chỉ dùm em ,thanks
-trênêVC3.0 thì chạy ok,sau đó em cài EVC4.0 sp4 để lập trình trên PPC2003 thì test lại nó báo lỗi
class CPDASocket : public CCeSocket
{
DECLARE_DYNAMIC(CPDASocket);
public:
//
// Constructor
//
CPDASocket(PURPOSE_E iPurpose=FOR_DATA);
protected:
//
// Called when data arrives
//
virtual void OnReceive(int nErrorCode);
};
lỗi sau:
Deleting intermediate files and output files for project 'PDABOT - Win32 (WCE emulator) Debug'.
--------------------Configuration: PDABOT - Win32 (WCE emulator) Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
F:\CHUONGTRINH\ROBOT\PDABOT\PDASocket.h(3) : error C2504: 'CCeSocket' : base class undefined
F:\CHUONGTRINH\ROBOT\PDABOT\PDASocket.h(13) : error C2629: unexpected 'class CPDASocket ('
F:\CHUONGTRINH\ROBOT\PDABOT\PDASocket.h(13) : error C2238: unexpected token(s) preceding ';'
Error executing cl.exe.
PDABOT.exe - 3 error(s), 0 warning(s)
xin chỉ dùm em ,thanks