View previous topic :: View next topic |
Author |
Message |
IanLambley
Joined: 17 Dec 2006 Posts: 506 Location: Sunderland
|
Posted: Mon Jan 08, 2018 11:35 pm Post subject: Resources with 64 bit FTN95 and Visual Studio 2015 |
|
|
How do I compile and link the resources file into my project? |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Jan 09, 2018 8:33 am Post subject: |
|
|
Ian
SRC with /R and /BINARY does not work with the current release. This has now been fixed. The other possibility is that the Visual Studio plug-in for FTN95 is not calling SRC with these options.
Take a look at the build log to see if SRC is being called and let me know what you find.
At a more elementary level, if you add your resource script to your project files then SRC ought to be called at compile time. This is what happens with Plato. |
|
Back to top |
|
 |
IanLambley
Joined: 17 Dec 2006 Posts: 506 Location: Sunderland
|
Posted: Fri Nov 30, 2018 11:48 pm Post subject: |
|
|
Paul,
Sorry for the delay:
I added my resource script to the list of source files. It seems to be ignored and SRC is not invoked. This has to be done manually.
The build log has no sign of "SRC"
The link ".inf" file does not have the resource loaded. The "windows" option is not present in the link file.
Just tried it in the latest distribution and there is no change.
I'm using Visual Studio 2015.
Regards
Ian |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Sat Dec 01, 2018 9:17 am Post subject: |
|
|
Ian
I can't test this out for you (I don't have VS 2015 installed on my machine) but you could try adding a RESOURCES directive to the end of your main program. This would come at the end of a file and would be followed by the text of the script.
FTN95 will spawn SRC and produce a .res file. You might then be able to add this file to your project as a "reference" for the linker.
Failing that, you could try Plato. Plato might even accept the same project file. |
|
Back to top |
|
 |
|