Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change
Quote from: NoCforMe on May 13, 2025, 05:44:14 AMSo I'm curious about how exactly processes work here. Does the DLL run in a separate process, or is it part of the debugee's process? Also, my understanding is that the DLL will be unloaded when the last program (process) that uses it terminates (i.e., when the reference count goes to zero); is that correct? It seems to work that way.
In any case, everything seems to be working OK. One possible snag occurs to me, though: what if there are multiple programs that are using that control? That means that the class will remain registered even after the DLL is unloaded.
-- Purpose: Trim spaces at the end of each line.
Application.FreezeUI()
hEdit = Application.NewEditor("ADE.ini")
Editor.Show(hEdit)
for i = 1, Editor.GetLineCount(hEdit), 1
do
LineContent = Editor.GetLineText(hEdit, i)
j = string.len(LineContent)
k = j
while (j > 0)
do
if string.sub(LineContent, j, j) ~= " " then break end
j = j - 1
end
if k ~= j then Editor.SetLineText(hEdit, i, string.sub(LineContent, 1, j)) end
end
Editor.Close(hEdit)
Application.UnfreezeUI()
Application.MsgBox("Operation successfully finished.", "Information", 0)
Quote from: _japheth on June 22, 2025, 12:37:33 AMNo, since this is an error and no warning. You have to use the LOCAL directive ( inside the macro and tightly following the MACRO directive) to declare your label inside the macro as "local".Got it, thanks
Quote from: sskaiser on June 22, 2025, 01:36:29 AMsorry for wasting your timeIts not wasted time. As I do not know your level of experience, I must ask seemingly silly questions sometimes.
Quote from: sskaiser on June 22, 2025, 01:38:34 AMAnd to answer your questions I did use the GetConsoleScreenBufferInfo and made sure it works...
Quoteand I use VS Community 2022 to watch the registers, function returns 1 so i guess no errorsOkay.
Quote from: mabdelouahab on June 22, 2025, 05:00:54 AM .IF !ZERO?
;GOTO found
.ENDIF