Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Push to stack null terminated string

Status
Not open for further replies.

tosh5457

Programmer
May 30, 2007
8
0
0
PT
Hi... My question is how do I push a null terminated string (to use windows API functions) to the stack? For example, if I want to push "hello" i would use push 68656c6c6f right? What if i wanted "hello" to be a null-terminated string?
 
I belive that you want to push the 32bit address of the string, not the string itself. Most (if not all) Windows API function recieve strings as pointers.

90% of all questions can be answer by the Help file! Try it and be amazed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top