Thread: I need help using CB_DIR

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    42

    Smile I need help using CB_DIR

    Is anyone using CB_DIR message with no problems when compiling with MingW? I canīt use it. No matter which wParam I add to it (DLL_*) I get it is 'Undeclared". MSDN tells me I should only be including windows.h and linking user32.lib what I am doing off course. The rest of the program, messages and controls work perfectly.


    Maybe thereīs some problem on using this message with MingW libs? Or am I just beeing stupid on something?
    Code:
    SendMessage(combobox1, CB_DIR, DLL_DRIVES, "c:\\");
    I get undeclared to any of this:
    DDL_ARCHIVE
    DLL_DIRECTORY
    DLL_DRIVES
    DLL_EXCLUSIVE
    DLL_HIDDEN
    DLL_READONLY
    DLL_READWRITE
    DLL_SYSTEM

    By my googling it looks like I am the only idiot who is having problems with it in the face of earth.
    Any ideas?
    Thanks

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    42
    ...oh ####...
    ...I am so ashamed...

    Iīm sure you already saw what was wrong above...
    DLL* instead of DDL*

    Thatīs it, I am getting some sleep now and new glasses monday...

    Sorry, let this thread die please :|

    Iīm a total idiot.

Popular pages Recent additions subscribe to a feed