Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1019675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:03:05+00:00 2026-05-16T11:03:05+00:00

When I build my Visual C++ Solution ( 2005), I get the following warnings

  • 0

When I build my Visual C++ Solution ( 2005), I get the following warnings

1> c:\winddk\7000.0.winmain_win7beta.081212-1400\inc\api\commctrl.h(678) : see previous definition of ‘ImageList_Read’

1>e:\xml parse\development\gui\h\wtl4mfc.h(6) : warning C4273: ‘ImageList_Write’ : inconsistent dll linkage

1> c:\winddk\7000.0.winmain_win7beta.081212-1400\inc\api\commctrl.h(679) : see previous definition of ‘ImageList_Write’

1>e:\xml parse\development\gui\h\wtl4mfc.h(8) : warning C4273: ‘ImageList_ReadEx’ : inconsistent dll linkage

1> c:\winddk\7000.0.winmain_win7beta.081212-1400\inc\api\commctrl.h(686) : see previous definition of ‘ImageList_ReadEx’

1>e:\xml parse\development\gui\h\wtl4mfc.h(9) : warning C4273: ‘ImageList_WriteEx’ : inconsistent dll linkage

1> c:\winddk\7000.0.winmain_win7beta.081212-1400\inc\api\commctrl.h(687) : see previous definition of ‘ImageList_WriteEx’

When I checked these two files, I can see the following:

****In wtl4mfc.h****

extern “C”
{
HIMAGELIST WINAPI ImageList_Read(LPSTREAM pstm);
BOOL WINAPI ImageList_Write(HIMAGELIST himl, LPSTREAM pstm);

#if (_WIN32_WINNT >= 0x0501)
HRESULT WINAPI ImageList_ReadEx(DWORD dwFlags, LPSTREAM pstm, REFIID riid, PVOID* ppv);
HRESULT WINAPI ImageList_WriteEx(HIMAGELIST himl, DWORD dwFlags, LPSTREAM pstm);

#endif
};

In commctrl.h file I can see the following:

WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Read(__in struct IStream *pstm);
WINCOMMCTRLAPI BOOL WINAPI ImageList_Write(__in HIMAGELIST himl, __in struct IStream *pstm);

I am a beginner in Visual C++ and this is from a code which is available for me to maintain. How can I remove these warnings? These warnings are not shown if I build the code where lower version of Winddk is installed.

What is causing these warnings? How can I remove them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:03:06+00:00Added an answer on May 16, 2026 at 11:03 am

    That warning comes from having two declarations that have different __declspec. I expect WINCOMMCTRLAPI hides a __declspec attribute.

    To fix it, first check that you need to get both of those declarations included – perhaps different source files are picking up different include paths erroneously? Or directly including an old version? Second check if there is a macro defined in your build that affects how WINCOMMCTRLAPI is expanded. It may be there is a project setting that has got set wrong.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a C++ extension for python using swig. I've followed the
I'm trying to build a Chrome browser extension, that should enhance the way the
I want to use a temp directory that will be unique to this build.
I am playing with TFS 2010, and am trying to setup a build process
I have a new web app that is packaged as a WAR as part
I'm trying to write test harness for part of my Android mapping application. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.