So you are using a 64bit compiler for CPP and trying to interface your program with a 32bit assembly program? In order to make your pointer definitions 32bits you need to look at the stdint header...