Question: | |||||
How do I work around the linker error I sometimes get when using TClientSocket or TServerSocket and try to set the port at runtime? | |||||
Answer: | |||||
This error comes up because in the file winspool.h (automatically included by windows.h), there is an identical function called SetPortA relating to the printer port. This function is compiled before the socket function, so you get the error. | |||||
Possible Fix: | |||||
|
Last Modified: 28-MAR-00