Co jest źle??!!O_o

0

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);
}
//---------------------------------------------------------------------------
0

ok o to poprawiony kod:

//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "SHDocVw_OCX"
#pragma link "SHDocVw_OCX"
#pragma resource "*.dfm"
TForm1 *Form1;
char *adres = "C:\\Strona.html";
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
            : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
RichEdit1->Lines->SaveToFile(adres);
CppWebBrowser1->Navigate((wchar_t*)adres);
}
//---------------------------------------------------------------------------

PS dzięki za pomoc RUDEMU:-):-)

1 użytkowników online, w tym zalogowanych: 0, gości: 1