The Student Room Group

Error in Resource File!! - Dev Pascal

I downloaded Dev Pascal from this site and there is always seems to be something wrong with the Rescourse file when i try and compile it.

This is what it says is wrong - i can never seem to fix it:

cpp: Too many arguments
C:\Dev-Pas\bin\windres: F:\Year 12\Computing\Programming export %usage\Rsrc.rc:1: parse error

It states that the file is from F: which is my USB key but i actually opened it from my C: drive!!

Please Help! - this is a lil urgent as it is for my courswork!!!!
Reply 1
It looks like Dev-Pascal isn't putting quotation marks around the file name, which makes windres choke (understandably). Try moving your project (or at least, the resource script) to a directory without any spaces: e.g. C:\ProjRes

Either that, or see if there are any settings to change the format that windres.exe is invoked; if there are, put quotation marks around the token that represents the name of the resource script.
Reply 2
Whar does this mean??

C:\Dev-Pas\bin\windres: can't open icon file `DISCARDABLE"C:/Development/Dev-Pas/Icons/Mainicon.icon"': Invalid argument
Reply 3
It looks like you resource script is messed up. Could you post the contents of it here? Enclose it with code tags:


like this


It's probably easier to fix it by hand.
Reply 4
Ok well the whole resource problem is fixed now - not sure how but it is thanks for the help.

But...

now i have done the code and it says:

Fatal:u:nexpected end of line

Where the last thing is : end.

It doesnt like it being a full stop at the end but it doesnt like a semi colon either???
Help!
Reply 5
I've never coded in Pascal for more than a day, but I seem to remember there are three 'end' statements. Can you paste the part of the source code that the error occurs in? (the whole function that the error occurs in would be great).

Once we can see the context of the error, it should be a lot easier to fix. :smile:
can you give the tutorial i act dont understand