I have a dll dialog that has a function that pops up a modless dialog (using a class called CPictureDlg). I'm using the CDialog::Create() and the ShowWindow() to do this.
It works fine, while the dll dialog is loaded.
What I was wanting to do is export that CPictureDlg to the calling exe.
I can get it to work calling DoModal() but not with the Create().
The problem is somewhere with the Create params I guess.
I've tried leaving the CWnd* null and I've tried GetActiveWindow(), and I've tried passing the parent *wnd from the exe but always get some sort of error like "memory could not be read".
Is there a way to do this?