Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Otros entornos y lenguajes > C++ Builder
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #12  
Antiguo 03-11-2005
Ivan_25 Ivan_25 is offline
Miembro
 
Registrado: oct 2005
Posts: 87
Poder: 21
Ivan_25 Va por buen camino
Ya esta solucionado

Es un poco chapucero, pero funcionar, funciona:

String ruta = "expedientes/";
String nombre;
String rutanombre1;
String rutanombre2;
String rutanombre3;
String rutanombre4;
String rutanombre5;
String extension1;
String extension2;
String extension3;
String extension4;
String extension5;
if(DBECodigo->Text=="")
{
ShowMessage("No hay asignado ningún curriculum");
}
else
{
nombre = DBECodigo->Text.Trim();
extension1 = ".pdf";
extension2 = ".htm";
extension3 = ".jpg";
extension4 = ".doc";
extension5 = ".xls";
rutanombre1 = ruta + nombre + extension1;
rutanombre2 = ruta + nombre + extension2;
rutanombre3 = ruta + nombre + extension3;
rutanombre4 = ruta + nombre + extension4;
rutanombre5 = ruta + nombre + extension5;
ShellExecute(NULL, "open", rutanombre1.c_str() ,NULL, NULL, SW_SHOWNORMAL);
ShellExecute(NULL, "open", rutanombre2.c_str() ,NULL, NULL, SW_SHOWNORMAL);
ShellExecute(NULL, "open", rutanombre3.c_str() ,NULL, NULL, SW_SHOWNORMAL);
ShellExecute(NULL, "open", rutanombre4.c_str() ,NULL, NULL, SW_SHOWNORMAL);
ShellExecute(NULL, "open", rutanombre5.c_str() ,NULL, NULL, SW_SHOWNORMAL);
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 04:05:35.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi