Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDirectShow Audio-Video Synchronization Pin
Alexander M.,3-Jul-05 6:19
Alexander M.,3-Jul-05 6:19 
GeneralRe: DirectShow Audio-Video Synchronization Pin
stephen_young8-Jul-05 20:47
stephen_young8-Jul-05 20:47 
QuestionCan any 1 help me Pin
asma1233-Jul-05 3:56
asma1233-Jul-05 3:56 
AnswerRe: Can any 1 help me Pin
Saurabh.Garg3-Jul-05 4:15
Saurabh.Garg3-Jul-05 4:15 
AnswerRe: Can any 1 help me Pin
PJ Arends3-Jul-05 7:34
professionalPJ Arends3-Jul-05 7:34 
AnswerRe: Can any 1 help me Pin
Bob Stanneveld3-Jul-05 20:51
Bob Stanneveld3-Jul-05 20:51 
Generalre: TSP using GA Pin
mark77203-Jul-05 3:35
mark77203-Jul-05 3:35 
GeneralAdding pages to the Power Manager (IShellPropSheetExt) Pin
Mochiler2-Jul-05 22:28
Mochiler2-Jul-05 22:28 
Hi,
After reading Michael Dunn's article on adding pages to control panel applates and after reviewing his code,based on michael's code I have tried add a page to the power manger, I changed the DllRegisterServer function
so it will register the propsheetext under the power manager (at least as microsoft publishes in the msdn) but still it does not work,
what am I missing?, is the registry key published in msdn is the currect one?
(it works when I am registering it for the Display property page)
any help will be appreciated.

STDAPI DllRegisterServer(void)
{
bool bNT = ( 0 == (GetVersion() & 0x80000000) );
CRegKey reg;
LONG lRet;

// Add ourself to the approved extensions list on NT.
if ( bNT )
{
lRet = reg.Open ( HKEY_LOCAL_MACHINE,
_T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved"),
KEY_SET_VALUE );

if ( ERROR_SUCCESS != lRet )
return HRESULT_FROM_WIN32(lRet);

lRet = reg.SetValue ( _T("Display CPL Extension"),
_T("{2F5AC606-70CF-461C-BFE1-6063670C3484}") );

if ( ERROR_SUCCESS != lRet )
return HRESULT_FROM_WIN32(lRet);

reg.Close();
}
// Add a key to have our extension loaded by the Display applet. Unfortunately
// the key is different between 9x and 2000, so it has to be done in code.
// I haven't tested this on NT 4 yet (don't have a system handy) so I don't
// know the right key to use on NT 4. For now I'll use the same key as on 2K.

TCHAR szKey [512];

wsprintf ( szKey, _T("Software\\Microsoft\\Windows\\CurrentVersion\\Controls Folder\\PowerCfg\\shellex\\PropertySheetHandlers\\TestDisplayPage"));

lRet = reg.Create ( HKEY_LOCAL_MACHINE, szKey, REG_NONE, REG_OPTION_NON_VOLATILE,
KEY_SET_VALUE );

if ( ERROR_SUCCESS != lRet )
return HRESULT_FROM_WIN32(lRet);

lRet = reg.SetValue ( _T("{2F5AC606-70CF-461C-BFE1-6063670C3484}") );

if ( ERROR_SUCCESS != lRet )
return HRESULT_FROM_WIN32(lRet);

// registers object, typelib and all interfaces in typelib
return _Module.RegisterServer(TRUE);
}


Generaladd value cross class: help me Pin
2-Jul-05 20:50
suss2-Jul-05 20:50 
GeneralRe: add value cross class: help me Pin
Cedric Moonen3-Jul-05 0:56
Cedric Moonen3-Jul-05 0:56 
Generalerror C2039 Pin
John R. Shaw2-Jul-05 16:34
John R. Shaw2-Jul-05 16:34 
GeneralRe: error C2039 Pin
Jose Lamas Rios2-Jul-05 18:33
Jose Lamas Rios2-Jul-05 18:33 
GeneralRe: error C2039 Pin
John R. Shaw2-Jul-05 20:37
John R. Shaw2-Jul-05 20:37 
GeneralRe: error C2039 Pin
S. Senthil Kumar3-Jul-05 3:53
S. Senthil Kumar3-Jul-05 3:53 
GeneralRe: error C2039 Pin
John R. Shaw3-Jul-05 7:19
John R. Shaw3-Jul-05 7:19 
GeneralClassWizard Problem : Help Me Pin
prateekduble2-Jul-05 12:25
prateekduble2-Jul-05 12:25 
GeneralRe: ClassWizard Problem : Help Me Pin
John R. Shaw2-Jul-05 16:51
John R. Shaw2-Jul-05 16:51 
GeneralRe: ClassWizard Problem : Help Me Pin
prateekduble2-Jul-05 19:13
prateekduble2-Jul-05 19:13 
GeneralRe: ClassWizard Problem : Help Me Pin
John R. Shaw2-Jul-05 20:46
John R. Shaw2-Jul-05 20:46 
QuestionAnyone with Boost::Graph experience? Pin
Nathan Addy2-Jul-05 9:35
Nathan Addy2-Jul-05 9:35 
AnswerRe: Anyone with Boost::Graph experience? Pin
John R. Shaw2-Jul-05 18:03
John R. Shaw2-Jul-05 18:03 
GeneralDynamic Buttons Pin
Ger Hayden2-Jul-05 8:53
Ger Hayden2-Jul-05 8:53 
GeneralRe: Dynamic Buttons Pin
PJ Arends2-Jul-05 9:30
professionalPJ Arends2-Jul-05 9:30 
QuestionBlinking Button? Pin
DanYELL2-Jul-05 6:30
DanYELL2-Jul-05 6:30 
AnswerRe: Blinking Button? Pin
Trollslayer2-Jul-05 6:49
mentorTrollslayer2-Jul-05 6:49 

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.