Okay, I've work it out myself. For the benefit of others, here is the core code required to download a file using TNMHTTP:
int fhandle;
NMHTTP1->ReportLevel = Status_Basic;
NMHTTP1->InputFileMode = false;
NMHTTP1->Get("http://www.meteo.fr/temps/europe/satellite/bigsateuj.jpg")...
Hi,
I've tried:
NMHTTP1->ReportLevel = Status_Basic;
NMHTTP1->InputFileMode = true;
NMHTTP1->Body = "D:\\DOWNLOADS\\example.jpg";
NMHTTP1->Get("http://www.ahost.com/example.jpg");
to download a JPEG file (BTW in case you haven't guessed the example URL is not real). The file I was...
If you like to see all files in Windows Explorer, including hidden files, you might find the following of interest.
A particularly annoying folder (to me anyway) is the 'Links' folder. Why IE insists it be present is beyond me. To get rid of this troublesome folder, search the registry for...
Could anybody tell me how I can detect when a Win 9x box is online? I've searched the registry and I can't seem to find anything of any use.
In W2K it's fairly easy, if only Win 9x was the same!
I wish to use the following routines to scan a file structure and change the date and time values of all the files encountered.<br><br><i>int __fastcall FindFirst(const System::AnsiString Path, int Attr, TSearchRec &F);<br>int __fastcall FindNext(TSearchRec &F);</i><br><br>My question is, is...
Dear Kim,<br>thanks for your help. As you suggested I am going to use the SetCommState & CreateFile functions.<br><br>Dear Siddhartha,<br>thanks for you help. In answer to your question the line of code '<FONT FACE=monospace>address = *ptraddr;</font>' runs OK on my machine for memory addresses...
Dear Ssing,<br>firstly thank you for attempting to answer my question. Unfortunately, whilst your code runs without error, it does not read the contents of the memory location (0x400) as no indirection operator is used with 'ptraddr'.<br>If you could look at the problem again, or anybody else...
Dear Kim,<br>thank you for responding to my question.<br><br>I am using Windows NT 4.0 with Service Pack 6a and I am initially trying to read address 0x400 (COM port location). My console program code is as follows:<br><br><FONT FACE=monospace><br>#pragma hdrstop<br>#include...
When I try to access memory locations below 0x00010000 (bios memory area) using Borland C++ Builder 3 I receive a EAccess Violation exception. Could anybody explain how to access this area of memory without a exception being thrown? In anticipation, thank you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.