I try:
1. define dialoge resource:
16000 DIALOGEX 12, 9, 161, 67
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX |
WS_MAXIMIZEBOX
CAPTION "Align"
FONT 8, "MS Sans Serif"
{
}
2. I try to create dialog object:
//create callback functions
ADMErr ADMAPI PluginDlgInitProc(ADMDialogRef dialog)
{
sADMDialog10->DisplayAsModal(dialog);
return kNoErr;
}
ADMErr ADMAPI PluginDlgInitProc2(ADMDialogRef dialog)
{
return kNoErr;
}
//get plugin reference
ADMPluginRef plugin_ref = this->GetPluginRef();
//create object
dialog = sADMDialog->Create(plugin_ref , "modal dialog", 16000, kADMModalDialogStyle , PluginDlgInitProc, PluginDlgInitProc2, 0 );
All is compiled without errors and loaded by the illustrator.
After I start this code in illustrator occurs nothing.
If I try to start a code in debugger that is carried out of nothing after sADMDialog-> Create.
"try" & "catch" also does not allow to see any error.
What do I do not so?
What it is necessary to me for dialogue creation?