Click here to Skip to main content
15,910,785 members
Home / Discussions / Mobile
   

Mobile

 
GeneralAnd the answer is... Pin
João Paulo Figueira16-Apr-03 3:30
professionalJoão Paulo Figueira16-Apr-03 3:30 
GeneralRe: And the answer is... Pin
J. Dunlap16-Apr-03 8:52
J. Dunlap16-Apr-03 8:52 
GeneralRe: And the answer is... Pin
Daniel Strigl18-Apr-03 0:16
Daniel Strigl18-Apr-03 0:16 
GeneralRe: And the answer is... Pin
João Paulo Figueira19-Apr-03 1:25
professionalJoão Paulo Figueira19-Apr-03 1:25 
GeneralRe: And the answer is... Pin
Daniel Strigl19-Apr-03 6:36
Daniel Strigl19-Apr-03 6:36 
GeneralRe: And the answer is... Pin
João Paulo Figueira19-Apr-03 6:49
professionalJoão Paulo Figueira19-Apr-03 6:49 
GeneralRe: And the answer is... Pin
João Paulo Figueira19-Apr-03 12:55
professionalJoão Paulo Figueira19-Apr-03 12:55 
GeneralBug Correction Pin
João Paulo Figueira19-Apr-03 12:54
professionalJoão Paulo Figueira19-Apr-03 12:54 
I found a bug in the code I posted before. When you change from the Bliss theme to any other one, you will get a painting error on the Today screen. This is because the code I posted did not delete the UseStartImage value. You have to delete it before sending the broadcast message to the desktop. Here is the revised code:
PROCESS_INFORMATION	pi;
CString			strCmdLine(_T("/safe /noui /nouninstall /delete 0 ")),
			strFile;
HKEY			hKey;
LONG			lRet;

m_edtFile.GetWindowText(strFile);
strCmdLine += strFile;

lRet = RegOpenKeyEx(HKEY_CURRENT_USER, _T("Software\\Microsoft\\Today"), 0, 0,
			&hKey);
if(ERROR_SUCCESS == lRet)
{
	RegDeleteValue(hKey, _T("UseStartImage"));

	if(::CreateProcess(_T("\\Windows\\wceload.exe"),
				strCmdLine, NULL, NULL, FALSE, 0, NULL, NULL, NULL, &pi))
	{
		::WaitForSingleObject(pi.hProcess, INFINITE);

		RegSetValueEx(hKey, _T("Skin"), 0, REG_SZ, (BYTE*)(LPCTSTR)strFile, 
				sizeof(TCHAR) * (strFile.GetLength() + 1));
	
		RegCloseKey(hKey);

		::SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
	}

}

As before, strFile contains the full path skin file name.
GeneralRe: Bug Correction Pin
Daniel Strigl20-Apr-03 2:54
Daniel Strigl20-Apr-03 2:54 
QuestionHow to make an Automation Server in Embedded Visual C++ Pin
frankwer11-Apr-03 6:19
frankwer11-Apr-03 6:19 
GeneralSaving all the content of PPC2002 emulator's memory Pin
Jose M Castellanos11-Apr-03 4:34
Jose M Castellanos11-Apr-03 4:34 
GeneralRe: Saving all the content of PPC2002 emulator's memory Pin
João Paulo Figueira11-Apr-03 5:11
professionalJoão Paulo Figueira11-Apr-03 5:11 
Generalsharing code between a WinCE and windows application Pin
majoob7-Apr-03 5:13
majoob7-Apr-03 5:13 
GeneralRe: sharing code between a WinCE and windows application Pin
Anonymous11-Apr-03 19:11
Anonymous11-Apr-03 19:11 
GeneralMultiple property sheet with a global toolbar Pin
mengi7-Apr-03 0:01
mengi7-Apr-03 0:01 
Question How to show the SIP automaticly at startup? Pin
Daniel Strigl5-Apr-03 4:32
Daniel Strigl5-Apr-03 4:32 
AnswerRe: How to show the SIP automaticly at startup? Pin
João Paulo Figueira5-Apr-03 6:10
professionalJoão Paulo Figueira5-Apr-03 6:10 
GeneralRe: How to show the SIP automaticly at startup? Pin
Daniel Strigl5-Apr-03 23:00
Daniel Strigl5-Apr-03 23:00 
GeneralDatatype Misalignment Pin
PaulJ3-Apr-03 10:33
PaulJ3-Apr-03 10:33 
GeneralRe: Datatype Misalignment Pin
Jonas Larsson4-Apr-03 2:17
Jonas Larsson4-Apr-03 2:17 
GeneralUnable to free memory in the destructor of a class exported in a dll. Pls Help Pin
Anand Vinod3-Apr-03 4:12
Anand Vinod3-Apr-03 4:12 
GeneralRe: Unable to free memory in the destructor of a class exported in a dll. Pls Help Pin
João Paulo Figueira3-Apr-03 5:02
professionalJoão Paulo Figueira3-Apr-03 5:02 
GeneralRe: Unable to free memory in the destructor of a class exported in a dll. Pls Help Pin
Anand Vinod3-Apr-03 23:59
Anand Vinod3-Apr-03 23:59 
GeneralRe: Unable to free memory in the destructor of a class exported in a dll. Pls Help Pin
João Paulo Figueira4-Apr-03 1:36
professionalJoão Paulo Figueira4-Apr-03 1:36 
GeneralRe: Unable to free memory in the destructor of a class exported in a dll. Pls Help Pin
João Paulo Figueira4-Apr-03 1:45
professionalJoão Paulo Figueira4-Apr-03 1:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.