#include"PresenValue.h" int PresenValue::getData() { return data; } void PresenValue::setData(int data) { this->data = data; } void PresenValue::setName(TCHAR* name) { wsprintf(this->name,"%s",name); } TCHAR* PresenValue::getName() { //コピーして渡すのが吉 TCHAR* temp; temp = (TCHAR*)malloc(sizeof(TCHAR)*100); wsprintf(temp,"%s",name); return temp; }