Skip to main content
January 14, 2009
Question

Resource files

  • January 14, 2009
  • 2 replies
  • 344 views
Hi All,<br /><br />I am working on Indesign CS3 - PC.<br />I have included a text file in the resource files of my Plug-in.<br />I want to be able to read this file.<br /><br />I am trying to use the CreateResourceStreamRead to read this file as follows.<br />InterfacePtr<IPMStream> txtStream(StreamUtil::CreateResourceStreamRead(RsrcSpec(X,Y), kTrue));<br />But I do not know what is to be specified in X - Resource type, Y - Resource ID.<br /><br />Can somebody please help me?<br /><br />Thanks<br /><br />Rajani
This topic has been closed for replies.

2 replies

January 19, 2009
Thank You
Rajani
Bartek_Kropaczewski
Inspiring
January 16, 2009
Hi

Here you have a sample for creating dialogs:

const PMLocaleId theLocale = LocaleSetting::GetLocale();
RsrcSpec theDialogSpec(theLocale, kYourPluginID, kViewRsrcType, yourDialogRsrcID, kTrue);

In CoreResTypes.h you can find more RsrcType's.