Re: [fpc-pascal] Browser and exe

2017-05-26 Thread Marcos Douglas B. Santos
On Fri, May 26, 2017 at 1:27 AM, wrote: >> But I meant, how do you know if another app is already using a port >> that you want to use? > > > This is the reason I think web servers are the wrong way to go for any > desktop application (Golang is going crazy with everything

Re: [fpc-pascal] Browser and exe

2017-05-25 Thread noreply
On 2017-05-25 08:14, Marcos Douglas B. Santos wrote: On Wed, May 24, 2017 at 4:23 PM, Graeme Geldenhuys wrote: 2. How did you garantee that others applications aren't being using the same port as your application to avoind conflicts? I looked at the official

Re: [fpc-pascal] Browser and exe

2017-05-25 Thread Graeme Geldenhuys
On 2017-05-25 15:04, Marcos Douglas B. Santos wrote: In other words, use a try-except. If error, retry using another port. Yup. Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Browser and exe

2017-05-25 Thread Marcos Douglas B. Santos
On Thu, May 25, 2017 at 10:58 AM, Sven Barth via fpc-pascal wrote: >> But I meant, how do you know if another app is already using a port >> that you want to use? > > You'll get an error by the OS if someone is already listening on the > port that you want to

Re: [fpc-pascal] Browser and exe

2017-05-25 Thread Sven Barth via fpc-pascal
2017-05-25 15:14 GMT+02:00 Marcos Douglas B. Santos : > On Wed, May 24, 2017 at 4:23 PM, Graeme Geldenhuys > wrote: >>> 2. How did you garantee that others applications aren't being using >>> the same port as your application to avoind conflicts?

Re: [fpc-pascal] Browser and exe

2017-05-25 Thread Marcos Douglas B. Santos
On Wed, May 24, 2017 at 4:23 PM, Graeme Geldenhuys wrote: >> 2. How did you garantee that others applications aren't being using >> the same port as your application to avoind conflicts? > > > I looked at the official IANA list of registered port numbers and chose a

Re: [fpc-pascal] Browser and exe

2017-05-24 Thread Graeme Geldenhuys
On 2017-05-24 18:36, Marcos Douglas B. Santos wrote: I've searched the code and don't know whether that I found is the official or the more updated repository. So, I found this http://www.indyproject.org/Sockets/Download/svn.EN.aspx If I understood right, the good version to use with FPC is 10.

Re: [fpc-pascal] Browser and exe

2017-05-24 Thread Marcos Douglas B. Santos
On Wed, May 24, 2017 at 11:07 AM, Graeme Geldenhuys wrote: > n 2017-05-24 14:52, Marcos Douglas B. Santos wrote: >> >> What do you propose to use to make an embedded HTTP server nowadays? > > > I really like Indy components. They are complete and well tested for

Re: [fpc-pascal] Browser and exe

2017-05-24 Thread Graeme Geldenhuys
On 2017-05-24 14:52, Marcos Douglas B. Santos wrote: What do you propose to use to make an embedded HTTP server nowadays? I really like Indy components. They are complete and well tested for over a decade. There support is fantastic too, and you have tons of resources available on the

Re: [fpc-pascal] Browser and exe

2017-05-24 Thread Marcos Douglas B. Santos
On Wed, May 24, 2017 at 10:40 AM, Graeme Geldenhuys wrote: > I've done this before in a project for one of my previous employers. Out > desktop application did user logins, reporting and for some functionality > offloaded it to the web browser (which was launched

Re: [fpc-pascal] Browser and exe

2017-05-24 Thread Graeme Geldenhuys
On 2017-05-24 10:01, Michael Van Canneyt wrote: 2. to make an app that will be a local web server, after the user has installed. The web real app could make requests to http//localhost and have a communication between them. I think this is your best option. I've done this before in a project

Re: [fpc-pascal] Browser and exe

2017-05-24 Thread Marcos Douglas B. Santos
On Tue, May 23, 2017 at 11:02 PM, wrote: > On 2017-05-23 20:52, Marcos Douglas B. Santos wrote: >> ... >> I'm still thinking on these options: >> >> 1. NativeMessaging: >> https://developer.chrome.com/extensions/nativeMessaging >> >> 2. to make an app that will be a local web

Re: [fpc-pascal] Browser and exe

2017-05-24 Thread Michael Van Canneyt
On Tue, 23 May 2017, Marcos Douglas B. Santos wrote: 2. to make an app that will be a local web server, after the user has installed. The web real app could make requests to http//localhost and have a communication between them. I think this is your best option. Michael.

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread noreply
On 2017-05-23 20:52, Marcos Douglas B. Santos wrote: On Tue, May 23, 2017 at 9:29 PM, wrote: Exe is a security hazard that could barf up a person's hard drive instantly or create viruses.. I understand these security reasons and I agree, of course... But this Exe that I

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Marcos Douglas B. Santos
On Tue, May 23, 2017 at 9:29 PM, wrote: > Exe is a security hazard that could barf up a person's hard drive instantly > or create viruses.. I understand these security reasons and I agree, of course... But this Exe that I am talking about should be installed for all machines

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread noreply
On 2017-05-22 21:53, Marcos Douglas B. Santos wrote: Hi, If you have some apps or components which was written in Object Pascal and you would like to use them in Web applications (client-side, previously installed) what is the best option to choose nowadays? My users use Windows so, I thought

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Marcos Douglas B. Santos
On Tue, May 23, 2017 at 10:34 AM, Felipe Monteiro de Carvalho wrote: > On Tue, May 23, 2017 at 2:39 PM, Marcos Douglas B. Santos > wrote: >> I can't. For security reasons I need to have an app installed on client. >> Did you see my email

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Felipe Monteiro de Carvalho
On Tue, May 23, 2017 at 2:39 PM, Marcos Douglas B. Santos wrote: > I can't. For security reasons I need to have an app installed on client. > Did you see my email before, about digital signature? That is one of > these features... In this case I have no idea how it is done. But

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Marcos Douglas B. Santos
On Tue, May 23, 2017 at 8:04 AM, Felipe Monteiro de Carvalho wrote: > That's why Model-View-Controller is such a great design pattern. If > you use MVC you can simply create a new View component and keep the > Model and Controller without changes. > > You can

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Marcos Douglas B. Santos
On Tue, May 23, 2017 at 6:23 AM, leledumbo via fpc-pascal wrote: >> Is there a way to call an Exe (previously installed, no problem with that) > to interact with an Exe, working in IE and Chrome? > > Not from client side AFAIK. You'll need to create a local server

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Felipe Monteiro de Carvalho
That's why Model-View-Controller is such a great design pattern. If you use MVC you can simply create a new View component and keep the Model and Controller without changes. You can use fcl-web to write the web server: http://wiki.lazarus.freepascal.org/fcl-web You will need to rewrite the GUI

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread leledumbo via fpc-pascal
> Is there a way to call an Exe (previously installed, no problem with that) to interact with an Exe, working in IE and Chrome? Not from client side AFAIK. You'll need to create a local server side app, let that one executes the exe and response back to the client (if needed). -- View this