I'm having trouble in an app I'm writing. For some reason when the file dcompat.h is included (from dicom.h) I get a bunch of compile errors in VCExpress for winnt.h. The code block below shows the first few lines:
I haven't seen this error before... There are many #define and #ifdef statements in dcompat.h, perhaps the compiler does not come along with this. But I think such a problem would have been reported before.
Two issues:
Be sure to include "dcmtk/config/osconfig.h" first before doing anything else in your code.
Do you encounter any problems including other header files from DCMTK?
it actually turned out to be another library (which was mistakenly tagging along with the project). I guess the library also utilizes winsock.h which was causing problems, but they weren't manifesting in a particularly obvious manner.