OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
problem with comsvcs.h file please help

From: Katiyar, Subodh (Path) (skatiyarAFSINDIA.COM)
Date: Mon Feb 09 2004 - 00:31:37 CST


hi
i am making a inproc server dll which will be hosted in mts
i am using atl for coding the same ,recently i had the requirement for including shared property manager in the same ,for updating and storing a property value in the shared property,
but the trouble is as soon as i include the file comsvcs,h and try to compile it gives following errors.

c:\program files\microsoft visual studio\vc98\include\comsvcs.h(9940) : error C2146: syntax error : missing ';' before identifier 'RESTYPID'
c:\program files\microsoft visual studio\vc98\include\comsvcs.h(9940) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

i can't understand why this is coming for the first line it appears is like this with some lines preceeding and some following .

#ifndef DECLSPEC_UUID
#if (_MSC_VER >= 1100) && defined (__cplusplus)
#define DECLSPEC_UUID(x) __declspec(uuid(x))
#else
#define DECLSPEC_UUID(x)
#endif
#endif

typedef DWORD_PTR RESTYPID; // error no one comes here........

typedef DWORD_PTR RESID;

typedef LPOLESTR SRESID;

typedef LPCOLESTR constSRESID;

typedef DWORD RESOURCERATING;

everything looks ok to me though.
is it something related to the size of the file ?
how to resolve this ,any lead will be highly appreciated...

DISCLAIMER:
The information contained in this Message is confidential and intended only for the use of the individual or entity identified. If the reader of this message is not the intended recipient, any dissemination, distribution or copying of the information contained in this message is strictly prohibited. If you received this message in error, please notify the sender immediately.

----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.html
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM