Вниз
Скачать: 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.022 c
3-56434
Шурик Ш
2003-10-29 16:22
2003.11.17
Компоненты ADO вместо BDE


14-56830
Vlad Oshin
2003-10-28 09:13
2003.11.17
Составим наш ответ Чемберлену?


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


3-56471
alexela
2003-10-28 20:31
2003.11.17
базы


3-56538
wsm-100
2003-10-25 15:50
2003.11.17
Какое событие при перемещению по гриду.




   Наверх