[Help]Can you help me how to use PtPassword?

I’m not familiar with QNX GUI program,especially I’m often confused by
the usage of pointer. I tried to use PtPassword to make a login window
but failed. Due to the memory error, the program can’t work at all.
Can you help me to give a simple example of PtPassword?
Thx a lot!