{"id":251,"date":"2009-04-13T22:49:46","date_gmt":"2009-04-14T06:49:46","guid":{"rendered":"http:\/\/xiehang.com\/blog\/?p=251"},"modified":"2009-04-13T22:49:46","modified_gmt":"2009-04-14T06:49:46","slug":"using-resource-in-gnat","status":"publish","type":"post","link":"https:\/\/xiehang.com\/blog\/2009\/04\/13\/using-resource-in-gnat\/","title":{"rendered":"Using resource in GNAT"},"content":{"rendered":"

I guess I will need this some day – to build resource into the executable.<\/p>\n

    \n
  1. Edit and save a rc file, say, myres.rc<\/li>\n
  2. compile the rc file by “windres -i myres.rc -o myres.o”<\/li>\n
  3. Link with “gnatmake main-prog -largs myres.o”<\/li>\n<\/ol>\n

    That’s it.<\/p>\n

    I haven’t figure out how to make things work in GPS yet.<\/p>\n","protected":false},"excerpt":{"rendered":"

    I guess I will need this some day – to build resource into the executable. Edit and save a rc file, say, myres.rc compile the rc file by “windres -i myres.rc -o myres.o” Link with “gnatmake main-prog -largs myres.o” That’s it. I haven’t figure out how to make things work in GPS yet.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/251"}],"collection":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/comments?post=251"}],"version-history":[{"count":2,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":253,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/251\/revisions\/253"}],"wp:attachment":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/media?parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/categories?post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/tags?post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}