Вниз
Скачать: CL | DM;

c VB на Delphi   Найти похожие ветки 

← →
ilka ©   (2003-11-07 16:38) [0]

Подскажите как переделать с visual basic на delphi?

Dim MyXMLDocument
Dim MyHTTPCommunicator

rem Creating MSHTML objects
Set MyXMLDocument = CreateObject ("MSXML2.DOMDocument")
Set MyHTTPCommunicator = CreateObject ("Msxml2.XMLHTTP")

MyXMLDocument.load ("C:\file.xml")

rem connect to webpage
MyHTTPCommunicator.open "POST", " http://localhost/test.asp", false

rem send xml to the page
MyHTTPCommunicator.send MyXMLDocument

rem and display te response
wscript.echo MyHTTPCommunicator.responseText


← →
AngryMac ©   (2003-11-07 16:44) [1]

Ну как-то так:


var
MyXMLDocument, MyHTTPCommunicator: OleVariant;
begin
MyXMLDocument := CreateOLEObject ("MSXML2.DOMDocument");
MyHTTPCommunicator := CreateOLEObject ("Msxml2.XMLHTTP");
MyXMLDocument.load("C:\file.xml");
MyHTTPCommunicator.open("POST", " http://localhost/test.asp", False); // (может вместо False -> 0)
MyHTTPCommunicator.send(MyXMLDocument);
ShowMessage(MyHTTPCommunicator.responseText);
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.015 c
14-56831
Халява
2003-10-28 00:04
2003.11.17
Поможите


14-56859
aVast
2003-10-24 09:21
2003.11.17
Есть такая система axapta...


14-56905
Igor_thief
2003-10-23 17:01
2003.11.17
TPanel


3-56506
SasaR
2003-10-29 16:24
2003.11.17
DBF -> InterBase


14-56841
Fenix==
2003-10-27 21:24
2003.11.17
Мобилы




   Наверх