Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can set text of button at runtime? Pin
_AnsHUMAN_ 2-Jul-08 23:54
_AnsHUMAN_ 2-Jul-08 23:54 
AnswerRe: How can set text of button at runtime? Pin
Paresh Chitte2-Jul-08 23:54
Paresh Chitte2-Jul-08 23:54 
AnswerRe: How can set text of button at runtime? Pin
Hamid_RT3-Jul-08 1:38
Hamid_RT3-Jul-08 1:38 
QuestionUAC in Vista Pin
subramanyeswari2-Jul-08 23:35
subramanyeswari2-Jul-08 23:35 
QuestionRe: UAC in Vista Pin
Rajesh R Subramanian2-Jul-08 23:55
professionalRajesh R Subramanian2-Jul-08 23:55 
AnswerRe: UAC in Vista Pin
subramanyeswari3-Jul-08 2:17
subramanyeswari3-Jul-08 2:17 
GeneralRe: UAC in Vista Pin
Nibu babu thomas3-Jul-08 3:35
Nibu babu thomas3-Jul-08 3:35 
QuestionHow to Clear IE history under a limited account of VISTA Pin
moye25012-Jul-08 22:26
moye25012-Jul-08 22:26 
The code works under XP, both administrator or limited account.
But when I run it under Vista, it works under a administrator account, but doesn't work under limited account.
Sometimes, the history is cleared at first, but it appears again when I restart IE.

The code is shown as follow:

USES_CONVERSION;
CoInitialize(NULL);

TCHAR szSpecialFolderPath[MAX_PATH];
::SHGetSpecialFolderPath(::GetDesktopWindow(), szSpecialFolderPath, CSIDL_HISTORY, FALSE);

IUrlHistoryStg2* pUrlHistoryStg2 = NULL;
HRESULT hr = CoCreateInstance(CLSID_CUrlHistory, NULL, CLSCTX_ALL, IID_IUrlHistoryStg2, (void**)&pUrlHistoryStg2);
if(SUCCEEDED(hr))
{
    hr = pUrlHistoryStg2->ClearHistory();
    pUrlHistoryStg2->Release();
    CoUninitialize();
    return TRUE;
}
else
{
    CoUninitialize();
    return FALSE;
}


Thanks a lot!
QuestionThe stack conventions are different in AfxBeginThread and CreateThread Pin
followait2-Jul-08 21:37
followait2-Jul-08 21:37 
AnswerRe: The stack conventions are different in AfxBeginThread and CreateThread Pin
Iain Clarke, Warrior Programmer2-Jul-08 22:03
Iain Clarke, Warrior Programmer2-Jul-08 22:03 
AnswerRe: The stack conventions are different in AfxBeginThread and CreateThread Pin
Saurabh.Garg2-Jul-08 22:12
Saurabh.Garg2-Jul-08 22:12 
QuestionRe: The stack conventions are different in AfxBeginThread and CreateThread Pin
CPallini2-Jul-08 22:22
mveCPallini2-Jul-08 22:22 
AnswerRe: The stack conventions are different in AfxBeginThread and CreateThread Pin
Saurabh.Garg2-Jul-08 22:27
Saurabh.Garg2-Jul-08 22:27 
AnswerRe: The stack conventions are different in AfxBeginThread and CreateThread Pin
Roger Stoltz2-Jul-08 22:23
Roger Stoltz2-Jul-08 22:23 
QuestionHow to hide a public function inherit from base class Pin
Dracula Wang2-Jul-08 21:27
Dracula Wang2-Jul-08 21:27 
QuestionRe: How to hide a public function inherit from base class Pin
CPallini2-Jul-08 21:36
mveCPallini2-Jul-08 21:36 
AnswerRe: How to hide a public function inherit from base class Pin
Dracula Wang2-Jul-08 21:50
Dracula Wang2-Jul-08 21:50 
QuestionRe: How to hide a public function inherit from base class Pin
CPallini2-Jul-08 21:56
mveCPallini2-Jul-08 21:56 
AnswerRe: How to hide a public function inherit from base class Pin
Dracula Wang2-Jul-08 22:05
Dracula Wang2-Jul-08 22:05 
AnswerRe: How to hide a public function inherit from base class Pin
BadKarma3-Jul-08 1:21
BadKarma3-Jul-08 1:21 
QuestionFloating point assembler code [modified] Pin
Tomerland2-Jul-08 20:56
Tomerland2-Jul-08 20:56 
AnswerRe: Floating point assembler code Pin
Roger Stoltz3-Jul-08 2:09
Roger Stoltz3-Jul-08 2:09 
AnswerRe: Floating point assembler code Pin
Alan Balkany3-Jul-08 4:57
Alan Balkany3-Jul-08 4:57 
QuestionHow to struct AA{ struct BB; }; struct BB { struct AA; }; Pin
Chesnokov Yuriy2-Jul-08 20:55
professionalChesnokov Yuriy2-Jul-08 20:55 
AnswerRe: How to struct AA{ struct BB; }; struct BB { struct AA; }; Pin
Saurabh.Garg2-Jul-08 21:02
Saurabh.Garg2-Jul-08 21:02 

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.