co jest źle w tym kodzie:-| w Delphi jak to użyje to to działa:-|
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "SHDocVw_OCX"
#pragma resource "*.dfm"
TForm1 *Form1;
char *adres = "C:\\WWW\\Strona.html";
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
RichEdit1->Lines->SaveToFile(adres);
CppWebBrowser1->Navigate(adres);
}
//---------------------------------------------------------------------------