Thread: BC++5 can not open OpenFile dialog

  1. #1
    Unregistered
    Guest

    BC++5 can not open OpenFile dialog

    Did anybodj tried to using OpenFile dialog with BC++5(commandline) compiler. LCC can do but BC++ can not. Din't give any error or warning, just not opening

    I used Commdlg header, OPENFILENAME struct,... is there a difference for this compiler? At least for this situation

    (C & API)

    Thanks

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    If it returns a zero try using the

    CommDlgExtendedError()

    to get more error info. You are linking to comdlg32.lib in both?
    (I use them in MSVC 6 without problems)
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Borland's command line tools are configured for NT/2k. At a guess I would say you are compiling in win 9x?

    If so, then add the following two lines to your bcc32.cfg file in the bin directory of your install:

    -DWINVER=0x0400
    -D_WIN32_WINNT=0x0400

    Put them first, before the include and lib paths. Recompile and run your program and hopefully the errant common dialogs will appear.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 05-27-2009, 12:46 PM
  2. Dialog Box error
    By JJFMJR in forum Windows Programming
    Replies: 4
    Last Post: 09-04-2007, 07:51 AM
  3. Splitting a dialog up into multiple classes
    By Just in forum Windows Programming
    Replies: 1
    Last Post: 05-29-2005, 11:11 PM
  4. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM
  5. OpenFile Dialog Box
    By Terrell in forum Windows Programming
    Replies: 5
    Last Post: 09-30-2001, 01:52 PM