Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conflict With winsock
#3
As I indicated in original post, FTP upload 16k text file truncated to 1440 or 2880 using Indy (9.0.11), uploads the full 16k using ICS.
Both tiny supplied test programs.

Removed ICS component and problem continued.

When I invoked program conditional _WINSOCKAPI_ got different errors.

Stopped here:

/-- user supplied -----------------------------------------------------------
#include <winsock.h>
namespace Winsock
{
typedef fd_set *PFDSet;
typedef fd_set TFDSet;
}


[C++ Error] WinSock.hpp(21): E2257 , expected
[C++ Error] WinSock.hpp(28): E2257 , expected
[C++ Error] WinSock.hpp(32): E2257 , expected
[C++ Error] WinSock.hpp(36): E2257 , expected
[C++ Error] WinSock.hpp(40): E2257 , expected
[C++ Error] WinSock.hpp(44): E2257 , expected
[C++ Error] WinSock.hpp(48): E2257 , expected
[C++ Error] WinSock.hpp(52): E2257 , expected
[C++ Error] WinSock.hpp(56): E2257 , expected
[C++ Error] WinSock.hpp(60): E2257 , expected
[C++ Error] WinSock.hpp(64): E2257 , expected
[C++ Error] WSocket.hpp(668): E2316 'PServEnt' is not a member of 'Winsock'
[C++ Error] WSocket.hpp(668): E2040 Declaration terminated incorrectly
[C++ Error] WSocket.hpp(670): E2316 'PProtoEnt' is not a member of 'Winsock'
[C++ Error] WSocket.hpp(670): E2040 Declaration terminated incorrectly
[C++ Error] WSocket.hpp(672): E2316 'PHostEnt' is not a member of 'Winsock'
[C++ Error] WSocket.hpp(672): E2040 Declaration terminated incorrectly
[C++ Error] WSocket.hpp(674): E2316 'PHostEnt' is not a member of 'Winsock'
[C++ Error] WSocket.hpp(674): E2040 Declaration terminated incorrectly
[C++ Error] WSocket.hpp(726): E2303 Type name expected
[C++ Error] WSocket.hpp(749): E2141 Declaration syntax error
[C++ Error] WSocket.hpp(750): E2141 Declaration syntax error
[C++ Error] WSocket.hpp(751): E2141 Declaration syntax error
[C++ Error] WSocket.hpp(752): E2141 Declaration syntax error
[C++ Error] WSocket.hpp(776): E2141 Declaration syntax error
[C++ Error] WSocket.hpp(776): E2228 Too many error or warning messages




I am using UDP and TCP.
#include "IdBaseComponent.hpp"
#include "IdComponent.hpp"
#include "IdTCPClient.hpp"
#include "IdTCPConnection.hpp"
#include "IdUDPBase.hpp"
#include "IdUDPClient.hpp"

I removed the components and the includes and it compiled without all the previous errors. It won't run because I use those to find the server on a network.
Put the components back and errors returned.

This was running flawlessly for years (since 2003). Don't understand what went wrong.

Robert
Reply


Messages In This Thread
Conflict With winsock - by tultalk - 08-24-2018, 05:52 PM
RE: Conflict With winsock - by rlebeau - 08-24-2018, 09:59 PM
RE: Conflict With winsock - by tultalk - 08-26-2018, 02:17 AM
RE: Conflict With winsock - by rlebeau - 08-27-2018, 08:15 PM
RE: Conflict With winsock - by tultalk - 08-26-2018, 03:14 PM
RE: Conflict With winsock - by tultalk - 08-26-2018, 06:55 PM
RE: Conflict With winsock - by tultalk - 08-27-2018, 11:39 AM
RE: Conflict With winsock - by tultalk - 08-27-2018, 01:34 PM
RE: Conflict With winsock - by tultalk - 08-28-2018, 02:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)