[p4] Re : P4 SDK-> API question on win2k platform
steve at vance.com
Mon Oct 15 10:33:42 PDT 2001
If I thought it would do any good, I would suggest that Microsoft stop
thinking they own the global namespace and then stop using blatantly
generic symbols in that scope without precedence or documentation. This is
only one of many examples, also including HANDLE and the header file name
At 02:37 PM 10/14/2001 +0000, Kasper Nauwelaerts wrote:
>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
>perforce-user mailing list - perforce-user at perforce.com
mailto:steve at vance.com
More information about the perforce-user