I add CStr macro to your win64 example "Hello world", with SEH support (JWasm only), and invoke it somewhere, compiled pass, but the linker produces "error LNK2017: 'ADDR32' relocation to 'dispatch' invalid without /LARGEADDRESSAWARE:NO", but this macro work in another win64 console example " exception handling, uses WinInc v2+ (JWasm only)", why?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Japheth,
I add CStr macro to your win64 example "Hello world", with SEH support (JWasm only), and invoke it somewhere, compiled pass, but the linker produces "error LNK2017: 'ADDR32' relocation to 'dispatch' invalid without /LARGEADDRESSAWARE:NO", but this macro work in another win64 console example " exception handling, uses WinInc v2+ (JWasm only)", why?
Thanks.
> but this macro work in another win64 console example " exception handling, uses WinInc v2+ (JWasm only)", why?
I don't know. Perhaps you did use a 32-bit register instead of a 64-bit register to hold the address of the string?
Yes, assign the address to a 64bit register as macro result, it work, thank you!