[p4] Re : P4 SDK-> API question on win2k platform
kaspernauw at hotmail.com
Sun Oct 14 07:37:52 PDT 2001
OK, I figured it out myself.
All works well when you create a command-line project. But when you have a
gui application, a whole lot of headers get included along. One of those
headers is winspool.h, which contains a declaration of the SetPortA
function, along with a #define SetPort SetPortA.
If you're not using anything of winspool.h, just comment the define
statement out, and you will be able to compile without unresolved externals.
I suggest to the developers of the perforce API that they choose another
name for the SetPort() function, e.g. SetHostAndPort().
Beauty is a French phonetic corruption of a short cloth neck ornament.
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
More information about the perforce-user