Open file dialog

Is there any way to call the windows OpenFileDialog() from un-managed Visual Cobol under windows?

Thanks in advance for any help.

Tags:

  • Verified Answer

    It might be possible to call a managed COBOL program that invokes the methods of this class.
    You would call the managed code thru COMInterop but this is not really a straightforward venture.

    In what manner do you wish to use this class?
    Do you just wish to simply display a dialog and then return the selected filename to the program?

    If this is true then you could do this using the native win32 api GetOpenFileName instead.

  • Thank you for your reply.

    win32 GetOpenFileName would be perfect.
    Is there an example/documentation of how to implement this anywhere?

    Thanks again