Excuse me, maybe I can help.
I had the same problem when trying to edit the first Generation Pokemon, exactly the same problem happened to me.
I don't know if I'm allowed to post any external links (I just registered), but simply search on Youtube for ''How to fix the COMDLG32 problem'' or something similar, you will most likely find a tutorial on how to solve this issue.
It was rather complex, so I don't recal the details, but if I'm not mistaking, you had to go to the system32 folder of your PC and somehow register the .DLL, but better take a look for yourself before I tell you something that isn't true.
I had the same problem when trying to edit the first Generation Pokemon, exactly the same problem happened to me.
I don't know if I'm allowed to post any external links (I just registered), but simply search on Youtube for ''How to fix the COMDLG32 problem'' or something similar, you will most likely find a tutorial on how to solve this issue.
It was rather complex, so I don't recal the details, but if I'm not mistaking, you had to go to the system32 folder of your PC and somehow register the .DLL, but better take a look for yourself before I tell you something that isn't true.