News:

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

Main Menu

Recent posts

#1
Windows API / Re: DLL pickle
Last post by tenkey - Today at 03:49:32 AM
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.

IIRC, the HINSTANCE
#2
ObjAsm / Re: New Editor
Last post by Biterider - Today at 03:04:14 AM
Hi JJ
Thanks for providing this information. It gives me a rough idea of what to expect.  :thumbsup:
To make an accurate comparison, when you stopped the timer, did the editor hold the content in memory, or did this time include the loading process? 
Is the trimming routine written inside the editor, or is it implemented differently? 

If I have time, I'll do the same in the editor directly to see the cost of the ADE infrastructure. 
Ultimately, whether it takes 10 ms or 1000 ms doesn't matter. What's important is flexibility and robustness.

Regards, Biterider
#3
ObjAsm / Re: New Editor
Last post by jj2007 - June 23, 2025, 10:12:12 PM
For a similar routine: 32 ms for trimming 48369 lines
Shouldn't pose any problem :cool:
#4
Windows API / Re: How do I get access to my ...
Last post by FORTRANS - June 23, 2025, 09:31:52 PM
Hi,

   I read through your tutorial, briefly.  Seems well written
and explains things reasonably.

Regards,

Steve N.
#5
ObjAsm / Re: New Editor
Last post by Biterider - June 23, 2025, 12:30:22 AM
Hi
I've made some progress with the scripting engine.
This is my first useful script for trimming trailing spaces from each editor line:

-- 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)

It runs smoothly.
A performance test must be done, but it seems quite fast at first glance.

Biterider

#6
The Workshop / Re: Looking for MASM feature p...
Last post by Shintaro - June 22, 2025, 04:52:51 PM
Thank you!!!

I have been searching for that for ages!

Maybe they thought it was no longer needed.

Thanks again.
#7
The Campus / Re: Nested .REPEAT, .IF and .W...
Last post by Quan - June 22, 2025, 04:15:10 PM
Yea, that doesn't work. I did find out about the .BREAK directive, but it doesn't really do the same thing.

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  :thumbsup: I totally misunderstood the purpose of the LOCAL directive. I thought it was for declaring local variables and not labels. It's working now, thanks!
#8
The Campus / Re: FillConsoleOutputCharacter...
Last post by NoCforMe - June 22, 2025, 09:47:51 AM
Well, it looks to me as if you haven't figured out why it didn't work in the first place, so you've learned nothing. Poking code here and there in hopes it might work isn't the way to learn how to code.

Plus, any reason you're using 64-bit assembly? 32-bit is much easier and more straightforward, plus the MASM32 package is pretty complete and robust, unlike MASM64 which is kind of a piece of shit at this time.
#9
The Campus / Re: FillConsoleOutputCharacter...
Last post by zedd - June 22, 2025, 09:38:37 AM
Quote from: sskaiser on June 22, 2025, 01:36:29 AMsorry for wasting your time
Its 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...
:thumbsup:

Quoteand I use VS Community 2022 to watch the registers, function returns 1 so i guess no errors
Okay.  :smiley:
#10
The Campus / Re: Nested .REPEAT, .IF and .W...
Last post by NoCforMe - June 22, 2025, 06:39:29 AM
Quote from: mabdelouahab on June 22, 2025, 05:00:54 AM        .IF !ZERO?
                    ;GOTO found
        .ENDIF

??????
Looks like net effect is ... nothing.