hi akyprian

what about adding to winasm something like de #pragma thing from VC++.
that way we can set different option, like the linker, assembler, and other options aswell.

for example when creating a dll, and you want to export a function we can put something like
MyFunc PROTO :DWORD EXPORT or
MyFunc proc dwNumber:DWORD Export
and winasm will generate the def file for me
lol
I dont know, something like that

what everyone thinks
Posted on 2003-11-10 11:44:44 by maCo
Sounds good, and addin could take care of that. But the syntax would have to be different so it doesn't conflict with MASM itself. Perhaps this "directives" could be entered as comment lines:


;pragma asm "commandline"
;pragma rc "commandline"
;pragma link "commandline"

(Or something like that, perhaps a bit more generic)
First a certain "standard" should be made, then the addin could be coded. Porting the addin to other IDEs would help all of the MASM32 community, not just those of us using WinAsm... think for example of a standalone version that can be used with the .bat files in hutch's distribution. :)
Posted on 2003-11-10 12:47:52 by QvasiModo
Hi,

I liked the EXPORT idea. I'll see how to implement it.

Regards,

akyprian
Posted on 2003-11-11 00:38:23 by akyprian
I think here a good idea can be:

Make an addin, the addin read the file and comment the lines that are for the addin, this are commands ;) (edit: sure, only when assemble is hited)
save the file with the commented lines
when return from linking, simple uncomment the lines, that is all.

And in the addin, if you have some help file for it, you need put a ref of suported commands, and for what to use each command.

gl && hf


by the way, for me the look is done with each action ;).


Nice day or night.
Posted on 2003-11-11 06:22:22 by rea
Hi,

This is what is so called "brainstorming". Thanks all for the ideas. Any more ?

Regards,

akyprian
Posted on 2003-11-11 08:13:08 by akyprian
hi
the export idea I took it from delphi :( when you create a dll you put something like this inside the .pas file



library dllname
begin

procedure MyFunc(szName: PChar); stdcall;
begin
{somecode}
end;

procedure MyFunc1(dwNum: Cardinal); stdcall;
begin
{somecode}
end;

exports
MyFunc, MyFunc1;

end.
Posted on 2003-11-11 10:57:57 by maCo
Thanks maCo,

This is similar to what I have in mind.

Regards,

akyprian
Posted on 2003-11-11 13:38:34 by akyprian