Ver Mensaje Individual
  #3  
Antiguo 02-10-2013
Avatar de ecfisa
ecfisa ecfisa is offline
Moderador
 
Registrado: dic 2005
Ubicación: Tres Arroyos, Argentina
Posts: 10.508
Reputación: 36
ecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to behold
Hola JXJ.

Unit1.cpp :
Código:
#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
#include "Unit3.h"

#pragma package(smart_init)
#pragma resource "*.dfm"

TForm1 *Form1;

__fastcall TForm1::TForm1(TComponent* Owner)
  : TForm(Owner)
{
}

void __fastcall TForm1::Button1Click(TObject *Sender)
{
  inicializa();
  ShowMessage(DirUserDoc);
}
Unit3.h:
Código:
#ifndef Unit3H
#define Unit3H

#include <vcl>
#include <string>

  extern String DirUserDoc;
  void __fastcall inicializa();

#endif
Unit3.cpp:
Código:
#pragma hdrstop

#include "Unit3.h"
#include <string>

String DirUserDoc;

void __fastcall inicializa()
{
  DirUserDoc = "super mira nada mas";
}

#pragma package(smart_init)
Saludos
__________________
Daniel Didriksen

Guía de estilo - Uso de las etiquetas - La otra guía de estilo ....
Responder Con Cita