![]() |
|
|
|
#1
|
|||
|
|||
|
It's likely not a good idea.
Any of imported functions must be correctly declared individulally, and thus must be called normally. In addition - without of using __asm directive. In addition2 - repeated calls will be performed much faster. In addition3 - [less or more] universal solution for x32/x64. ..It's likely not a good idea but it works.. --Add-- Add 1st argument of function as enum {C_CALL,STD_CALL} and produce separate __asm code for this conventions ? --Add2-- Quote:
Quote:
Last edited by dosprog; 04-05-2018 at 07:24. |
| The Following User Says Thank You to dosprog For This Useful Post: | ||
Indigo (07-19-2019) | ||
|
#2
|
|||
|
|||
|
Quote:
|
| The Following User Says Thank You to 0xall0c For This Useful Post: | ||
Indigo (07-19-2019) | ||
|
#3
|
|||
|
|||
|
Quote:
It produces even simpler, smaller and clean code. |
|
#4
|
|||
|
|||
|
Quote:
|
| The Following User Says Thank You to 0xall0c For This Useful Post: | ||
Indigo (07-19-2019) | ||
|
#5
|
|||
|
|||
|
Quote:
In MASM32 we can invoke function using prototype or call function without prototype. I tend to use the invoke. It is convenient, however it is necessary to get used to. Last edited by dosprog; 04-06-2018 at 07:17. |
| The Following User Says Thank You to dosprog For This Useful Post: | ||
Indigo (07-19-2019) | ||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calling any function dynamically without typedef | Succubus | Source Code | 0 | 10-21-2021 16:34 |
| WinAPI: No WM_COMMAND Message? | aldente | General Discussion | 2 | 07-05-2006 07:17 |