flat assembler
Message board for the users of flat assembler.
Index
> Windows > Strange wsprintf problem |
Author |
|
revolution 10 Jul 2008, 16:36
wsprintf is a CDELC function. You should call it with ccall.
|
|||
10 Jul 2008, 16:36 |
|
ManOfSteel 10 Jul 2008, 19:19
Quote: wsprintf is a CDELC function. Yes, indeed. Thank you. Quote: You should call it with ccall. I prefer cinvoke. Still, I'm very surprised. Why would it work somewhere and crash somewhere else in the same program? I used it that way for years on Win98SE without any problem. Are Win98SE and WinXP more fault tolerant than Win2000? |
|||
10 Jul 2008, 19:19 |
|
f0dder 10 Jul 2008, 19:24
Don't think "more fault tolerant", just accept that different windows versions handle things slightly different
|
|||
10 Jul 2008, 19:24 |
|
revolution 11 Jul 2008, 05:14
ManOfSteel wrote: I prefer cinvoke. Code: ccall [wsprintf],... cinvoke wsprintf,... |
|||
11 Jul 2008, 05:14 |
|
ManOfSteel 11 Jul 2008, 07:32
Yes, it's only a matter of style. I prefer it for the opposite reason of yours: it's just 1 character away from the normal "invoke" and doesn't need the extra brackets, even if I need to type as much and they both operate the same way.
|
|||
11 Jul 2008, 07:32 |
|
f0dder 11 Jul 2008, 11:42
...and you can argue that brackets are more bother to type, especially if you're not using a uk/us keymap (I tend to switch from dk->uk keymap when doing longer coding sessions, though, exactly because various coding chars are annoying in dk-keymap).
|
|||
11 Jul 2008, 11:42 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.