Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

WaitOnDialog


2 replies to this topic

paiviheik

paiviheik
  • Members
  • 9 posts

Posted 17 February 2002 - 15:36

Hi,

I have a problem with my custom registeruserex -dialog box. I included it in to my project and WaitOnDialog() function always return -1 (DLG_ERR). Can somebody help me with this?

szDlg = "SdCustomRegisterUserEx";

//define a custom dialog box
if (EzDefineDialog( szDlg, ISUSER, szDlg, NULL ) = DLG_ERR) then
      return -1;
endif;

//display a custom dialog box.
nId = WaitOnDialog( szDlg );

I also tried this way:

if (EzDefineDialog( szDlg, ISUSER, "", nSdDialog ) = DLG_ERR) then
     return -1;
endif;

How can I trace the error?

Thanks,

Paivi



Ide Nentjes

Ide Nentjes
  • Members
  • 222 posts

Posted 18 February 2002 - 09:52

Hi Pavi,

The seconf call is the correct one, the first one will never work. So you must use :

EzDefineDialog( szDlg, ISUSER, "", nSdDialog )

Have you made sure that  nSdDialog  has the correct value ? (i.e. the ID of the dialogbox in you _isuser.dll  )

Ide


paiviheik

paiviheik
  • Members
  • 9 posts

Posted 18 February 2002 - 10:39

Thank you! That helped me to figure out that I had defined wrong value for the dialog box in _isuser.dll...

Päivi