flat assembler
Message board for the users of flat assembler.
Index
> Windows > 64Bit DLL & DLL_PROCESS_ATTACH Goto page Previous 1, 2 |
Author |
|
jochenvnltn 04 Dec 2017, 09:01
fasmnewbie wrote:
|
|||
04 Dec 2017, 09:01 |
|
Furs 06 Dec 2017, 18:11
But revolution is right; Microsoft themselves say it. You should not use MessageBox from a .dll's EntryPoint because if it gets loaded by an app that doesn't import user32 it will crash. The only safe functions are those in kernel32 excluding those mentioned in the list (e.g. synchronization APIs are bad).
Just because it works for you doesn't mean it's good coding practice or that it will work in the future. It's a ticking time bomb. Microsoft write specs for a reason. |
|||
06 Dec 2017, 18:11 |
|
jochenvnltn 06 Dec 2017, 19:47
Furs wrote: But revolution is right; Microsoft themselves say it. You should not use MessageBox from a .dll's EntryPoint because if it gets loaded by an app that doesn't import user32 it will crash. The only safe functions are those in kernel32 excluding those mentioned in the list (e.g. synchronization APIs are bad). I case you haven't noticed by now, the example dll was just a test! Why would i create a DLL that only shows a MessageBox ?? |
|||
06 Dec 2017, 19:47 |
|
Furs 06 Dec 2017, 20:51
Well I don't know why it didn't work, but that's because I hate using those "high level" macros and prefer to just code in raw asm (I mean, since I'm doing assembly anyway). And I didn't mean to imply that it was the problem or wasn't a test -- I just thought that you ignored what he said because you thought he was speaking nonsense, based on your tone.
But if you already knew that, then you could've just said it and that it's just a test when he replied. Anyway at least you got it solved. Also, I meant fasmnewbie, not revolution, sorry for the confusion. |
|||
06 Dec 2017, 20:51 |
|
revolution 06 Dec 2017, 21:41
Furs wrote: Well I don't know why it didn't work ... |
|||
06 Dec 2017, 21:41 |
|
jochenvnltn 06 Dec 2017, 22:33
Furs wrote: Well I don't know why it didn't work, but that's because I hate using those "high level" macros and prefer to just code in raw asm (I mean, since I'm doing assembly anyway). And I didn't mean to imply that it was the problem or wasn't a test -- I just thought that you ignored what he said because you thought he was speaking nonsense, based on your tone. |
|||
06 Dec 2017, 22:33 |
|
yeohhs 03 Jan 2018, 00:52
jochenvnltn wrote: Also found this Thanks for the link. |
|||
03 Jan 2018, 00:52 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.