flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly
do you mean the typecast? The answer is simply, you DON'T cast.
Code: mov eax, [hwnd] cmp eax, [lParam] jne .skipIfBody |
|||
![]() |
|
tangent
that's the stuff.. i appreciate it
*edit* okay, now it seems i'm having a problem with DragQueryFile telling me this: Code: invoke DragQueryFile,wparam,0xFFFFFFFF,szdfn,0 macro/proc32.inc [17] invoke [3]: pushd arg error: invalid value. from szdfn rb 50.. am i missing something that should be obvious? |
|||
![]() |
|
LocoDelAssembly
I think you need this:
Quote: invoke DragQueryFile,[wparam],0xFFFFFFFF,szdfn,0 And, if szdfn is allocated on the stack (variables local to the procedure are), then you have to change "szdfn" to "addr szdfn", that will calculate the offset and pass that pointer to the API. http://flatassembler.net/docs.php?article=win32 explains how addr works at 2.1 Procedure parameters. |
|||
![]() |
|
tangent
still getting the same error..
by the way it looks like so now: local szdfn db 128 invoke DragQueryFile,[wparam],0,addr szdfn,128 _________________ arg |
|||
![]() |
|
LocoDelAssembly
Try using "local str[128]:BYTE"
|
|||
![]() |
|
tangent
well, i noticed that even if i remove szdfn from it, same error..
invoke DragQueryFile,[wparam],-1,0,0 macro/proc32.inc [20] invoke [6]: call [proc] } error: undefined symbol. |
|||
![]() |
|
LocoDelAssembly
No, now it is a new error. You have not imported DragQueryFile anywhere.
Can you post the code? I think we never get it work by just reading a single line of code. |
|||
![]() |
|
coconut
you can also look in fasmw source for example of this
|
|||
![]() |
|
tangent
i dont have a copy of the fasmw source.. the prog source is here: http://pastebin.ca/793126
|
|||
![]() |
|
wisepenguin
hi tangent,
Code: library kernel32,'KERNEL32.DLL',\ user32,'USER32.DLL',\ shell32, "shell32.dll" include 'api\kernel32.inc' include 'api\user32.inc' include "api\shell32.inc" works for me using fasm 1.67.23 (latest as of now) |
|||
![]() |
|
tangent
well, damn. i appreciate it
|
|||
![]() |
|
coconut
the source is included with the fasm packages
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.