Re: dialogue can not be created, needing help!!!!!!!!!!!!!!!1

Tech-Archive recommends: Fix windows errors by optimizing your registry



<jianxun.s.w@xxxxxxxxx> wrote in message
news:1148291988.925951.51120@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am developing some addin to a CAD software- Inventor. Now, I am
trying to create a dialogue showing some customized information in a
ATL Object -- a EventSink which is based on IDispatch. But the dialogue
can not be created and when I use the DoModal() method, it returns the
-1.
Could any one please tell me what maybe the reason? Is there any
restriction to creat dialogues in ATL Objects, such as EventSink?


I suggest that you post again in the ATL group

microsoft.public.vc.atl

That said, are you sure that you have specified the name / id of the dialog
template correctly as well as the instance handle of the module that
contains it? Does your dialog get the WM_INITDIALOG message? If so, are you
sure that you process it correctly?

Regards,
Will


.



Relevant Pages