[Lazarus] Resources and Version info
"Leonardo M. Ramé"
l.rame at griensu.com
Fri Dec 5 12:44:01 CET 2008
It seems I'm placing the {$R myresource.rc} in the wrong place...when I
try to compile I receive this error:
windres: plugin.rc:15: syntax error
NPDemo.lpr(26,1) Error: Error while compiling resources
NPDemo.lpr(26,1) Fatal: There were 1 errors compiling module, stopping
This is a the code:
------------------
library NpDemo;
uses
LResources,
NPPlugin in 'NPPlugin.pas',
NPForm in 'NPForm.pas',
NPSubCls in 'NPSubCls.pas',
{ you can add units after this }
Unit1;
exports
NP_GetEntryPoints index 1,
NP_Initialize index 2,
NP_Shutdown index 3;
{$R plugin.rc}
begin
end.
And this is my "plugin.rc" file:
----------------------------
1 VERSIONINFO
FILEVERSION 1, 0, 0, 1
PRODUCTVERSION 1, 0, 0, 1
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEOS VOS__WINDOWS32
FILETYPE VFT_DLL
{
BLOCK "StringFileInfo"
{
BLOCK "040904e4"
{
VALUE "CompanyName", "Mike Scott Software\000"
VALUE "FileDescription", "Delphi Netscape Plugin Sample DLL\000"
VALUE "FileExtents", "mds\000"
VALUE "FileOpenName", "Mike Scott's plugin file (*.mds)\000"
VALUE "FileVersion", "1, 0, 0, 1\000"
VALUE "InternalName", "SamplePlugin\000"
VALUE "LegalCopyright", "Copyright Mike Scott \251 1995\000"
VALUE "MIMEType", "application/x-test-plugin\000"
VALUE "OriginalFilename", "NPDemo.dll\000"
VALUE "ProductName", "Mike Scott's Delphi Netscape Plugin Sample\000"
VALUE "ProductVersion", "1, 0, 0, 1\000"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 1033, 1252
}
}
Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979
Felipe Monteiro de Carvalho escribió:
> Make the entire .rc file yourself. Possibly disable the version info
> taken care by the IDE or create a file with a different name from the
> one the IDE maintains. Link it to your project with {$R myrcfile.rc}
>
>
More information about the Lazarus
mailing list