Skip to main content

Problem:

This program demonstrates the use of Win32 API calls SHBrowseForFolder and SHGetPathFromIDList to display a dialog box that will allow the user to select a directory.

Resolution:

INTRODUCTION

==========

This program demonstrates the use of Win32 API calls SHBrowseForFolder and SHGetPathFromIDList to display a dialog box that will allow the user to select a directory.          

SOURCE FILES:

=========

Program Files          Description

--------------------     -----------------------------------------------------------

getDirectory.cbl      COBOL program with logic to show a folder browser dialog.  

getDirectory.gs       Dialog System screenset.        

Copy Files:

--------------------     -----------------------------------------------------------

getDirectory.cpb     Dialog System datablock copyfile.

REQUIREMENTS:

==========

This project was built with NetExpress 3.1. You can add the  source files to a newly created project if necessary. You will need the import library shell32.lib (supplied with the Win32 SDK) if you use call-convention 74. This file can be specified in the build settings, link tab, advanced category, "link with these LIBs" entry field.

OPERATION:

========

Run the program and click the "Get Directory" button. A "Browse For Folder" dialog box will appear enabling you to select a  directory. It will then be displayed in the entry field.

==========================================================

Keywords: demonstration, sample, example, demo, win32 api, getdirectory.zip

demo.ex

demo.ne

Attachments:

getdirectory.zip

Old KB# 4171