지원 프로그램
home
슬기로운 데모생활
home

Acquiring User Information

생성일
2024/03/14 05:07
태그
To get the user's information logged into the stove launcher, you can check it with the StovePC_GetUser function. To check the operation of the StovePC_GetUser function, add it to the CHelloStoveDlg::OnBnClickedGetUser function.
void CHelloStoveDlg::OnBnClickedGetUser() { /*Add the 'Follow Through' code here.*/ StovePCResult result = StovePC_GetUser(); if (result != STOVE_PC_NO_ERROR) { CString log; log.Format(L"[Error] StovePC_GetUser, Result %d", result); OnLog(log); } else { OnLog(L"[Success] StovePC_GetUser"); } }
C++
복사
Comment out the OnUser function. It calls back the function when it usually calls the StovePC_GetUser function and input the code below.
When it calls the StovePC_GetUser function usually, it calls the callback OnUser function. When it reaches the callback OnUser function, you can extract the user's information through the StovePCUser argument.
void OnUser(const StovePCUser user) { /*Add the 'Follow Through' code here.*/ OnLog(L"<User>"); CString log; log.Format(L"memberNo : %I64d", user.memberNo); OnLog(log); log.Format(L"nickname : %s", user.nickname); OnLog(log); log.Format(L"gameUserId : %s", user.gameUserId); OnLog(log); }
C++
복사