lazarus

Lazarus readln doesn't read the variable

半世苍凉 提交于 2019-11-29 18:17:34
I would like to ask for some help as i'm not able to identify what i did wrong in the following code as in the procedure , it doesn't read the first unit of the record , but after that it reads the uj.nev too. It only misses it for the first time which is what i can't understand ,and not only on the school computer but mine too. I would appreciate it if you could explain to me what i did wrong. Thanks in advance! (the program supposed to read records nev , varos , fizetes , and sort them into ascending order, and then write it out into a text file) program adatbazis; uses crt,Sysutils; const C

Upload a file to a website programmatically?

情到浓时终转凉″ 提交于 2019-11-29 12:38:58
I am using Lazarus I have an app with webbrowser component on it that logs into a website loads a page as below (see html code below), and fills in different inputs. The last input is a file to upload. I would like my app to "click" Browse, select a file i want to, and Open. After that I could do a post the form OR just upload the file and carry on. 1 I have the following html code on the site: <td align="left" class="RequiredInput">File:</td> <td class="datafield"> <form name="frmMain" id="frmMain" action="upload.asp?step=2&output=1" method="post" enctype="multipart/form-data"> <input type=

Xcode 5.0 Error installing command line tools

不问归期 提交于 2019-11-28 23:17:46
问题 I just downloaded the last version for Xcode (5.0) and need it develop some Pascal codes on Lazarus. However, the installation requires me to use command line tools, which have a problem downloading. When I click install, the program sends me this error message: "Failed to install 'Command Line Tolls' An unknown error occurred. Please try again later." I have also tried using other IDEs, like lightweight, but they all require Free Pascal, which is the tool that needs command line tools. Does

Lazarus readln doesn't read the variable

只谈情不闲聊 提交于 2019-11-28 12:57:46
问题 I would like to ask for some help as i'm not able to identify what i did wrong in the following code as in the procedure , it doesn't read the first unit of the record , but after that it reads the uj.nev too. It only misses it for the first time which is what i can't understand ,and not only on the school computer but mine too. I would appreciate it if you could explain to me what i did wrong. Thanks in advance! (the program supposed to read records nev , varos , fizetes , and sort them into

Upload a file to a website programmatically?

别说谁变了你拦得住时间么 提交于 2019-11-28 05:59:43
问题 I am using Lazarus I have an app with webbrowser component on it that logs into a website loads a page as below (see html code below), and fills in different inputs. The last input is a file to upload. I would like my app to "click" Browse, select a file i want to, and Open. After that I could do a post the form OR just upload the file and carry on. 1 I have the following html code on the site: <td align="left" class="RequiredInput">File:</td> <td class="datafield"> <form name="frmMain" id=

EIdOSSLConnectError Error connecting with SSL - EOF was observed

核能气质少年 提交于 2019-11-28 05:40:32
问题 My platform is this OS X Yosemite 10.10.5 newest Indy (10.6.2.0, download 2016 March 13 - Indy10_5346.zip) Lazarus 1.4.4 Concerning OpenSSL versions I have tried: HomeBrew OpenSSL installed like this: "brew install openssl --universal" Built-in (0.9.8) OS X supplied in /usr/lib/ I am getting error: EIdOSSLConnecError Error connecting with SSL - EOF was observed that violates the protocol In file Protocols/IdSSLOpenSSLHeaders.pas at line 19418 However, as I am using newest of everything - why

Redraw image from 3d perspective to 2d

牧云@^-^@ 提交于 2019-11-27 04:31:29
I need an inverse perspective transform written in Pascal/Delphi/Lazarus. See the following image: I think I need to walk through destination pixels and then calculate the corresponding position in the source image (To avoid problems with rounding errors etc.). function redraw_3d_to_2d(sourcebitmap:tbitmap, sourceaspect:extended, point_a, point_b, point_c, point_d:tpoint, megapixelcount:integer):tbitmap; var destinationbitmap:tbitmap; x,y,sx,sy:integer; begin destinationbitmap:=tbitmap.create; destinationbitmap.width=megapixelcount*sourceaspect*???; // I dont how to calculate this

Redraw image from 3d perspective to 2d

与世无争的帅哥 提交于 2019-11-26 11:13:55
问题 I need an inverse perspective transform written in Pascal/Delphi/Lazarus. See the following image: I think I need to walk through destination pixels and then calculate the corresponding position in the source image (To avoid problems with rounding errors etc.). function redraw_3d_to_2d(sourcebitmap:tbitmap, sourceaspect:extended, point_a, point_b, point_c, point_d:tpoint, megapixelcount:integer):tbitmap; var destinationbitmap:tbitmap; x,y,sx,sy:integer; begin destinationbitmap:=tbitmap.create