Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Winsock2.h error

0 views
Skip to first unread message

uwmiko

unread,
Jul 18, 2003, 3:03:35 PM7/18/03
to
Hi All -

I just downloaded eVC4 SP2 and PocketPC 2003 SDK.
I wrote a Winsock application for PocketPC 2002 with eVC 3.0.
My application is linked to winsock.lib (Winsock 1.1).
That application compiled and linked succesfully with eVC4 and I could
run the application on a PocketPC 2003 emulator.

I wish to use Winsock 2.2 since it is provided in PocketPC 2003 SDK.
According to the online help:
"Source code compatibility means, with few exceptions, that all the
Winsock 1.1 functions are preserved in Winsock 2.2.

Winsock 1.1 application source code can be moved to the Winsock 2.2
system by including the new header file, Winsock2.h, and performing a
straightforward link with the appropriate Winsock 2.2 libraries."

I tried replacing #include <winsock.h> with #include <winsock2.h> in my
code and I added a link to Ws2.lib in my project setting, but eVC4
generates a compile error:
"C:\Program Files\Windows CE Tools\wce420\POCKET PC
2003\Include\emulator\winsock2.h(1218) : error C2059: syntax error : 'type'"

The location of the error in winsock2.h is indicated with ==>>>:

typedef
int
==>>> (CALLBACK * LPCONDITIONPROC)(
IN LPWSABUF lpCallerId,
IN LPWSABUF lpCallerData,
IN OUT LPQOS lpSQOS,
IN OUT LPQOS lpGQOS,
IN LPWSABUF lpCalleeId,
IN LPWSABUF lpCalleeData,
OUT GROUP FAR * g,
IN DWORD_PTR dwCallbackData
);

Has anyone ever tried using the Winsock2.2 libraries with their PocketPC
application?
I was wondering if you know how I could get rid of the compile error in
Winsock2.h.

I wrote a simple C code that also uses Winsock2 with VisualC++ 6.0 and
did not get any compile error.

Thank You,
miko

0 new messages