Bonjour,
Dans la continuit� des connexions, je cherche un moyen d'ouvrir une page web.
ShellExecute (Handle,"open","http://www.developpez.com",NULL,NULL,SW_NORMAL);
Le code ci-dessus donne les erreurs suivantes :
[bcc32 Erreur] Unit1.cpp(130): E2034 Impossible de convertir 'TWindowHandle * const' en 'HWND__ *'
[bcc32 Erreur] Unit1.cpp(130): E2342 Mauvaise correspondance de type dans le param�tre 'hwnd' ('HWND__ *' d�sir�, 'TWindowHandle *' obtenu)
J'ai bidouill� le code ci-dessous d'apr�s un code Delphi, mes connaissances �tant assez limit�es en la mati�re, �a plante ...
Cordialement
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| String recup(String getrecup, TStream *DestStream)
{
DestStream = new TStream();
return getrecup;
}
void __fastcall TForm1::DownloadHTTP(const String AUrl, TStream *DestStream)
{
if (serveur->Active == true) recup(AUrl,DestStream);
}
void __fastcall TForm1::Button5Click(TObject *Sender)
{
TFileStream *Fs = new TFileStream("temp.txt", fmCreate);
DownloadHTTP("http://www.developpez.com",new TStream(Fs)); // [bcc32 Erreur] Unit1.cpp(122): E2285 Impossible de trouver une correspondance pour 'TStream::TStream(TFileStream *)'
delete Fs;
} |
Partager