How do I add COMCTL32.LIB in Visual Studio 2005?

Posted on 2006-04-16
Last Modified: 2008-01-09
I want to use a Progress bar in my app. I know I need to add the comctl32.lib.

How do I add this to my linker options in Visual Studio 2005?

Question by:edvinson
    LVL 86

    Accepted Solution

    The easiest way is to add that in your source like

    #pragma comment(lib, "comctl32.lib");

    Using the IDE, choose "Add to Project|Files", set the extension to ".lib" in the "File Type" combo box, navigate to where comctl32.lib resides and double-click it.

    Or, go to your project options, choose "Linker" and add it to "Additional Libraries".
    LVL 1

    Author Comment

    got it. thanks.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    This tutorial is posted by Aaron Wojnowski, administrator at  To view more iPhone tutorials, visit This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
    Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode ( They will have you believe that Unicode requires you to use…
    The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now