News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Calling Macro

Started by ragdog, February 08, 2018, 11:20:47 PM

Previous topic - Next topic

ragdog

Hello

I have a solution found from Daves post
http://masm32.com/board/index.php?topic=3861.msg40676#msg40676

FUNC40 TYPEDEF PROTO :QWORD,:QWORD,:QWORD,:QWORD,:QWORD
PFUNC40 TYPEDEF Ptr FUNC40
.data?
MyProcedur PFUNC40 ?

.code
invoke GetProcAddress,hBassDll,chr$ ("MyFunc")
.if (rax)
  mov MyProcedur, rax
  invoke MyProcedur,0,0,0,0,0



But a function in Jwasm/Uasm or Macro would be nice.

Regards,