PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marc van Cauwenberghe on July 15, 2012, 07:32:30 AM

Title: Resource error
Post by: Marc van Cauwenberghe on July 15, 2012, 07:32:30 AM
Hi all,

I have an 'Error creating Resource (RES) file'. I have attached the rc file.
Does anyone see something wrong?
How do you go about finding the error?

Regards,
Marc
Title: Re: Resource error
Post by: Marc van Cauwenberghe on July 15, 2012, 11:26:27 AM
Hello,
I have now removed all references to images.

My resource file:
#include "resource.h"

#define FIREFLY_RESOURCE   1


// Manifest info for WinXP theme support
1 24 "CODEGEN_GGSCH.Exe.Manifest"


Same error  :'( :'(
Title: Re: Resource error
Post by: José Roca on July 15, 2012, 01:24:03 PM
At least you could say which error are you getting. We can't reproduce it without having "CODEGEN_GGSCH.Exe.Manifest".
Title: Re: Resource error
Post by: Marc van Cauwenberghe on July 16, 2012, 03:08:25 AM
This is what I get, see attachment:
Title: Re: Resource error
Post by: Marc van Cauwenberghe on July 16, 2012, 03:09:18 AM
The manifest:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" >
    <assemblyIdentity
        version="1.0.0.0"
        processorArchitecture="X86"
        name="vkGGsch"
        type="win32" />
    <description></description>
    <dependency>
        <dependentAssembly>
            <assemblyIdentity
                type="win32"
                name="Microsoft.Windows.Common-Controls"
                version="6.0.0.0"
                processorArchitecture="X86"
                publicKeyToken="6595b64144ccf1df"
                language="*" />
        </dependentAssembly>
    </dependency>
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
       <security>
          <requestedPrivileges>
             <requestedExecutionLevel level="asInvoker" uiAccess="false" />
          </requestedPrivileges>
       </security>
    </trustInfo>   
    <asmv3:application>
         <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
            <dpiAware>true</dpiAware>
         </asmv3:windowsSettings>
    </asmv3:application>

</assembly>
Title: Re: Resource error
Post by: José Roca on July 16, 2012, 03:17:16 AM
It compiles fine in my computer, using the resource compiler 6.1.
Title: Re: Resource error
Post by: Paul Squires on July 16, 2012, 08:58:27 AM
Try this:

Close/exit FF
Delete all CODEGEN*.* in the Release folder
Restart FF
Compile

Does that fix it? Sometimes this works for me in the rare case that I get resource compile problems.
Title: Re: Resource error
Post by: Marc van Cauwenberghe on July 17, 2012, 09:15:53 AM
Update:

Even creating a new progect and compiling it gives me the same error.
I finally set the RC INclude file path to Jose's includes and now it worked.

Strange.
Title: Re: Resource error
Post by: José Roca on July 17, 2012, 04:58:41 PM
It's not strange. The resource compiler needs to access resource.h and other related .h includes. If it is not in the path, it wouln't find it and fail.