1. Please, edit your post to add Code tags around code snippet. Otherwise it is hard to read/understand the code.
2. Where is the line 224?
3. I don't see any sense to declare this variable as global:
Quote Originally Posted by kelisana
Code:
CMotoDlg *global_dialog;