|
U大可以幫我看一下CODE嗎?
小弟的CODE如下
SIMMESSAGE SimMessage;
DWORD lpdwIndex = NULL;
SYSTEMTIME ST;
HRESULT hr = S_OK;
memset(&SimMessage, 0, sizeof(SimMessage));
SimMessage.cbSize = sizeof(SimMessage);
SimMessage.dwParams = SIM_PARAM_PBE_ALL;
SimMessage.dwAddressType = SIM_ADDRTYPE_NATIONAL;
SimMessage.dwNumPlan = SIM_NUMPLAN_TELEPHONE;
memcpy(&(SimMessage.stReceiveTime), &ST, sizeof(SYSTEMTIME));
wcscpy(SimMessage.lpszAddress, TEXT("111111111"));
wcscpy(SimMessage.lpszMessage, TEXT("GOGOGO"));
hr = SimWriteMessage(g_hSim, SIM_SMSSTORAGE_SIM, &lpdwIndex, &SimMessage);
小弟完全不知道哪個參數有問題~~><~
只要調用SUCCESS~~立刻給分~~
感激!! |
|