Recent Posts

Pages: [1] 2 3 ... 10
1
RadAsm IDE Support / Re: RadASM v2.2.2.3
« Last post by 2B||!2B on Today at 06:39:51 PM »
Hi fearless,

Nice to see you supporting this cool IDE.

Currently i am on version 2.2.1.6

There is a known bug with the procedure's viewer list, the option to view procedures only from the "selected project file" works fine, however, when you keep this option selected and you navigate to another project file, the list does not update itself, you must select to view all project files then select the option "selected project file" again to get the list updated. Can you fix this bug? or has it already been fixed in the version mentioned above?

Thank you.
2
The Workshop / Re: Screen Capture for 32 Bit machines
« Last post by AW on Today at 04:58:02 PM »
Nice to see you back to coding.
On this, I would like to capture what's on my 2nd monitor.  :(
3
The Workshop / Re: Microsoft MASM bug
« Last post by daydreamer on Today at 03:23:57 PM »
Do the newer masm also have the bug,where it takes time ala a coffee break while using big numbers in DUP?
4
Romper Room / Testing third party hosting sites
« Last post by zedd151 on Today at 02:39:56 PM »
Testing snapshot of Mozilla Firefox, expires in 14 days


Do you have to be running Firefox to use it?
5
Here is a simple demo with a message loop.

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

msgloop proc

    USING r14, r15                              ; allocate local space for reg list
    LOCAL msg :MSG

    SaveRegs                                    ; save listed registers

    xor r15, r15                                ; zero r15
    mov r14, ptr$(msg)                          ; load msg structure address into r14
    jmp gmsg                                    ; jump directly to GetMessage()

  mloop:
    invoke TranslateMessage,r14
    invoke DispatchMessage,r14
  gmsg:
    test rax, rv(GetMessage,r14,r15,r15,r15)    ; loop until GetMessage returns zero
    jnz mloop

    RestoreRegs                                 ; restore listed registers

    ret

msgloop endp

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
6
I forgot to mangle a name in one of the new macros and it jumped up and bit me.  :P

Fixed version attached, replace the one above.
7
The Workshop / Re: Microsoft MASM bug
« Last post by hutch-- on Today at 01:08:35 PM »
> No. That's why I proposed the other solution: use UAsm

MASM has been around for over 35 years, should we hold our breath waiting for the alternatives ?  :P

Watcom died in the arse, JWASM barely made 5 years and MASM is still going strong, should we be worried ?  :lol:
8
Romper Room / Re: This is a test
« Last post by mineiro on Today at 12:47:01 PM »
Testing snapshot of Mozilla Firefox, expires in 14 days

https://screenshots.firefox.com/o2ZTuWEOEjVwtc7r/www.google.com

edit-
clicking on image on link above we can copy image address to paste here.

9
The Campus / Re: Tool buttons with icons?
« Last post by 2B||!2B on Today at 12:41:48 PM »
Yes needs those those dlls if your using those RadASM special controls.
Yes, I agree, a static library option would have been handy. Although it is possible to modify then to be static libraries - but you would have to change a few bits and pieces and manually call the DllInstall function (which can be renamed - so its kind of similar to the ModernUI register functions in that way).

I did do that with the RAHex control - from the original source on sourceforge - to make it a standalone static component. Although it did mean putting together a few support functions to help setup the control beforehand as there is a lot of little bits and pieces it needs - different fonts and other things for it to load and work. I might gather that together and post that up if its useful for someone to have a static hex control - I've only used it as a hex viewer for small amounts of data, not looked at the editing and saving part - all to do with richedit control streams for reading in and writing out.

Perfect man. How long does it take to modify one RadASM control to make it like your MUI examples (that no longer needs the dlls)?

Also, check your PM.
10
MasmBasic & the RichMasm IDE / Len, wLen, uLen
« Last post by jj2007 on Today at 12:17:04 PM »
include \masm32\MasmBasic\MasmBasic.inc         ; download
  Init
  Let esi="Нажмите на эту кнопку"              ; "Click on this button" in Russian
  Print Str$("Len(esi)=\t%i\n", Len(esi))      ; treated as Ansi
  Print Str$("uLen(esi)=\t%i\n", uLen(esi))    ; treated as Utf8
  Print Str$("wLen(esi)=\t%i\n", wLen(wRec$(esi)))     ; treated as Unicode (wRec$: convert Utf8 to wide string)
  Print
  Let esi="在這裡輸入文字"                       ; "Enter text here" in Chinese
  Print Str$("Len(esi)=\t%i\n", Len(esi))      ; treated as Ansi
  Print Str$("uLen(esi)=\t%i\n", uLen(esi))    ; treated as Utf8
  Print Str$("wLen(esi)=\t%i\n", wLen(wRec$(esi)))     ; treated as Unicode
EndOfCode


Code: [Select]
Len(esi)=       39
uLen(esi)=      21
wLen(esi)=      21

Len(esi)=       21
uLen(esi)=      7
wLen(esi)=      7

Note that the uLen macro does not check whether the string is valid Utf8 (credits to PaulSquires). Example:

  Let esi="Click on this button"+Chr$(169)      ; Ansi with one extra character
  .if rv(MultiByteToWideChar, CP_UTF8, MB_ERR_INVALID_CHARS, esi, Len(esi), NULL, 0) == 0
        PrintLine "[", esi, "] is not a valid Utf8 string"
  .else
        Print "[", esi, "]", Str$("has %i bytes and is a valid Utf8 string\n", eax)
  .endif


Code: [Select]
[Click on this button©] is not a valid Utf8 string
Len(esi)=       21
uLen(esi)=      21
wLen(esi)=      21

Full project attached.
Pages: [1] 2 3 ... 10