How use dialog in DLL?plz help me
Hi Every One
I 'm writting a dll using MFC classes for deriving a hardware.It works well till I add a dialog class to it and derived an object from that dialog,and when I use pDlg->DoModal() function,my dll makes a runtime error and my VB program which uses that dll,abnormally ended.
So,please let me know,is it possible show a dialog (an object derived from CDialog) in a dll?if yes How can I implement it?
million Thanks :) :D
Really thank you Kuphryn but.....
really thank you for your help,but actually it didn't help me.In real I have a VB project and I develope a DLL for it with VC++,to do some functions in dll,and I want to show the progress of works while functions in DLL are working,so that I need a Dialog in DLL.but as you know,an usua l dialog has Ok and Cancel button and when I use a DoModal function,it waits till user click on ine of these two button,but I want my dialog has only one image and only one progress control and the while image is changing,progress shows the percent of work.So do you have any idea for me?may you help me again?
Thanks in advance