I got a problem about created dialog, the steps create -> activate -> exit -> destroy worked fine at first but second time failed.
creo 2.0 M230
first, dialog shows normally
after close dialog then click button again, dialog doesn't show up
this discussion describes the same situation but the solution doesn't work for me.
If the status is -1 he can't create the dialog because the old one is created already.
Or he can't find the .res file because it's at the wrong location. (Could be also a problem with the resource remembering management).
My std. Code look nearly the same:
char * gtqae_DIALOG_NAME = "gtqae_dialog";
prerr = ProUIDialogCreate(gtqae_DIALOG_NAME, "gtqae_dialog.res");
So I use .res at the second one ... first one could be with or without .res ... never had problems with that.
You could try to change the foldertypes by using :
ProUITranslationFilesEnable(); as first line inside your user_initialize method.
Make sure that you are using correct 'dialog_name' and 'resource' in the API call.
Try using the same value for these two.