Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[C++ Error] Multiple declaration for 'FOLDERSETTINGS'

Status
Not open for further replies.

xljohn

Programmer
May 20, 2003
13
0
0
BR
Greetings,

I tried to compile a project that was crated using BCB 4 OR 5 in BCB6. This project also uses MapObject 2.1.

The first compiling errors:

[C++ Error] shobjidl.h(2193): E2238 Multiple declaration for 'FOLDERSETTINGS'
[C++ Error] shobjidl.h(8095): E2238 Multiple declaration for 'DESKBANDINFO'
[C++ Error] shlobj.h(1422): E2238 Multiple declaration for 'FVSHOWINFO'
[C++ Error] shlobj.h(3457): E2238 Multiple declaration for 'SHELLFLAGSTATE'

I tried to solve these by rename FOLDERSETTINGS, DESKBANDINFO, FVSHOWINFO, SHELLFLAGSTATE in the two files:

c:\program files\borland\cbuilder6\include\shlobj.h
c:\program files\borland\cbuilder6\include\shobjidl.h

But I think this method may be crude, since usually people will not change library files.

Can anybody give me some smart ways? Thanks.
John

 
Peter,

Thank you very much though i stopped on working on this project. I will check the URL you mentioned.

Thanks again. Have a nice weekend.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top