* * *

Author Topic: internet search  (Read 2535 times)

skaner1900

  • Jr. Member
  • **
  • Posts: 54
internet search
« on: July 26, 2010, 04:16:58 pm »
Code: [Select]
procedure TForm1.Button1Click(Sender: TObject);
var
sr:tsearchrec;
begin
  if FindFirst('c:\*.*',faAnyFile,sr)=0 then
      begin
      repeat
      ListBox1.Items.Add('c:\'+sr.Name);
      until FindNext(sr) <> 0;
      end;
end;

How change this code to search files in the Internet?
for example: i like to get every links to graphic files on simple page
how check graphic resolution?

Mujie

  • New member
  • *
  • Posts: 23
Re: internet search
« Reply #1 on: July 26, 2010, 05:01:55 pm »
Although I do not have experience in the field of network programming, we encourage you to learn network programming using Internet component in Lazarus, like Indy or Synapse. Cheer...

JD

  • Hero Member
  • *****
  • Posts: 573
Re: internet search
« Reply #2 on: August 17, 2010, 07:59:30 am »
You can search for files on the Internet using protocols like FTP, HTTP etc. However you need to understand a bit of network programming to use these protocols. Lazarus has components like Indy, Synapse and LNet that give you access to these protocols. Install any one of them & then search for documentation & examples.

The link below is from a book that shows how to use Google to search the Internet (HTTP) for websites matching a keyword from inside a Delphi application.

http://etutorials.org/Programming/mastering+delphi+7/Part+IV+Delphi+the+Internet+and+a+.NET+Preview/Chapter+19+Internet+Programming+Sockets+and+Indy/Working+with+HTTP/

You'll need to be persistent because there's a learning curve and documentation is not easy to come by. However, it is well worth the effort.

sandzmiles

  • Guest
Re: internet search
« Reply #3 on: January 05, 2011, 01:12:47 am »
There are some useful references on the net, but i usually read here. The site gives more accurate and step by step procedures especially on troubleshooting. Guys here are very nice and cool.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads