12-20-2023, 12:32 PM
I have installed C++Builder 12 only, all other directories, files and path entries has been removed.
The function belongs to the Microsoft SDK:
BOOL SetPort(
_In_ LPTSTR pName,
_In_ LPTSTR pPortName,
_In_ DWORD dwLevel,
_In_ LPBYTE pPortInfo
);
Unicode- und ANSI-Name
SetPortW (Unicode) und SetPortA (ANSI)
Winspool.h
Winspool.lib/Winspool.a
The function is used by the following modules:
IdIOHandler.pas
IdPMCast.pas
IdTCPClient.pas
IdUDPBase.pas
IdUDPClient.pas
IdDNSResolver.pas
There was a similar problem before,
when wininet.lib/wininet.a failed in IWUtils.hpp (IW15.2.65),
That's why I tried to integrate the library myself:
#if _WIN64
#pragma message "Winspool.a"
#pragma link "Winspool.a"
#elif _WIN32
#pragma message "Winspool.lib"
#pragma link "Winspool.lib"
#endif
But it didn't work.
The Embarcadero header file winspool.h seems to be OK.
I have installed version Microsoft Windows 10 - SDK 21.0.
Is this the correct version ?
The function belongs to the Microsoft SDK:
BOOL SetPort(
_In_ LPTSTR pName,
_In_ LPTSTR pPortName,
_In_ DWORD dwLevel,
_In_ LPBYTE pPortInfo
);
Unicode- und ANSI-Name
SetPortW (Unicode) und SetPortA (ANSI)
Winspool.h
Winspool.lib/Winspool.a
The function is used by the following modules:
IdIOHandler.pas
IdPMCast.pas
IdTCPClient.pas
IdUDPBase.pas
IdUDPClient.pas
IdDNSResolver.pas
There was a similar problem before,
when wininet.lib/wininet.a failed in IWUtils.hpp (IW15.2.65),
That's why I tried to integrate the library myself:
#if _WIN64
#pragma message "Winspool.a"
#pragma link "Winspool.a"
#elif _WIN32
#pragma message "Winspool.lib"
#pragma link "Winspool.lib"
#endif
But it didn't work.
The Embarcadero header file winspool.h seems to be OK.
I have installed version Microsoft Windows 10 - SDK 21.0.
Is this the correct version ?