flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > cproc macro, for c/c++ compatible dll's?

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 16 Nov 2005, 00:24
tomasz,
Do you still include the 'cproc' macro that made assembly dll functions compatible/callable with the c/c++ language? If not, could you make some when you have the time, maybe you could use the code from older sources?
I know you had this macro once.
MadMatt
Post 16 Nov 2005, 00:24
View user's profile Send private message Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 16 Nov 2005, 08:25
http://flatassembler.net/docs.php?article=win32#1.3

Quote:
The name of procedure can be also followed by either the stdcall or c keyword to define the calling convention it uses.


So, although there's no cproc macro, you can still declare functions in C convention:

Code:
proc ppp c, arg1,arg2    
Post 16 Nov 2005, 08:25
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 16 Nov 2005, 10:28
so "stdcall ppp" then doesn't "stdcall" but calls using C convention?
Post 16 Nov 2005, 10:28
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 16 Nov 2005, 11:01
no, for calling functions there are still two different macros: ccall and stdcall.
Post 16 Nov 2005, 11:01
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 17 Nov 2005, 11:06
I see, didn't know that, thanks. A small mention is in the fasm docs, but should be explained a little more clearly.
Post 17 Nov 2005, 11:06
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.