error : CFU_UNDERLINEWAVE undeclared identifier

  • Thread starter Thread starter Muskaan
  • Start date Start date
M

Muskaan

Hi,
I want that text selected in rich edit control should be red
underlined (wavy) as in MSWord(in case of spelling errors).I used
CHARFORMAT2 structure and set the dwMask to be CFM_UNDERLINETYPE and
bUnderlineType to be CFU_UNDERLINEWAVE but this gives me a compiler
error.."CFU_UNDERLINEWAVE undeclared identifier".

I checked the richedit20.dll that I am using and it supports Rich Edit
3.0.However the header file richedit.h in VC98 does not have the
CFU_UNDERLINEWAVE defination.So I replaced the header file with new
header file(comes as a part of Platform SDK Visual Studio . Net) which
had the required defination ....but this gives me an error DWORD_PTR
undeclared identifier.

any ideas how can this problem be solved.

Do I need to update Platform SDK?

Thanks,
Muskaan
 
Greets,

As a general rule, don't replace the header files in the original
compiler's 'include' directory with newer versions from the Platform SDK
directly! Instead, make sure that you add the include path for the Platform
SDK include folder prior to the original path in the INCLUDE environment
variable. (The online SDK update should give you the option of updating
your environment variables for Visual Studio.)

If you just replace the headers piece-meal in that fashion, you don't
know what other dependent headers (unless you examine each #include in the
header) may be missing new preprocessor definitions, #ifdef inclusion and
exclusions or API declarations in addition to those in the header file you
replaced. Also, don't just get rid if your old include directory from the
path either --it may contain header files which are not available in the
Platform SDK.

Don't forget, you must also make sure the LIB environment variable has
the latest location for the import libraries. Otherwise, you'll find that
you'll compile just fine, but run into unresolved references at link time.

Regards,

Joe
 
Back
Top