News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

floating point math?

Started by daydreamer, July 25, 2021, 04:45:57 AM

Previous topic - Next topic

daydreamer

doesnt work,trying to convert to unicode windows program
  ; invoke RegisterWinClass,ADDR WndProc,ADDR szClassName,
                       hIcon,hCursor,COLOR_BTNFACE+1
    invoke RegisterClassExW,ADDR WndProc,ADDR szClassName,hIcon,hCursor,COLOR_BTNFACE+1
   
    mov Wwd, 1024
    mov Wht, 768
    invoke TopXY,Wwd,sWid
    mov Wtx, eax
    invoke TopXY,Wht,sHgt
    mov Wty, eax
;HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, 0, 0, 1280, 1024,nullptr, nullptr, hInstance, nullptr);CPP working unicode

    invoke CreateWindowExW,WS_EX_LEFT OR WS_EX_ACCEPTFILES,szClassName,szDisplayName,WS_OVERLAPPEDWINDOW,Wtx,Wty,Wwd,Wht,NULL,NULL,hInstance,NULL

    ;invoke CreateWindowEx,WS_EX_LEFT or WS_EX_ACCEPTFILES,
     ;                     ADDR szClassName,
      ;                    ADDR szDisplayName,
       ;                   WS_OVERLAPPEDWINDOW,
        ;                  Wtx,Wty,Wwd,Wht,
         ;                 NULL,NULL,
          ;                hInstance,NULL
    mov hWnd,eax

;mov hwndButton,rv(CreateWindowExW,0,ADDR btnClass,ADDR lpTextu,WS_VISIBLE or WS_CHILD or BS_DEFPUSHBUTTON or BS_TEXT,400,300,256,256,hWnd,B1,hInstance,NULL)
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

TimoVJL

check RegisterClassEx
ATOM WINAPI RegisterClassEx( _In_  const WNDCLASSEX *lpwcx);
May the source be with you

daydreamer

Quote from: TimoVJL on August 10, 2021, 05:01:47 PM
check RegisterClassEx
ATOM WINAPI RegisterClassEx( _In_  const WNDCLASSEX *lpwcx);

Maybe better to find unicode template for Windows program
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

TimoVJL

wcx  WNDCLASSEXW <sizeof WNDCLASSEXW,NULL,WndProc,0,0,?,?,?,COLOR_SCROLLBAR+1,NULL,szClassName,?>
...
INVOKE  RegisterClassExW,ADDR wcx
May the source be with you

TouEnMasm

#19
Standard control can all use UNICODE ,just use headers who can switch from ansi to unicode.
Just have a look here http://masm32.com/board/index.php?topic=1796.msg103837#msg103837
Just add "UNICODE equ"    at the first line of the source and all will be in unicode.
Fa is a musical note to play with CL