Skip to main content
February 16, 2009
Question

Creating a Dynamic Panel

  • February 16, 2009
  • 1 reply
  • 341 views
Hi, I try too create a dynamic panel, but when a do ASSERT(panel), the plugin enter in if(!panel), someone know what is wrong ?<br /><br />PMLocaleId localeId = LocaleSetting::GetLocale();<br /><br />IDataBase *panelDB = ::GetDataBase(panelMgr);<br /><br />InterfacePtr<IControlView> panel((IControlView*) ::CreateObject(panelDB,RsrcSpec(localeId, kXXXPluginID, kViewRsrcType, kSDKDefPanelResourceID, kTrue), IID_ICONTROLVIEW)); <br /> <br />ASSERT(panel); // HERE O CURRIED A ERROR.<br />if(!panel){<br /> break;<br />}<br /><br />Someone can help me PLZ!!
This topic has been closed for replies.

1 reply

February 23, 2009
I assume the that the Dynamic panel example works for you (?) If so, the failure could come from a wrong ID to the RsrcSpec call.