![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#2
|
||||
|
||||
|
Hola Snaked.
Código:
...
#include <ActiveX.hpp>
...
void gethtmlCode(TCppWebBrowser* wb, TStrings* lines)
{
IPersistStreamInit* psi;
if (!wb->Document) return;
if (wb->Document->QueryInterface(IID_IPersistStreamInit,(void **)&psi) == S_OK)
{
TStringStream *ss = new TStringStream("");
TStreamAdapter *sa = new TStreamAdapter(ss, soReference);
try
{
if (SUCCEEDED(psi->Save(*sa, true)))
lines->Add(ss->DataString);
}
__finally
{
delete ss;
delete sa;
}
}
}
Código:
void __fastcall TForm1::Button1Click(TObject* Sender)
{
gethtmlCode(CppWebBrowser1, Memo1->Lines);
}
![]()
__________________
Daniel Didriksen Guía de estilo - Uso de las etiquetas - La otra guía de estilo .... |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Alguien Me Puede Ayudar | bothy | Varios | 8 | 12-03-2010 16:27:24 |
| ¿Hay alguna función ya hecha para comprobar si un texto se puede convertir a número? | noob | Varios | 7 | 05-12-2008 01:44:24 |
| Alguien Me Puede Orientar? | linuz | Debates | 72 | 20-12-2004 17:42:58 |
| alguien me puede ayudar | juziel | Internet | 2 | 13-09-2004 23:51:12 |
| A ver, ¿alguien me puede explicar? | Delphi Man | .NET | 1 | 28-05-2003 10:39:57 |
|