hey all. first post.
i'm not a c/c++ developer...i'm a vb guy working on healthcare apps. with that being said, i know enough c++ to do a lot of stuff without getting too fancy.
i need to convert one of my VB apps to a service, and that basically necessitates a switch to c++. i've already got the ADO taken care of, and my next step is to convert my terminal server functions over.
i #include "wtsapi32.h", but i get a whole slate of errors, beginning with:
why would i be getting that? the offending code:
i've never had a problem with LPWSTR and LPSTR (and DWORD, etc.) before.
i'm not a c/c++ developer...i'm a vb guy working on healthcare apps. with that being said, i know enough c++ to do a lot of stuff without getting too fancy.
i need to convert one of my VB apps to a service, and that basically necessitates a switch to c++. i've already got the ADO taken care of, and my next step is to convert my terminal server functions over.
i #include "wtsapi32.h", but i get a whole slate of errors, beginning with:
c:\mckesson\orgaudit\c\wtsapi32.h(108) : error C2146: syntax error : missing ';' before identifier 'pServerName'
c:\mckesson\orgaudit\c\wtsapi32.h(108) : error C2501: 'LPWSTR' : missing storage-class or type specifiers
c:\mckesson\orgaudit\c\wtsapi32.h(108) : error C2501: 'pServerName' : missing storage-class or type specifiers
c:\mckesson\orgaudit\c\wtsapi32.h(112) : error C2146: syntax error : missing ';' before identifier 'pServerName'
c:\mckesson\orgaudit\c\wtsapi32.h(112) : error C2501: 'LPSTR' : missing storage-class or type specifiers
c:\mckesson\orgaudit\c\wtsapi32.h(112) : error C2501: 'pServerName' : missing storage-class or type specifiers
why would i be getting that? the offending code:
107: typedef struct _WTS_SERVER_INFOW {
108: LPWSTR pServerName; // server name
109: } WTS_SERVER_INFOW, * PWTS_SERVER_INFOW;
110:
111: typedef struct _WTS_SERVER_INFOA {
112: LPSTR pServerName; // server name
113: } WTS_SERVER_INFOA, * PWTS_SERVER_INFOA;
i've never had a problem with LPWSTR and LPSTR (and DWORD, etc.) before.
