Forum > Networking and Web Programming

New to internet programming frustrations

(1/4) > >>

dgrhoads:
I am new to programming for internet access and am finding that the three avenues I've tried so far have issues.  My third avenue is InternetTools.   It seems to be widely used.

I downloaded the internettools.zip and have tried to install the package "internettools.lpk".  During installation, I got an error message telling me that it cannot find PASDBLSTRUTILS. 

This file is not included in the latest Lazarus distribution nor in the InternetTools zip file.  I fouund it on the internet and have downloaded it.  Where do I put this file so it will be available every future time I rebuild my system and where it will be compiled along with all the other files during the rebuild?

Thaddy:
internettools is a bad choice. very old. and contrary to your belief hardly used anymore.
look at the preinstalled fcl-web and fpc-net libraries and the included examples. there also some component wrappers for that. it is maintained and written by the freepascal core team. you may also be interested in pas2js, but for beginners i would start with first two in mentioned.

TRon:

--- Quote from: dgrhoads on March 30, 2024, 05:26:30 am ---I downloaded the internettools.zip and have tried to install the package "internettools.lpk".  During installation, I got an error message telling me that it cannot find PASDBLSTRUTILS. 

--- End quote ---
The use of that unit is a choice (just like many others choices/dependencies for that package). See internettoolsconfig.inc


--- Quote from: dgrhoads on March 30, 2024, 05:26:30 am ---I downloaded the internettools.zip  ....

--- End quote ---
From where ? When ?

Always try to go directly to the source, like in this case here.

PS: something I forgot to mention. Internetools are just plain Pascal units e.g. there are no visual components. and as stated on the website:

--- Quote ---Since the Internet Tools and their XQuery-Engine consist of a set of plain Pascal units they do not require installation. You just need to extract all files from the .zip package and ensure that FPC can find the .pas files.

--- End quote ---
But if you want to then the package can be installed (with the earlier mentioned note about the configuration in mind).

dgrhoads:
Thanks for the suggestions.

I successfully loaded the fpweb package.  Then I attempted to follow the directions in two of the website tutorials suggested by TRon.  (I am using the latest Lazarus distribution 3.2.)  Partial success.  Frustrations continue.

fpWeb Tutorial.  I tried the "Hello World" example.  Used the HTTP Server Application.  In Item #5, I was directed to move to the Object Inspector.  There were NO objects available under Object Inspector.  Consequently, I could not select an event as specified under Item #6.

fcl-web.  I was able to create the first application (CGI Application) as directed.  I was able to compile it successfully (Run/Quick compile).  However the normally green arrow used to launch the application was not illuminated, so I couldn't run the application.

Are these bugs in 3.2 that I am finding or is it me?

Is it possible to use fpweb with a straight Application rather than the HTTP Server Application or the CGI Application?  If so, is there a tutorial on how to do that?

TRon:

--- Quote from: dgrhoads on March 30, 2024, 06:14:10 pm ---fpWeb Tutorial.  I tried the "Hello World" example.  Used the HTTP Server Application.  In Item #5, I was directed to move to the Object Inspector.  There were NO objects available under Object Inspector.  Consequently, I could not select an event as specified under Item #6.

--- End quote ---
Which type of web module did you select on the HTTP project creation window ? If you leave it empty non will be created and hence there will not be any presented in the object inspector.


--- Quote ---fcl-web.  I was able to create the first application (CGI Application) as directed.  I was able to compile it successfully (Run/Quick compile).  However the normally green arrow used to launch the application was not illuminated, so I couldn't run the application.

--- End quote ---
A CGI application does not run on its own (it is an extension for an existing/running server). To my knowledge there is no default provision in Lazarus configured for that.


--- Quote ---Are these bugs in 3.2 that I am finding or is it me?

--- End quote ---
Wiki tutorial not being updated and rough edges (though the latter, I am not sure if Lazarus should also be able to act as a http daemon)

Navigation

[0] Message Index

[#] Next page

Go to full version