The MASM Forum

Projects => Rarely Used Projects => GoAsm => Topic started by: Yuri on August 18, 2013, 03:52:58 PM

Title: String #DEFINEs in x64 INVOKE
Post by: Yuri on August 18, 2013, 03:52:58 PM
If a string is defined like this:

#define MY_STRING "Hello"

and then used in an Invoke like this:

invoke func, MY_STRING

it works fine in x86, but in x64 GoAsm puts in RCX the characters of the string rather than its address.
Title: Re: String #DEFINEs in x64 INVOKE
Post by: wjr on August 25, 2013, 01:28:05 AM
Thanks - I am well on my way to addressing this situation :biggrin: ...
Title: Re: String #DEFINEs in x64 INVOKE
Post by: wjr on August 28, 2013, 02:30:09 PM
Only 7 lines of code added, but it took a while to track down where, which flag to test, what to call, which flag to set, and where to jump to after, but it is now done in version 0.58.0.3.
Title: Re: String #DEFINEs in x64 INVOKE
Post by: Yuri on August 29, 2013, 02:23:19 PM
Thanks, Wayne, it works fine now. :icon_cool: