flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Nikolay Petrov
It's too easy.
Code: include '%fasminc%/win32ax.inc' buffer rb 32 .code start: invoke wsprintf,buffer,'%s',"Hi! I'm the example program!" invoke MessageBox,HWND_DESKTOP,buffer,"Win32 Assembly",MB_OK invoke ExitProcess,0 .end start Tomorrow, i will send a simple how use wsprintf with all formats |
|||
![]() |
|
denial
thank you very much, it was really too easy. i'm a fool
![]() ![]() |
|||
![]() |
|
Nikolay Petrov
http://www.wasm.ru/srclist.php?list=9
Simple wsprintf |
|||
![]() |
|
denial
Mhmm I've got another question... is it possible to increase the declared byte size of the buffer dynamicaly? Maybe there's something like malloc() in C?
|
|||
![]() |
|
roticv
HeapAlloc and HeapReAlloc?
|
|||
![]() |
|
denial
I searched about HeapAlloc/HeapReAlloc, however if I'm not wrong, couldn't find an example.
Maybe you could give me one? ![]() |
|||
![]() |
|
polygon7
denial wrote: I searched about HeapAlloc/HeapReAlloc, however if I'm not wrong, couldn't find an example. You could try: Code: src dd ? invoke LocalAlloc,LMEM_FIXED,255 ;255 is a number of allocated bytes mov [src],eax ;[src] - pointer to allocated memmory invoke LocalFree,src ;freeing memmory _________________ best regards p7 |
|||
![]() |
|
denial
Thank you for your answer. It helps me alot
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.