Hello I'm making a cd player for windows and I have the option to set it as the default cd player. It works ok when I Click on the CDRom Drive it opens up my cd player. I'm using vista and I want to associate my cd player with the cda extension so when I explorer my cdrom drive I want to see my icon with the cda and beable to click on the cda file and it open with my player. Can someone help me with this. here is my code I am trying to use:
BOOL CALLBACK DlgDefault::OnCommand(int NotifyCode, int ControlID, HWND hWndControl)
{
switch(ControlID) {
case RB_CHAMELEON:
EnableControl(EB_OTHER, FALSE);
break;
case RB_OTHER:
EnableControl(EB_OTHER, TRUE);
break;
case BT_SETDEFAULT:
{
int ret;
if(IsButtonChecked(RB_CHAMELEON) == 1) {
ret = MessageBox(Handle, "Set Creative CD As The Default CD Player ?",
"Set Creative CD As The Default CD Player ?",MB_YESNO | MB_ICONQUESTION);
}
else
ret = MessageBox(Handle, "Set This As The Default CD Player ?",
"Set This As The Default CD Player ?",MB_YESNO | MB_ICONQUESTION);