flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Nikolay Petrov 19 Oct 2004, 19:54
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 19 Oct 2004, 22:30
thank you very much, it was really too easy. i'm a fool
![]() ![]() |
|||
![]() |
|
Nikolay Petrov 20 Oct 2004, 03:38
http://www.wasm.ru/srclist.php?list=9
Simple wsprintf |
|||
![]() |
|
denial 20 Oct 2004, 10:50
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 20 Oct 2004, 11:09
HeapAlloc and HeapReAlloc?
|
|||
![]() |
|
denial 20 Oct 2004, 11:45
I searched about HeapAlloc/HeapReAlloc, however if I'm not wrong, couldn't find an example.
Maybe you could give me one? ![]() |
|||
![]() |
|
polygon7 21 Oct 2004, 18:29
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 21 Oct 2004, 20:03
Thank you for your answer. It helps me alot
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.