Author Topic: Problems with resource.  (Read 570 times)

xandaz

  • Member
  • **
  • Posts: 129
  • I luv you babe
Problems with resource.
« on: November 12, 2019, 05:08:52 AM »
    Hi Guys. I'm trying to get back on track. I've been useing resource hacker to make the .rc file. When i assemble it all the resources don't get inside the .EXE file. Why is that. I seem to remember an old fashioned way where every resource had it's own ID but resource hacker doesnt work like that.
    can somone help?
    Thanks in advance
nothing to report.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6758
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Problems with resource.
« Reply #1 on: November 12, 2019, 06:19:49 AM »
Its a good tool but probably not the right one for your task. Why not write an RC script ?
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

TimoVJL

  • Member
  • ***
  • Posts: 476
Re: Problems with resource.
« Reply #2 on: November 12, 2019, 07:27:00 AM »
May the source be with you

xandaz

  • Member
  • **
  • Posts: 129
  • I luv you babe
Re: Problems with resource.
« Reply #3 on: November 12, 2019, 08:01:38 AM »
   Thanks Hutch. Could you kindly direct me to information needed to write RC scripts? while i search for myuself as well of course.
   One Thanks not enough.
   be seein you
nothing to report.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6758
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Problems with resource.
« Reply #4 on: November 12, 2019, 10:50:29 AM »
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

xandaz

  • Member
  • **
  • Posts: 129
  • I luv you babe
Re: Problems with resource.
« Reply #5 on: November 12, 2019, 08:25:59 PM »
   that's exactlly what i was looking for. Thanks
nothing to report.

xandaz

  • Member
  • **
  • Posts: 129
  • I luv you babe
Re: Problems with resource.
« Reply #6 on: November 12, 2019, 08:49:44 PM »
    Look...i know you've helped me a lot but i still have questions. i made the rc file. No resources are found inside the  exe file. why is that?
What am i not doing?
    Thanks again in advance
nothing to report.

jj2007

  • Member
  • *****
  • Posts: 9794
  • Assembler is fun ;-)
    • MasmBasic
Re: Problems with resource.
« Reply #7 on: November 12, 2019, 09:54:29 PM »
Does the commandline care for the rc and res files? I don't know what IDE or editor you are using...

xandaz

  • Member
  • **
  • Posts: 129
  • I luv you babe
Re: Problems with resource.
« Reply #8 on: November 12, 2019, 10:48:43 PM »
    I'm using ResEd JJ and QEditor for the assedmbly. Isn't that enough? I've been looking into ml and link command line options but see nothing regarding the rc files...
    thanks
nothing to report.

xandaz

  • Member
  • **
  • Posts: 129
  • I luv you babe
Re: Problems with resource.
« Reply #9 on: November 12, 2019, 10:58:16 PM »
    So.... i found out i need to use the resource compiler but still no resources found in .exe file when i imagelist_loadimage them.
nothing to report.

jj2007

  • Member
  • *****
  • Posts: 9794
  • Assembler is fun ;-)
    • MasmBasic
Re: Problems with resource.
« Reply #10 on: November 12, 2019, 11:52:51 PM »
I don't use qEditor regularly, but as far as I remember, the build process includes resources if it finds a rsrc.rc in the path of the source. See in particular \Masm32\menus.ini and \Masm32\bin\bldallc.bat

How did you name your resource file?

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6758
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Problems with resource.
« Reply #11 on: November 13, 2019, 12:07:49 AM »
Just have a look in the examples, \masm32\examples\dialogs_later\

The default way of using dialogs is to name the RC file rsrc.rc
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6758
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Problems with resource.
« Reply #12 on: November 14, 2019, 01:33:06 PM »
Here is a very simple example, mainly so you can see the basic techniques for constructing a resource dialog. The RC file can be edited with Ketil Olsen's Resed.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

Vortex

  • Member
  • *****
  • Posts: 2030
Re: Problems with resource.
« Reply #13 on: November 16, 2019, 04:52:45 AM »
Hi xandaz,

Resource Hacker provides an option to save resources as compiled scripts, .res files.

xandaz

  • Member
  • **
  • Posts: 129
  • I luv you babe
Re: Problems with resource.
« Reply #14 on: November 20, 2019, 06:51:24 AM »
    Well  guys... things have adavanced a little and i provided a non-working example for you to see what the heck is wrong, if you please.
    The LoadBitmap function returns resource name not found. Also tried the identifier. doesn't work either.
    thanks in advance
nothing to report.