Not sure if this is intentional, but hlhelp.chm doesn't document this behaviour:
include \masm32\include\masm32rt.inc
.code
start:
mov esi, chr$("Masm32:")
print "esi=", 9, 9, 9, 9
print esi, 13, 10
print "find$(1, esi, 'Masm32:')=", 9
push find$(1, esi, "Masm32:")
print str$(eax), 13, 10
pop eax
exit eax
end startOutput:
esi= Masm32:
find$(1, esi, 'Masm32:')= -1MasmBasic
Instr_(esi, "Masm32:") would return 1, and that seems to be a standard BASIC behaviour; but C/C++ might be different, of course.
I also had a weird problem with
exit eax, being translated to invoke ExitProcess,
0 (with plain Masm32rt.inc), but I can't reproduce it now that I am on the other puter. Will check tomorrow if it's the same macros.asm on both machines 8)