flat assembler
Message board for the users of flat assembler.
Index
> Windows > HELLO Example Fails |
Author |
|
shutdownall 01 Dec 2011, 11:02
What error exactly ?
Maybe post your code using CTRL-A and Copy&Paste to see. |
|||
01 Dec 2011, 11:02 |
|
bitshifter 02 Dec 2011, 07:55
Assuming you didnt shuffle any files around and the package is not corrupt...
Lets look at the note at the top of hello.asm: Code: include 'win32ax.inc' ; you can simply switch between win32ax, win32wx, win64ax and win64wx here Now, to build for... win32ax -- Win32 no unicode win32wx -- Win32 with unicode win64ax -- Win64 no unicode win64wx -- Win64 with unicode So now my question is, what version of Windoze you have and for what country? Edit: The weird thing is that no include file error is present? This means FASM is finding /include/win32ax.inc which in turn defines the .code macro and such... We should checksum de FASM distro! |
|||
02 Dec 2011, 07:55 |
|
ryannathans 03 Dec 2011, 03:04
What now?
EDIT: My hello.asm doesn't have that line at the top. G:\fasm\EXAMPLES\HELLO\HELLO.ASM Code: ;---ASM Hello World Win32 MessageBox title db 'Win32', 0 msg db 'Hello World', 0 .code Main: push 0 ; uType = MB_OK push offset title ; LPCSTR lpCaption push offset msg ; LPCSTR lpText push 0 ; hWnd = HWND_DESKTOP call MessageBoxA push eax ; uExitCode = MessageBox(...) call ExitProcess END MAIN None of the includes work either. Windows 7 Pro 64bit |
|||
03 Dec 2011, 03:04 |
|
mindcooler 03 Dec 2011, 07:27
What package did you get this from? Doesn't look anything like my hello.asm;
Code: ; example of simplified Windows programming using complex macro features include 'win32ax.inc' ; you can simply switch between win32ax, win32wx, win64ax and win64wx here .code start: invoke MessageBox,HWND_DESKTOP,"Hi! I'm the example program!",invoke GetCommandLine,MB_OK invoke ExitProcess,0 .end start _________________ This is a block of text that can be added to posts you make. |
|||
03 Dec 2011, 07:27 |
|
bitshifter 03 Dec 2011, 12:09
The 'REAL' FASM page: http://flatassembler.net/
|
|||
03 Dec 2011, 12:09 |
|
ryannathans 03 Dec 2011, 15:40
Lolwut is this.
That's the page I got it from. I can't understand how it's different. I went to downloads > windows same zip too. Same version, same name, different md5. O well. Works now. Thanks |
|||
03 Dec 2011, 15:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.