An approach to nonstandard quantum mechanics