Creating a COFF object file from a resource script file on WIndows.
|:: This batch script should be run from a VS developer prompt.|
|:: rc will create a binary .res file|
|:: cvtres will convert the .res file to a COFF object file|
|cvtres /MACHINE:x64 /OUT:Resource.o Resource.res|
|:: The object file can be included during compilation like so:|
|:: cl.exe main.cpp /link /OUT:main.exe /SUBSYSTEM:CONSOLE /MACHINE:x64 Resource.o|