Author Topic: Radasm3 Addin Programming  (Read 2172 times)

ragdog

  • Member
  • ****
  • Posts: 572
Radasm3 Addin Programming
« on: September 01, 2014, 05:34:49 PM »
Hello KetilO

I need for my addin the Output filename after compile my project with Radasm.
Gives any struct entry to get it or must i build this string?

example

Code: [Select]
.elseif uMsg==AIM_MAKEDONE
mov esi,lParam
lea edi,lpFileName
.while byte ptr [esi]!= "."
lodsb
stosb
.endw
mov dword ptr [edi], "exe."

an is this what export radasm to the addin lparam (da.szMainAsm)  the output file
example:
link /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /OUT:"DlgMain.exe"

Code: [Select]
.elseif eax==IDM_MAKE_BUILD
invoke PostAddinMessage,hWin,AIM_MAKEBEGIN,IDM_MAKE_BUILD,addr da.szMainAsm,0,HOOK_MAKEBEGIN

Or can you add a function to export the makeexe Structur by HOOK_MAKEDONE and HOOK_BEGIN
as wparam or anything?

example your Fbedit export the output filename and commandline

ADDINDATA Struct
...
..
.
smakeoutput         db 260 dup(?)      ; Make output filename
smakerun         db 260 dup(?)      ; Run commamd line parameters
...
..
.


Regards
« Last Edit: September 03, 2014, 01:59:02 AM by ragdog »

ragdog

  • Member
  • ****
  • Posts: 572
Re: Radasm3 Addin Programming
« Reply #1 on: September 03, 2014, 04:47:27 AM »
I found a Solution

Get the lparam for da.szMainAsm

return DlgMain.asm


Get (ADDINDATA ptr[eax]).make.szOutLink return output "$C.exe"

and build Dlgmain.exe


greets