Thread: Bad libcomctl32.a????

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    161

    Bad libcomctl32.a????

    Ok, I don't get this. I'm trying to compile something with the current MinGW on WinXP using the SetWindowSubclass stuff, and I've been trying to figure out why it keeps ..........ing about "undefined reference to DefSubclassProc." I have the headers included, win version, etc. It ONLY complains about DefSubclassProc, NOT SetWindowSubclass, which makes even less sense. So I open libcomctl32.a in a hex editor. Low and behold, SetWindowSubclass exists, DefSubclassProc does NOT. It's in commctrl.h but not the actual library. WHAT GIVES!?
    Last edited by Viper187; 07-19-2009 at 10:01 AM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    DefSubclassProc Function ()
    Minimum DLL Version comctl32.dll version 5.8 or later

    Maybe it's just old.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    161
    Quote Originally Posted by Salem View Post
    DefSubclassProc Function ()
    Minimum DLL Version comctl32.dll version 5.8 or later

    Maybe it's just old.
    Try again. SetWindowSubclass and GetWindowSubclass have the same minimum DLL version. The whole subclassing method was updated at v5.8. So why is DefSubclassProc missing from the library?

  4. #4

  5. #5
    Registered User
    Join Date
    Jun 2008
    Posts
    161
    How? I've never done that kind of stuff. and FYI, it looks like only SetWindowSubclass is there. The other 3 functions were completely ignored. What the ........?
    Last edited by Viper187; 07-20-2009 at 08:47 AM.

  6. #6
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    It's been my experience that the community adds entry points (new and existing) on an as-needed basis.

    >> How?
    How can I help out?

    There are mailing lists you should join, read, and submit question(s) patches too.

    Here's an interesting read on the legality of submitting Win32 patches: Gmane Loom

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. bad and fail of steam
    By George2 in forum C++ Programming
    Replies: 8
    Last Post: 02-19-2008, 03:07 AM
  2. Can you still view the bios screen with a bad CPU?
    By HyperCreep in forum Tech Board
    Replies: 4
    Last Post: 12-31-2006, 06:57 PM
  3. data loss bad bad bad
    By RoD in forum Tech Board
    Replies: 4
    Last Post: 05-01-2003, 12:06 PM
  4. Shocking(kind of)
    By Shadow in forum A Brief History of Cprogramming.com
    Replies: 25
    Last Post: 12-10-2002, 08:52 PM
  5. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM