Article View: borland.public.cppbuilder.nativeapi
Article #1505Problem with the "Packet32.h" file.........
From: Dan
Date: Mon, 23 Jul 2007 10:51
Date: Mon, 23 Jul 2007 10:51
52 lines
3466 bytes
3466 bytes
Hi all,
I'm not sure if this is the right group for this question.
I'm working with Builder 4.0, I had to take a project that was
compiled on Builder 6.0 and make it compile on Builder 4.0,
after debuging work I got to conclusion that the problems start
with the include of the file "Packet32.h".
To test it, I opened a New Project on builder 4.0, and I just
included the file "Packet32.h" right below the "Unit1.h"
include line in the "Unit1.cpp" file, when I compile it I'm
getting lot of errors, here is the list -
[C++ Error] winsock2.h(95): E2257 , expected.
[C++ Error] winsock2.h(111): E2303 Type name expected.
[C++ Error] winsock2.h(111): E2139 Declaration missing ;.
[C++ Warning] winsock2.h(114): W8054 Style of function definition is now obsolete.
[C++ Error] winsock2.h(114): E2257 , expected.
[C++ Error] winsock2.h(1206): E2303 Type name expected.
[C++ Error] winsock2.h(1250): E2303 Type name expected.
[C++ Error] winsock2.h(1250): E2139 Declaration missing ;.
[C++ Error] winsock2.h(1605): E2141 Declaration syntax error.
[C++ Error] winsock2.h(1628): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(1649): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(1666): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(1687): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(1708): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(1729): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(1750): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(1843): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(1896): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(1919): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(1971): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(1994): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(2021): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(2046): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(2063): E2141 Declaration syntax error.
[C++ Error] winsock2.h(2532): E2147 'SOCKET' cannot start a parameter declaration.
[C++ Error] winsock2.h(2555): E2141 Declaration syntax error.
[C++ Error] winsock2.h(2555): E2228 Too many error or warning messages.
....
For example I get the first Error ("winsock2.h(95): E2257 , expected") on the following line in the Winsock2.h line -
typedef UINT_PTR SOCKET;
What can be the problem here?
Thanks.
Technical Details
Message-ID:
<46a48849$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e4addbdf6a8043ce,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Dan" <Dan@Nomail.com> Sender: "Dan" <Dan@Nomail.com> Reply-To: "Dan" <Dan@Nomail.com> Subject: Problem with the "Packet32.h" file......... Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.0.27.129 NNTP-Posting-Host: 207.105.83.66 Message-ID: <46a48849$1@newsgroups.borland.com> Date: 23 Jul 2007 03:51:53 -0700 X-Trace: newsgroups.borland.com 1185187913 207.105.83.66 (23 Jul 2007 03:51:53 -0700) Lines: 53 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail