use standard trmem support for wmake project