flat assembler
Message board for the users of flat assembler.

Index > Windows > resource - invalid file format

Author
Thread Post new topic Reply to topic
Ali.Z



Joined: 08 Jan 2018
Posts: 715
Ali.Z 09 Apr 2020, 16:19
Code:
section '.rcrs' resource data readable from 'resource.rc'    

generated by MSDEV 4.2

fasm says invalid file format, so what im missing?



long story short, i accidentally deleted the template that i hardcoded.
it was a frame-based win32 gui code, i.e. everything is made by calling CreateWindowEx.

my template had over 2500 lines, many controls were implemented Sad Crying or Very sad

so i dont wanna write everything from scratch, instead i want to use MSDEV 4.2 to generate dialog resource for faster development.

_________________
Asm For Wise Humans
Post 09 Apr 2020, 16:19
View user's profile Send private message Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 798
Location: Russian Federation, Sochi
ProMiNick 09 Apr 2020, 19:17
there are many solutions: reconvert rc
https://board.flatassembler.net/topic.php?t=5629
or compile dummy exe(or dll) and extract resources this way
https://board.flatassembler.net/topic.php?p=96895
(whole resource section it is completely portable part, in topic grabbed particular resources, but grabbing whole resources is much simpler)
Post 09 Apr 2020, 19:17
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 09 Apr 2020, 20:00
The error here is that resource needs to first be compiled to be linked this way. Use a resource compiler to compile .RC into .RES file.
Post 09 Apr 2020, 20:00
View user's profile Send private message Visit poster's website Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 715
Ali.Z 10 Apr 2020, 01:34
thank you prominick good program actually, converters are always welcome.

thank you tomasz thats indeed what i wanted, compiled with RC /r filename.rc and it works perfectly.

at least using this i can forget about my deleted template (for short time only) and focus on rapid app dev. RAD

_________________
Asm For Wise Humans
Post 10 Apr 2020, 01:34
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20299
Location: In your JS exploiting you and your system
revolution 10 Apr 2020, 01:38
Ali.Z wrote:
at least using this i can forget about my deleted template (for short time only) and focus on rapid app dev. RAD
Might I suggest that you put on hold any development just yet. A higher priority is to get a backup system working.

What would happen if your HDD/SSD crashed right now? Would you still be good to go again in a few hours?
Post 10 Apr 2020, 01:38
View user's profile Send private message Visit poster's website Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 715
Ali.Z 10 Apr 2020, 02:04
thanks for the reminder rev, yes i think i have to backup because lost many other files as well mostly re-producible data and few small utilities i made which i dont care much about except my template win32 code.

my system on M.2 SSD, and every backup resides in HDD.
so yes i need to back, and i barely do that. thanks again.

_________________
Asm For Wise Humans
Post 10 Apr 2020, 02:04
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.