flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
shutdownall
Maybe this question have been answered already but could not find relevant information with search function in adaquate time.
![]() How do I know wether to use invoke or cinvoke macro to call a DLL function ? I think the MS DLL's are all compatible with the invoke macro but what about custom DLL's not designed by MS ? How can I obtain the calling procedure if not provided in documents ? Concrete case is for this API http://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer%27s_Guide%28FT_000071%29.pdf But would be good to know in general for future / other provided API's. Thanks for help. ![]() |
|||
![]() |
|
LocoDelAssembly
By looking at FTD2XX.H in example 1 I'd say they are stdcall and therefore you must use invoke. The reason I think they are stdcall is because they are marked WINAPI (which is defined as __stdcall).
|
|||
![]() |
|
revolution
Yes, you use invoke. This is from my code:
Code: invoke FT_SetBaudRate,[comm_handle],FT_BAUD_115200 |
|||
![]() |
|
shutdownall
Thanks for information.
But is there a general rule what macro to use under which circumstances (if documentation is not provided or not with that detail) ? |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.