I'm using this for fill a doc (and save or print):
void __fastcall TfClientes::bCbvClick(TObject *Sender)
{
String sFic = xAp.cPB + "\\CARTBV_" + DigitLg(lsLg->Text) + ".doc";
if (MiraFile(sFic)) {
AvisaW(this, "Generando e impriendo carta ...");
CreaDOC(sFic, 1);
AvisaW(this, "");
} else...
Only a think. I think a Timer is waste resources, why not put a counter and in depencence of lengthy computations, you can do:
if (ntik++ > 9) { // or 20, 90, 1000 ...
Applicatrion->ProcessMessages();
ntik = 0;
}
Helo, I can't use SelectDirectory(.. because it is in english and I need in spanish.
I use:
(in the top of form, I put all but see the coment //)
#define NO_WIN32_LEAN_AND_MEAN // <- Esto
#include <vcl.h>
#pragma hdrstop
//#include <sys\stat.h>
#include <WindowsX.h> // <- y esto...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.