Build error in Imapi2 sample

I tried to build the sample in SDK ( build 5456.3.0)

But, it shows an error, and I could not found the definition.

\samples\winbase\storage\optical\imapi2sample\erase2event.h(30) : error C2065: 'DISPID_IDISCFORMAT2ERASEEVENTS_PROGRESS'

VisualStudio 2005 shows error message.

I built it under WindowsXP sp2 and Vista 5456.

But the result was same.

[422 byte] By [kata.] at [2008-1-25]
# 1

Did you set up the additional search paths for headers and libraries in the IDE?

e.g. for includes

C:\Program Files\Microsoft SDKs\Windows\v1.0\Include

e.g. and for libs

C:\Program Files\Microsoft SDKs\Windows\v1.0\Lib

I thought the setup would have handled it, but I remember having to do it manually at least once...

foobarX at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Optical Platform Discussion...
# 2

Thank you for your comment.

Yes,I did.

If not, it will show the other error message.

"cannot open include file" or something...

I downloaded older version of SDK, build 5838, it works fine.

And I could find the difinition in the header, "imapi2.h" .

There is problem in the header files of the SDK build 5456.

I compared imapi2.h between build 5838 and 5456.

There are many name changes.

Finally, I found the cause.

DISPID_IDISCFORMAT2ERASEEVENTS_PROGRESS was modified.

The new difinition is DISPID_IDISCFORMAT2ERASEEVENTS_UPDATE.

kata. at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Optical Platform Discussion...
# 3
Yes, we did a clean-up of our headers, resolving many naming inconsistencies. Unfortunately this was a breaking change and I apoligize for the problem it may cause. Hopefully the improved headers will be beneficial on the long term.
DavidBurg-MSFT at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Optical Platform Discussion...
# 4
The updated sample will be available for the RC1 release.
ScottT-MSFT at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Optical Platform Discussion...

Software Development for Windows Vista

Site Classified