News:

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

Main Menu

Radasm3 Addin Programming

Started by ragdog, September 01, 2014, 05:34:49 PM

Previous topic - Next topic

ragdog

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


.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"

.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

ragdog

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