Thread: BC++5 can not open OpenFile dialog

  1. #1

    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)


  2. #2
    train spotter
    Join Date
    Aug 2001
    near a computer
    If it returns a zero try using the


    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
    Join Date
    Jan 2002
    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:


    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
    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