flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
CandyMan 20 Oct 2017, 16:27
at me both versions apply correctly
_________________ smaller is better |
|||
![]() |
|
jochenvnltn 20 Oct 2017, 17:52
CandyMan wrote: at me both versions apply correctly Did you get "the operation completed successfully" when using it the dynamic way ? I get a different result ... |
|||
![]() |
|
Tomasz Grysztar 20 Oct 2017, 18:32
Add this line before calling the ShowLastError:
Code: invoke SetLastError,0 |
|||
![]() |
|
jochenvnltn 21 Oct 2017, 10:40
Tomasz Grysztar wrote: Add this line before calling the ShowLastError: ![]() |
|||
![]() |
|
revolution 21 Oct 2017, 11:52
GetLastError returns the most recent value in the error variable. So the value it contains depends upon the last operation you did.
I expect that GetProcAddress will firstly set the error variable to "the specified procedure could not be found" and then do its work. So that way if the return value is null then the error variable contains the proper error value. Otherwise if the return value is a valid pointer then the error value is expected to be ignored. But in your code you print the error value even though the last operation was successful. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.