Menu

Attatching resource files.....

2003-01-21
2012-09-26
  • Nobody/Anonymous

    i need some help with compiling with a recource file, i have never used resources (or headers for that matter) until recently, im learning to program using the win32 API and im not quite sure how to make a resource file within the project and link it to my *.c ..... any help or comments would be very much appreciated, ty in advance

     
    • Derek Baker

      Derek Baker - 2003-01-21

      Select

      File>New>Resource File

      for the *.rc

      You'll have to add a new source file, called *.h, with the values of constants you've used in the *.rc

      Derek

       
    • Derek Baker

      Derek Baker - 2003-01-21

      Should have added, include that *.h in your program.

      Derek

       
    • Nobody/Anonymous

      yeah i have a *.h file attatched but should i have #include <resource.rc> ? (and thank u for replying derek)

       
    • Derek Baker

      Derek Baker - 2003-01-21

      No need to include the *.rc, Dev handles that automatically.

      Derek

       
    • upcase

      upcase - 2003-01-22

      Including the resource file makes no sense. Resources get compiled to .res by windres, not gcc/g++. Afterwards this resource is link to your prog.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.