Export the Dialog Function

You need to export the OpenDlg dialog function, since it is a callback function and will be called by Windows. Add the following line to the EXPORTS statement in your module-definition file:

OpenDlg @3