News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

who knows how to create a resource file

Started by andre, September 27, 2009, 03:17:34 PM

Previous topic - Next topic

andre

a rc compiler reports an error "can't  read a resource file"

BlackVortex

How do you assemble and link ?  Because normally you don't need to have a resource section/file

andre

 i suppose that the programme doesn't start because there is no an icon in the programme's folder. But i think that there is no need to place an icon in the folder if is a standard one

BlackVortex

What exactly are you trying to do ? You don't make much sense (at least to me)

andre

i am trying to create a window. but the programme doesn't start because it can't read from resource file. i suppose it needs an icon itself in the programme's folder. but if the icon is a standard one so it must take an icon from the windows file

BlackVortex

What is you program ? How are you linking ? I mean, with which commands ?

andre

i use masm32 v10  there everything goes automatically

MichaelW

If you are working in Quick Editor, the resource file should be named rsrc.rc.
eschew obfuscation

BlackVortex

Are you using Qeditor ? Are you using Build All ? Make sure there is no rsrc.rc file in the same folder (if you don't need it)


andre

i downloaded masm32 from masm32.com   there separate point in menu "compile resource file"

MichaelW

For the Compile Resource File command to work, there must be a .ASM file loaded into QE, and there must be a resource definition file named rsrc.rc in the current directory.
eschew obfuscation

andre


BlackVortex

You don't need to compile a resource file unless you know're gonna use it.

If you want to create a new executable is assembly all you need to do is assemble and link it !!  :toothy

andre

but how about an icon?  it needs a rc file !   

BlackVortex

OK, create a rsrc.rc file and paste this in it :

#include "C:\masm32\include\resource.h"

IDR_ICON ICON DISCARDABLE "nameofyouricon.ico"


Change the name to your icon's name. And the folder to your include folder.