Главная страница | назад





Article #26570: Multiple declaration errors when including shlobj.h.

Question:

I am getting multiple declaration errors for FVSHOWINFO, FOLDERSETTINGS, DESKBANDINFO, SHELLFLAGSTATE, and I dont' know why. How do I resolve this problem?

Answer:

This is caused by including shlobj.h in your project. The multiple declarations are coming from "shlobj.hpp", which is included with "vcl.h".

Try this:

Click "Project | Options | Directories/Conditionals" and add "NO_WIN32_LEAN_AND_MEAN" to the conditional defines section, separating it from other defines with a semicolon (;).

Last Modified: 14-MAR-02