SHLOBJ.H compiles an error solution!

xiaoxiao2021-03-06  56

Be Sure To include the Following Header in The Com Object Header File:

#include

Now You Find Out if You NEED To Makes Some Changes Before Continuing. Hit Build and You MAY LIKELY Be Greted with some of the Error Messages.

> [C Error] shlobj.h (1762): E2238 MULTIPLE DECLATION for 'FVShowinfo'

> [C Error] shlobj.h (1936): E2238 MULTIPLE DECLATION for 'Foldersettings'

> [C Error] shlobj.h (3717): E2238 MULTIPLE DECLATION for 'DeskBandInfo'

> [C Error] shlobj.h (4808): E2238 MULTIPLE DECLATION for 'ShellFlagState'

This problem is addressed in the upd1rdme.txt file in the builder directory, which appears after applying the service pack. For what it's worth, I have never tried the solution suggested in the upd1rdme.txt file. I simply commented the areas out of the ShlObj.hpp. Later I would read a post by Alex Bakaev [Team B] in borland.public.cppbuilder.activex that suggested commenting out the offending parts from the ShlObj.hpp file also. So there you have it. Someone in the know Also Suggests The "Comment It Out" Solution. Great Minds Think Alike, And All That.

The Following Code Was All That I commented out of shlobj.hpp to get the project to build.

//. Typedef fvshowinfo * pfvshowinfo;

// typedef fvshowinfo tfvshowinfo;

// typef foldersettings * pfoldersetting;

// typef foldersettings tfoldersetting;

...

// typedf deskbandinfo * pdeskbandinfo;

// typedf deskbandinfo tdeskbandinfo;

...

// typedf shellflagstate * pshellflagstate;

// typedf shellflagstate tshellflagstate;

As I Said, I comments Out of the shlobj.hpp file. You can do the size, or you can try the solution in the Upd1rdme.txt file. I know at Least One of the them works for suhe.com ........................ ..

Another: shobjidl.h also fault, I replace the current file with the same name file in the installation file. Solve it. Suspected is the previous change.

转载请注明原文地址:https://www.9cbs.com/read-117872.html

New Post(0)