Connecting Dialog window to main window

This is a discussion on Connecting Dialog window to main window within the Windows Programming forums, part of the Platform Specific Boards category; Hi,
I'm having some problem trying to connect my dialog window to my main window.
Here's my code:
Code:
LRESULT ...