Author Topic: String #DEFINEs in x64 INVOKE  (Read 2670 times)

Yuri

  • Member
  • **
  • Posts: 175
String #DEFINEs in x64 INVOKE
« on: August 18, 2013, 03:52:58 PM »
If a string is defined like this:
Code: [Select]
#define MY_STRING "Hello"
and then used in an Invoke like this:
Code: [Select]
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.

wjr

  • Member
  • **
  • Posts: 208
    • WJR's website
Re: String #DEFINEs in x64 INVOKE
« Reply #1 on: August 25, 2013, 01:28:05 AM »
Thanks - I am well on my way to addressing this situation :biggrin: ...

wjr

  • Member
  • **
  • Posts: 208
    • WJR's website
Re: String #DEFINEs in x64 INVOKE
« Reply #2 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.

Yuri

  • Member
  • **
  • Posts: 175
Re: String #DEFINEs in x64 INVOKE
« Reply #3 on: August 29, 2013, 02:23:19 PM »
Thanks, Wayne, it works fine now. :icon_cool: