Mensaje    Asunto: Problema al asociar mi extensión .ran Responder citando

Hola a todos, mi problema es el siguiente:
Ya he conseguido asociar mi extensión a mi programa, lo que pasa es que al abrir un archivo desde el explorador de windows, solo se me habre mi programa y yo quiero que se habra tambien una ventana MDI (Trabajo con fichas MDI, la ficha se llama "Ficha"). Tambien quiero sociar a los archivos de mi extensión un icono. Este es el código que tengo:
Código:
TRegistry* thisReg = new TRegistry();
thisReg->RootKey = HKEY_CLASSES_ROOT;
thisReg->OpenKey(".ran", true);
thisReg->WriteString("", "Ficha");
thisReg->CloseKey();
thisReg->OpenKey("Ficha", true);
thisReg->WriteString("", "Archivo de Rana");
thisReg->OpenKey("shell", true);
thisReg->WriteString("", "open");
thisReg->OpenKey("open", true);
thisReg->WriteString("", "&Open");
thisReg->OpenKey("command", true);
thisReg->WriteString("", ParamStr(0)+" \"\%1\"");
thisReg->CloseKey();
thisReg->OpenKey("Ficha", true);
thisReg->OpenKey("shell", true); thisReg->OpenKey("open batch", true);
thisReg->WriteString("", "Open &Batch");
thisReg->OpenKey("command", true);
thisReg->WriteString("", ParamStr(0)+" -b \"\%1\"");
thisReg->CloseKey();
thisReg->OpenKey("Ficha", true);
thisReg->OpenKey("DefaultIcon", true);
thisReg->WriteString("", ParamStr(0)+",1");
delete thisReg;

Espero que puedan ayudarme, un saludo.
_________________
Gracias de Antemano
<---------------------->
Saludos RANA

''''''''
(0)(0)
-o-o-o--(_)--0-0-0-
<---------------------->