flat assembler
Message board for the users of flat assembler.

Index > Windows > Eternal fasm problem

Author
Thread Post new topic Reply to topic
Aquila



Joined: 21 Jun 2003
Posts: 16
Location: Russia, Moscow
Aquila 21 Jun 2003, 19:26
Tell me, was subj, I mean linking .res file to exe was already solved? How do you do it? Smile
Post 21 Jun 2003, 19:26
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 21 Jun 2003, 21:48
Only compile .asm to .obj (format COFF) and then use external linker like ALink...

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 21 Jun 2003, 21:48
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 22 Jun 2003, 01:38
interesting, then fasm have no internal linker Sad

btw, does anyone try to turn past forum posts into online text?
i think this is important, no ask question twice, some meaning, backup.
Post 22 Jun 2003, 01:38
View user's profile Send private message Reply with quote
Aquila



Joined: 21 Jun 2003
Posts: 16
Location: Russia, Moscow
Aquila 22 Jun 2003, 07:53
comrade wrote:
Only compile .asm to .obj (format COFF) and then use external linker like ALink...


I don't like this way. Previously I used brc32.exe from TASM to bind resources, but suddenly FASM applications made in such way begin to tell "Application coudn't properly initialize itself (0x00000005)". Now I search what could be a problem or another way to add .res files. But using MS COFF is not good as well as using internal macros.
Post 22 Jun 2003, 07:53
View user's profile Send private message Visit poster's website Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 22 Jun 2003, 08:41
in my guess, Alink is written in C.
but, to survive fasm, all is must be written in fasm.
purity, unified systemmatic.
Post 22 Jun 2003, 08:41
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 22 Jun 2003, 11:10
After you reminded it, I'm considering adding a feature of including .res files in the PE formatter. It would be just a syntax extension to current "data resource" of "section resource", something like "data resource from 'test.res'".
Post 22 Jun 2003, 11:10
View user's profile Send private message Visit poster's website Reply with quote
BiDark



Joined: 22 Jun 2003
Posts: 109
Location: .th
BiDark 22 Jun 2003, 12:41
Hey, Id coon Twisted Evil
Idsunid?

But when is it get released?
Post 22 Jun 2003, 12:41
View user's profile Send private message Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 22 Jun 2003, 14:20
Amigos,

You can use Fasm with:

-MS Link
-GoLink
-Alink
-Digital Mars Linker with the help of DM Coff2omf tool

Theorically,you must be able to use Fasm with tlink32;but
you need to covert the COFF obj. code to OMF.

_________________
Code it... That's all...
Post 22 Jun 2003, 14:20
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 22 Jun 2003, 18:24
Aquila wrote:
comrade wrote:
Only compile .asm to .obj (format COFF) and then use external linker like ALink...


I don't like this way. Previously I used brc32.exe from TASM to bind resources, but suddenly FASM applications made in such way begin to tell "Application coudn't properly initialize itself (0x00000005)". Now I search what could be a problem or another way to add .res files. But using MS COFF is not good as well as using internal macros.


Does that mean include .res file worked previously with FASM?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 22 Jun 2003, 18:24
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Aquila



Joined: 21 Jun 2003
Posts: 16
Location: Russia, Moscow
Aquila 22 Jun 2003, 19:17
comrade wrote:
Aquila wrote:
comrade wrote:
Only compile .asm to .obj (format COFF) and then use external linker like ALink...

I don't like this way. Previously I used brc32.exe from TASM to bind resources, but suddenly FASM applications made in such way begin to tell "Application coudn't properly initialize itself (0x00000005)". Now I search what could be a problem or another way to add .res files. But using MS COFF is not good as well as using internal macros.

Does that mean include .res file worked previously with FASM?


Yes.
Post 22 Jun 2003, 19:17
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 22 Jun 2003, 19:28
Aquila wrote:
comrade wrote:
Aquila wrote:
comrade wrote:
Only compile .asm to .obj (format COFF) and then use external linker like ALink...

I don't like this way. Previously I used brc32.exe from TASM to bind resources, but suddenly FASM applications made in such way begin to tell "Application coudn't properly initialize itself (0x00000005)". Now I search what could be a problem or another way to add .res files. But using MS COFF is not good as well as using internal macros.

Does that mean include .res file worked previously with FASM?


Yes.


What version was that and how?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 22 Jun 2003, 19:28
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Aquila



Joined: 21 Jun 2003
Posts: 16
Location: Russia, Moscow
Aquila 23 Jun 2003, 10:20
privalov wrote:
After you reminded it, I'm considering adding a feature of including .res files in the PE formatter. It would be just a syntax extension to current "data resource" of "section resource", something like "data resource from 'test.res'".

It will be really cool and will support one of the best FASM conceptions - no need for external linker.
Post 23 Jun 2003, 10:20
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 23 Jun 2003, 12:53
Hm, what you think about writing some visual resource editor (With FASM of course Smile ) generating directly FASM resource section using resource macroses?
Post 23 Jun 2003, 12:53
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 24 Jun 2003, 07:34
JohnFound,

That's a nice idea.Also,one can think about coding a tool which can
translate ready resource scripts to Fasm-style resource sections based on macros.

_________________
Code it... That's all...
Post 24 Jun 2003, 07:34
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 24 Jun 2003, 15:17
Hi Vortex.

Yes the convertor for .RES files is another solving of the problem. But why to make it easy, when I can make it complex? Very Happy Very Happy Very Happy

Actually I think it must be separate editor, because the next step will be to build it into FASMW together with Project manager and some other visual tools and code generating wizards.
Post 24 Jun 2003, 15:17
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 24 Jun 2003, 15:37
Hi JohnFound,

Yes,you are right about building the resource editor to FASMW.
I see you have a good understanding about FASM internals.

_________________
Code it... That's all...
Post 24 Jun 2003, 15:37
View user's profile Send private message Visit poster's website Reply with quote
Aquila



Joined: 21 Jun 2003
Posts: 16
Location: Russia, Moscow
Aquila 24 Jun 2003, 17:17
If Privalov implement those option about including .res files it will improve situation greatly Smile.
Post 24 Jun 2003, 17:17
View user's profile Send private message Visit poster's website 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.