topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
web appication | Kajot, Silvio,<!-- m --><a class="postlink" href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/bc0c4729-e892-4871-b8f3-fcbf489f2f09.mspx?mfr=true">http://www.microsoft.com/technet/prodte ... x?mfr=true</a><!-- m --><!-- m --><a class="postlink" href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/bc0c4729-e892-4871-b8f3-fcbf489f2f09.mspx?mfr=true">http://www.microsoft.com/technet/prodte ... x?mfr=true</a><!-- m -->If you are going to use Linux, then:<!-- m --><a class="postlink" href="http://httpd.apache.org/docs/1.3/howto/cgi.html">http://httpd.apache.org/docs/1.3/howto/cgi.html</a><!-- m --> |
web appication | any samples with using Harbour/xHarbour to create CGI applications |
web appication | any samples with using Harbour/xHarbour to create CGI applications |
web appication | or Apache |
web appication | [code:5i80uwxq]#include "Simpleio.ch"
FUNCTION MAIN()
?? [Content-type: text/html]
?
? [<HTML>]
? [<HEAD>]
? [<BODY>]
? [Param = ] + GETVAR( "Param" )
? [</BODY>]
? [</HTML>]
RETURN NIL
STATIC FUNCTION GETVAR( cVar )
LOCAL nLen, nPos, nSta, nEnd
STATIC cString
IF cString = NIL
nLen = VAL( GETENV( "CONTENT_LENGTH" ) )
IF nLen > 0
cString = SPACE( nLen )
FREAD( 0, @cString, nLen )
ELSE
cString = GETENV( "QUERY_STRING" )
ENDIF
ENDIF
IF EMPTY( cString ); RETURN ""; ENDIF
nPos = AT( cVar, cString )
IF nPos != 0
nSta = nPos + LEN( cVar ) + 1
nEnd = AT( "&", SUBSTR( cString, nSta ) )
IF nEnd = 0
RETURN DECODE( SUBSTR( cString, nSta ) )
ELSE
RETURN DECODE( SUBSTR( cString, nSta, nEnd - 1 ) )
ENDIF
ELSE
RETURN ""
ENDIF
RETURN NIL
STATIC FUNCTION DECODE( cString )
LOCAL cResult := ""
LOCAL i
FOR i = 1 TO LEN( cString )
IF SUBSTR( cString, i, 1 ) = "+"
cResult += " "
ELSEIF SUBSTR( cString, i, 1 ) = "%"
cResult += HEX2CHR( SUBSTR( cString, i + 1, 2 ) )
i += 2
ELSE
cResult += SUBSTR( cString, i, 1 )
ENDIF
NEXT
RETURN cResult
STATIC FUNCTION HEX2CHR( cHex )
LOCAL cHigh := UPPER( SUBSTR( cHex, 1, 1 ) )
LOCAL cLow := UPPER( SUBSTR( cHex, 2, 1 ) )
LOCAL nHigh, nLow
IF ISDIGIT( cHigh )
nHigh = ASC( cHigh ) - 48
ELSE
nHigh = ASC( cHigh ) - 55
ENDIF
IF ISDIGIT( cLow )
nLow = ASC( cLow ) - 48
ELSE
nLow = ASC( cLow ) - 55
ENDIF
RETURN CHR( nHigh * 16 + nLow )
#include "Error.ch"
FUNCTION ERRORSYS()
ERRORBLOCK( { | e | DefError( e ) } )
RETURN NIL
STATIC FUNCTION DEFERROR( e )
DO CASE
CASE e:GenCode = EG_OPEN .AND. ( e:OsCode = 32 .OR. e:OsCode = 5 ) .AND. e:CanDefault
NETERR( .T. )
RETURN .F.
CASE e:GenCode = EG_APPENDLOCK .AND. e:CanDefault
NETERR( .T. )
RETURN .F.
OTHERWISE
ERRORMESSAGE( e )
QUIT
ENDCASE
RETURN NIL
STATIC FUNCTION ERRORMESSAGE( e )
LOCAL cMessage
LOCAL n := 3
// Start error message
cMessage = IF( e:Severity > ES_WARNING, "Error ", "Warning " )
// Add subsystem name if available
IF VALTYPE( e:SubSystem ) = "C"
cMessage += e:SubSystem
ELSE
cMessage += "???"
ENDIF
// Add subsystem's error code if available
IF VALTYPE( e:SubCode ) = "N"
cMessage += "/" + LTRIM( STR( e:SubCode ) )
ELSE
cMessage += "/???"
ENDIF
// Add error description if available
IF VALTYPE( e:Description ) = "C"
cMessage += " " + e:Description
ENDIF
// Add either filename or operation
IF !EMPTY( e:Filename )
cMessage += ": " + e:Filename
ELSEIF !EMPTY( e:Operation )
cMessage += ": " + e:Operation
ENDIF
// Add function name and line number
IF EMPTY( PROCLINE( n ) )
n++
ENDIF
cMessage += ";Function: " + PROCNAME( n ) + " Line: " + LTRIM( STR( PROCLINE( n ) ) )
?? [Content-type: text/html]
?
? [<HTML>]
? [<BODY>]
? cMessage
? [</BODY>]
? [</HTML>]
RETURN NIL[/code:5i80uwxq]EMG |
web browser control based on Microsoft Edge | Dear Antonio,
Do you think that we can expect a web browser control based on Microsoft Edge for FIVEWIN in one of the next updates?
Best regards,
Otto |
web browser control based on Microsoft Edge | Looks like we need to use WebView2.
At the moment, I am still not clear how to do it. |
web browser control based on Microsoft Edge | Dear Otto
This control has been perfectly integrated into FivEdit for a long time.
There are still issues to investigate. A matter of having a little time.
But it works very well.
In these images it is integrated as a control in a dialog of a folderex
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=24025&start=990#p235786">viewtopic.php?f=6&t=24025&start=990#p235786</a><!-- l -->
Other image ( [b:25ah4of9]with BEACON and modharbour integrated in FivEdit also[/b:25ah4of9] )
[img:25ah4of9]https://i.postimg.cc/XqhzQTKL/Fivedit115.gif[/img:25ah4of9] |
web browser control based on Microsoft Edge | Dear Cristobal,
Can we use bootstrap with this control?
Best regards,
Otto |
web browser control based on Microsoft Edge | Dear Otto
Anything: bootstrap, materialize, etc.
Any js, css, etc.
No problem, look
[img:ce271y07]https://i.postimg.cc/TwCt7pvf/FE-Web01.gif[/img:ce271y07] |
web browser control based on Microsoft Edge | Mr Cristobal
Excellent
Can you contribute this class to FWH? |
web browser control based on Microsoft Edge | Excelente amigo <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
web browser control based on Microsoft Edge | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=40694&start=15#p243342">viewtopic.php?f=3&t=40694&start=15#p243342</a><!-- l --> |
web browser control based on Microsoft Edge | Where do I find this tWebView class? |
web browser control based on Microsoft Edge | Dear Antonio, dear Cristobal,
With the Edge-based web control for FIVEWIN together with the possibility that mod harbour offers us, our language has a unique selling point.
* the complete FIVEWIN / mod harbor system can be copied from one PC to another and works.
No further settings are necessary.
The same syntax and practically the same source code on the web and on the desktop.
DBF support
I don't know of any other system that supports DBF files on the web.
I hope it will be released soon.
Best regards,
Otto |
web browser control based on Microsoft Edge | [url:3ibtdvx6]https://docs.microsoft.com/en-us/microsoft-edge/webview2/[/url:3ibtdvx6]
[url:3ibtdvx6]https://docs.microsoft.com/en-us/microsoft-edge/webview2/get-started/win32[/url:3ibtdvx6]
[url:3ibtdvx6]https://developer.microsoft.com/en-us/microsoft-edge/webview2/[/url:3ibtdvx6] |
web browser control based on Microsoft Edge | Dear Antonio,
Thank you. I know these documents. But that's something about my capabilities.
I think a C programmer is needed to implement it correctly.
Cristobal has done the work. And he told me some testing work is still necessary. Maybe in autumn, he will release the class.
Best regards,
Otto |
web browser control based on Microsoft Edge | hi,
in HMG Forum Dr. Claudio Soto have start with Webview2 Browser
[url:11powo4l]http://www.hmgforum.com/viewtopic.php?f=9&t=7012[/url:11powo4l] |
web browser control based on Microsoft Edge | Hello Jimmy, thanks for your info.
Do you think it works with Borland compiler, too?
Best regards,
Otto |
web browser control based on Microsoft Edge | Dear Otto,
It fails with Borland but compiles fine using MSVC |
web browser control based on Microsoft Edge | Dear Antonio,
Thank you.
What do we have to change if we want to use MSVC.
Can I download a FIVEWIN version where all is set up for MSVC?
This way, I could make a fresh installation on a different PC.
Best regards,
Otto |
web browser control based on Microsoft Edge | dear Otto,
all you need is to install Visual Studio Community
then go to fwh\samples and do buildh32. bat tutor01 |
web browser control based on Microsoft Edge | Antonio,
Remember to use the Harbour version for MSVC.
Otto,
I have used MSVC for my distribution builds for many years. I never have a problem with it. The reason in my mind is simple. Microsoft makes Windows, and therefore, any coding built with Microsoft Tools will be a "best fit." Using another product, like Borland, may require that developer to make significant updates to work with the new release versions of Windows, and that may not happen quickly.
I have recently created a Virtual Machine and updated my Windows 10 Pro to Windows 11 Pro Beta. I also have the beta installed for Visual Studio 2022 Community Version. I took my existing source code for my primary application, allowed Visual Studio to update the version of controls ( a single keystroke does this automatically ), and then did a clean and build. The project compiled and linked without any modification, and works perfectly.
Microsoft is making changes, and soon will start updating everyone ( with modern computers ) to Windows 11, and all of their applications will be undated also. Since most of us develop for businesses, they will want the connectivity of the latest technology to compete with their "rivals". I feel I can do that only if I stay with the most current releases of the software Microsoft releases. My personal viewpoints about the company are irrelevant. It's what most business people will buy and use.
Tim |
web browser control based on Microsoft Edge | Tim, I agree completely |
web browser control based on Microsoft Edge | Tim,
What do you use as a Resource Editor ?
Do you make your app build in 32bits or 64 bits ? |
web browser control based on Microsoft Edge | 1). I do not use a resource editor. I hand code my dialogs in the .rc file because I can get them positioned very precisely. Originally I used Borland, then Pelles but years ago I started doing it all manually. This way I have perfect alignment, and my screens are often very complex.
2) Several years ago I worked with 64 bit builds, but since the Microsoft Office apps were still only 32 bit, and there were "cautions" about 64 bit apps, I didn't do it then. Also, there were some FWH capabilities not in 64 bit. Perhaps one of the biggest problems was that one 3rd party app, my spell checker, made no improvements, but offered a 64 bit build of their library at a ridiculous price, and I wasn't willing to pay it. I didn't find another spell checker, so I stuck with 32 bits. I may revisit this in the future. |
web browser control vs. localhost | Hello friends,
I am thinking a lot about how I should develop WINHOTEL further.
I thought that changing the Dialogs to HTML with the web browser control might be a good option first.
I did a few more tests, but came to the conclusion that I will go the way, sending requests to the localhost from FIVEWIN.
I think that the modules later can be reused more easily and the complexity of the program is much smaller.
What are pros and cons for web browser control and what for localhost.
I am very much interested in your thoughts.
Best regards,
Otto |
web browser control vs. localhost | Dear friends,
Here you see a first test.
Best regards,
Otto
[img:39nauvnq]https://mybergland.com/fwforum/localhost1.gif[/img:39nauvnq] |
web browser control vs. localhost | Apache:
Setting the ServerName property in httpd.conf fixed the delays when calling localhost the first time.
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
ServerName 127.0.0.1:80
I have to do more tests.
[url:2tqmcxhw]https://serverfault.com/questions/66347/why-is-the-response-on-localhost-so-slow[/url:2tqmcxhw] |
web browser control vs. localhost | [img:367dx1x3]https://mybergland.com/fwforum/googlemaps.gif[/img:367dx1x3] |
web enabled application | Dear all,
I need to convert an already FWH application to web enbled application . Please guide me to the fastest way to download the application as web application becuse it will be shared between users over net .
Thanks |
web enabled application | Ehab,
Web VNC:
<!-- m --><a class="postlink" href="http://www.s-code.com/products/viewerx/webvnc.aspx?menu=webvnc">http://www.s-code.com/products/viewerx/ ... enu=webvnc</a><!-- m --> |
web enabled application | Ehab,
Citrix:
<!-- m --><a class="postlink" href="http://www.citrix.com/English/ps2/demo.asp#top">http://www.citrix.com/English/ps2/demo.asp#top</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.citrix.com/site/resources/dynamic/additional/demos/xd_enduser/xd_enduser.html">http://www.citrix.com/site/resources/dy ... duser.html</a><!-- m --> |
web page in a dialog | Hi,I want a web page in a dialog, as Activex example but without using Activex, as I have experienced some errors in some cases, where it hangs up the app, for example in some PCs using Vista Service Pack 1.Thank you. |
web page in a dialog | [quote="MOISES":3tfsrhbv]I want a web page in a dialog, as Activex example but without using Activex, as I have experienced some errors in some cases, where it hangs up the app, for example in some PCs using Vista Service Pack 1.
[/quote:3tfsrhbv]Just tested here with Vista SP1 and works as expected. Can you show a reduced sample that shows your error?Patrick |
web page in a dialog | very simple code:// ---------------------------------------------------------------------------FUNCTION NavegadorWeb( cTituloVentana, cServidor, cParametros ) LOCAL oDlg, oActiveX, lSave := .F. DEFINE DIALOG oDlg RESOURCE "NAVEGADORWEB" TITLE cTituloVentana REDEFINE ACTIVEX oActiveX ID 201 OF oDlg PROGID "Shell.Explorer" REDEFINE BUTTON ID 101 OF oDlg ACTION( oActiveX:Do( "ExecWB", 6, 1 ) ) REDEFINE BUTTON ID 102 OF oDlg ACTION( lSave := .T., oDlg:End() ) REDEFINE BUTTON ID 103 OF oDlg ACTION( Ayuda() ) ACTIVATE DIALOG oDlg CENTERED ; ON INIT oActiveX:Do( "Navigate2", cServidor + cParametros )Return nil// --------------------------------------------------------------------------- |
web page titel | Hello,
I use a 2nd hash for the web page name.
[code=fw:343g0dag]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> hWebPageName: = <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">function</span> main<br />...<br /> hWebPageName <span style="color: #000000;">[</span><span style="color: #ff0000;">"datakunden: exec: brief"</span><span style="color: #000000;">]</span> = <span style="color: #ff0000;">"QRCode Notes"</span><br /> hWebPageName <span style="color: #000000;">[</span><span style="color: #ff0000;">"landing"</span><span style="color: #000000;">]</span> = <span style="color: #ff0000;">"Langing Page Generator"</span><br /> hWebPageName <span style="color: #000000;">[</span><span style="color: #ff0000;">"landingpage: exec: edit"</span><span style="color: #000000;">]</span> = <span style="color: #ff0000;">"Setup switch landing page"</span><br /> </div>[/code:343g0dag]
Inside ROUTER I read the hash value:
[code=fw:343g0dag]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> router <span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />...<br />cWebPageName: = hb_HGetDef <span style="color: #000000;">(</span>hWebPageName, hashkey, <span style="color: #ff0000;">'home'</span><span style="color: #000000;">)</span></div>[/code:343g0dag]
Web Page Name is displayed in the body.view.
<a id="title" class="navbar-brand mr-auto" style="color:white;padding-left:30px;"> {{WebPageName ()}} </a>
<script>
$ (document) .ready (function () {
document.getElementById ('title'). innerHTML = '{{WebPageName ()}}';
});
</script>
[img:343g0dag]https://mybergland.com/fwforum/webpagename.gif[/img:343g0dag] |
web programming | Dear Antonio,
where do we find information about "views" and structured programming applied
to HTML.
Are there rules how to format the source code.
Thank you in advance
Otto |
web programming | Dear Otto,
This is the basic structure for a HTML page:
[color=#00BF00:r6yumo8v]<html>[/color:r6yumo8v]
[color=#0040FF:r6yumo8v]<head>[/color:r6yumo8v]
[color=#0040FF:r6yumo8v]</head>[/color:r6yumo8v]
[color=#BF4040:r6yumo8v]<body>[/color:r6yumo8v]
[color=#BF4040:r6yumo8v]</body>[/color:r6yumo8v]
[color=#00BF00:r6yumo8v]</html>[/color:r6yumo8v]
So our [b:r6yumo8v]default.view[/b:r6yumo8v] using mod_harbour is going to be:
default.view
[code=fw:r6yumo8v]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span><span style="color: #000000;">{</span>View<span style="color: #000000;">(</span><span style="color: #ff0000;">"head"</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span><br /><span style="color: #000000;">{</span><span style="color: #000000;">{</span>View<span style="color: #000000;">(</span><span style="color: #ff0000;">"body"</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span><br /> </div>[/code:r6yumo8v]
As mod_harbour is able to build [b:r6yumo8v]"nested"[/b:r6yumo8v] views, now we need to define [b:r6yumo8v]head.view[/b:r6yumo8v] and [b:r6yumo8v]body.view[/b:r6yumo8v]
head.view
[code=fw:r6yumo8v]<div class="fw" id="{CB}" style="font-family: monospace;"><html><br /><head><br /></head><br /> </div>[/code:r6yumo8v]
body.view
[code=fw:r6yumo8v]<div class="fw" id="{CB}" style="font-family: monospace;"><body><br /></body><br /></html><br /> </div>[/code:r6yumo8v]
From mod_harbour we do:
View( "default" )
And mod_harbour will put all the parts together. Now lets say we want to have a menu and a browse:
body.view
[code=fw:r6yumo8v]<div class="fw" id="{CB}" style="font-family: monospace;"><body><br /><span style="color: #000000;">{</span><span style="color: #000000;">{</span>View<span style="color: #000000;">(</span><span style="color: #ff0000;">"menu"</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span><br /><span style="color: #000000;">{</span><span style="color: #000000;">{</span>View<span style="color: #000000;">(</span><span style="color: #ff0000;">"browse"</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span><br /></body><br /></html><br /> </div>[/code:r6yumo8v]
Now we create a [b:r6yumo8v]menu.view[/b:r6yumo8v] and a [b:r6yumo8v]browse.view[/b:r6yumo8v]
This way all the complexity of a HTML page (lots of tags, very easy to make a mistake) is structured in small and easy to manage views
This is the beauty and the power of using mod_harbour [b:r6yumo8v]Views engine[/b:r6yumo8v] <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
web programming | Hi Antonio ,
I know little bit JSP how it works in the JSP we can AJAX to call URL and the web server execute the relevant code for the given URL.
How we can co-relate the functionality int he mod_harbour ? Could you please provide some examples ?
Thanks
Shridhar |
web programming | Dear Antonio,
would you be so kind to post the source code corresponding to the description too.
I mean the folder containing the files.
Do we call this project?
Best regards
Otto |
web programming | Dear Antonio,
{{View("browse")}}
is this the same as
include('browse.view')
Best regards
Otto |
web programming | Otto,
function View() is a very powerful engine to manage views "recursively". It is not the same as include.
This function will become part of mod_harbour soon... (once we decide if "/views/" should be a parameter also, and if "view" should be hardcoded or not...)
[code=fw:1pw91mv4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> View<span style="color: #000000;">(</span> cName <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cData<br /><br /> <span style="color: #00C800;">if</span> File<span style="color: #000000;">(</span> hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/views/"</span> + cName + <span style="color: #ff0000;">".view"</span> <span style="color: #000000;">)</span><br /> cData = MemoRead<span style="color: #000000;">(</span> hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/views/"</span> + cName + <span style="color: #ff0000;">".view"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">while</span> ReplaceBlocks<span style="color: #000000;">(</span> @cData, <span style="color: #ff0000;">"{{"</span>, <span style="color: #ff0000;">"}}"</span> <span style="color: #000000;">)</span><br /> end<br /> <span style="color: #00C800;">else</span><br /> cData = <span style="color: #ff0000;">"<h2>"</span> + cName + <span style="color: #ff0000;">" not found!</h2>"</span> <br /> <span style="color: #00C800;">endif</span> <br /><br /><span style="color: #00C800;">return</span> cData</div>[/code:1pw91mv4] |
web programming | Antonio,
could you please continue the lesson for us from this tread? |
web programming | Dear Antonio,
I see on TWeb that we can have
<%prg
return Harbour code
%>
in views.
Is this withour TView class possible.
Best regards
Otto |
web server | Hola Antonio:
¿Tienes pensado actualizar la clase Webs erver?. Muchas gracias,
Un saludo, |
web service | Buenas tardes
Me gustaría saber si algún colega puede hacer un ejemplo de acceso al servicio web basado en alguno de estos ejemplos para xharbour.
El objetivo será permitir el envío de facturas de servicios al servicio web.
[code=fw:7jexazbf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />LibCurl<br /><br />CURL *hnd = curl_easy_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br />curl_easy_setopt<span style="color: #000000;">(</span>hnd, CURLOPT_CUSTOMREQUEST, <span style="color: #ff0000;">"POST"</span><span style="color: #000000;">)</span>;<br />curl_easy_setopt<span style="color: #000000;">(</span>hnd, CURLOPT_URL,<br /><span style="color: #ff0000;">"http://ws.prefeituradeatibaia.com.br/WSNfses/nfseresources/ws/v2/emissao/simula"</span><span style="color: #000000;">)</span>;<br />struct curl_slist *headers = <span style="color: #00C800;">NULL</span>;<br />headers = curl_slist_append<span style="color: #000000;">(</span>headers, <span style="color: #ff0000;">"postman-token: 26e44762-e741-d9bc-d1e4-200f018ad85f"</span><span style="color: #000000;">)</span>;<br />headers = curl_slist_append<span style="color: #000000;">(</span>headers, <span style="color: #ff0000;">"cache-control: no-cache"</span><span style="color: #000000;">)</span>;<br />headers = curl_slist_append<span style="color: #000000;">(</span>headers, <span style="color: #ff0000;">"content-type: application/xml"</span><span style="color: #000000;">)</span>;<br />headers = curl_slist_append<span style="color: #000000;">(</span>headers, <span style="color: #ff0000;">"authorization: 999991-2EU2TPWLJBP2H57HL605K24778989PPP"</span><span style="color: #000000;">)</span>;<br />curl_easy_setopt<span style="color: #000000;">(</span>hnd, CURLOPT_HTTPHEADER, headers<span style="color: #000000;">)</span>;<br />curl_easy_setopt<span style="color: #000000;">(</span>hnd, CURLOPT_POSTFIELDS, <span style="color: #ff0000;">" XML A SER ENVIADO"</span><span style="color: #000000;">)</span>;<br />CURLcode ret = curl_easy_perform<span style="color: #000000;">(</span>hnd<span style="color: #000000;">)</span>;<br /><br /><br />cURL<br />curl -X POST \<br /> http:<span style="color: #B900B9;">//ws.prefeituradeatibaia.com.br/WSNfses/nfseresources/ws/v2/emissao/simula \</span><br /> -H <span style="color: #ff0000;">'authorization: 999991-2EU2TPWLJBP2H57HL605K24778989PPP'</span> \<br /> -H <span style="color: #ff0000;">'cache-control: no-cache'</span> \<br /> -H <span style="color: #ff0000;">'content-type: application/xml'</span> \<br /> -H <span style="color: #ff0000;">'postman-token: 25a25272-851b-1763-f96f-6ac0017ad209'</span> \<br /> -d <span style="color: #ff0000;">' XML A SER ENVIADO'</span><br /><br /><br /> C# Sharp<br /><span style="color: #0000ff;">var</span> <span style="color: #00C800;">client</span> = <span style="color: #00C800;">new</span> RestClient<span style="color: #000000;">(</span><span style="color: #ff0000;">"http://ws.prefeituradeatibaia.com.br/WSNfses/nfseresources/ws/v2/emissao/simula"</span><span style="color: #000000;">)</span>;<br /><span style="color: #0000ff;">var</span> request = <span style="color: #00C800;">new</span> RestRequest<span style="color: #000000;">(</span><span style="color: #00C800;">Method</span>.POST<span style="color: #000000;">)</span>;<br />request.AddHeader<span style="color: #000000;">(</span><span style="color: #ff0000;">"postman-token"</span>, <span style="color: #ff0000;">"f6645f63-84a0-36b8-0e37-b26a359830ae"</span><span style="color: #000000;">)</span>;<br />request.AddHeader<span style="color: #000000;">(</span><span style="color: #ff0000;">"cache-control"</span>, <span style="color: #ff0000;">"no-cache"</span><span style="color: #000000;">)</span>;<br />request.AddHeader<span style="color: #000000;">(</span><span style="color: #ff0000;">"content-type"</span>, <span style="color: #ff0000;">"application/xml"</span><span style="color: #000000;">)</span>;<br />request.AddHeader<span style="color: #000000;">(</span><span style="color: #ff0000;">"authorization"</span>, <span style="color: #ff0000;">"999991-2EU2TPWLJBP2H57HL605K24778989PPP"</span><span style="color: #000000;">)</span>;<br />request.AddParameter<span style="color: #000000;">(</span><span style="color: #ff0000;">"application/xml"</span>, <span style="color: #ff0000;">" XML A SER<br /><br /></span></div>[/code:7jexazbf] |
web service | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=40441&sid=47eb79eeaf215e51a07a18e93a97b38c#p241499">viewtopic.php?f=3&t=40441&sid=47eb79eeaf215e51a07a18e93a97b38c#p241499</a><!-- l --> |
web services | Se puede usar web services en fivewin de alguna forma?
Para la factura electrónica y conexión al organismo tributario. en caso de Peru SUNAT.
Vean este video de alguien que hizo en visual basic, la pregunta es se puede hacer lo mismo con fivewin - harbour?
<!-- m --><a class="postlink" href="https://www.youtube.com/watch?v=Bt9BypUUFk4">https://www.youtube.com/watch?v=Bt9BypUUFk4</a><!-- m -->
<!-- m --><a class="postlink" href="https://www.youtube.com/watch?v=nOetWhX962c">https://www.youtube.com/watch?v=nOetWhX962c</a><!-- m --> |
web services | Mira si te sirve
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=30989&p=178733#p178709">viewtopic.php?f=6&t=30989&p=178733#p178709</a><!-- l -->
Saludos |
web services and fwhx | Hello,
I need to use web services to obtain data from Uruguay State and send data to it.
As I know nothing about web services, I would like to get some information about it and how to work with web servers with fwhx.
I will appreciate any help about this topic.
Thanks in advance. |
web services desde FWPPC | Es posible utilizar web services desde FWPPC ?
estoy ihtentando esto:
[code=fw:1yiig326]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oSoap := Mcs_OleObj<span style="color: #000000;">(</span><span style="color: #ff0000;">"MSSOAP.SoapClient30"</span><span style="color: #000000;">)</span><br /> </div>[/code:1yiig326]
pero parece que no se reconoce Mcs_OleObj, me marca el error:
x.obj : error LNK2001: unresolved external symbol HB_FUN_MCS_OLEOBJ
Algun ejemplo de como puedo utilizar SOAP desde FWPPC?
Saludos! |
web services desde FWPPC | Arturo,
Prueba a usar este código:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=87473#p87473">viewtopic.php?p=87473#p87473</a><!-- l -->
y cambia Mcs_OleObj( ... ) por CreateObject( ... ) |
web services desde FWPPC | Gracias Antonio.
Lo voy a probar.
Saludos! |
web services from FWPPC | Do sombody know if is posible the use of web services from FWPPC ?
Im first trying this:
[code=fw:2el557um]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oSoap := Mcs_OleObj<span style="color: #000000;">(</span><span style="color: #ff0000;">"MSSOAP.SoapClient30"</span><span style="color: #000000;">)</span><br /> </div>[/code:2el557um]
but Mcs_OleObj appears "not available":
x.obj : error LNK2001: unresolved external symbol HB_FUN_MCS_OLEOBJ
Any idea of how can we use SOAP from FWPPC?
Saludos! |
web services from FWPPC | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=93405#p93405">viewtopic.php?p=93405#p93405</a><!-- l --> |
webapp y signatur | Hola,
Estoy realizando algunas pruebas de la nueva funcionalidad WebApp, añadiendo en el say la posibilidad de escritura con el ratón (samples\signatur.prg), o con el dedo en caso de pantallas táctiles.
En el momento que se convierte en HTML, ya no funciona.
En los crecimientos y revisiones de webapp, no os olvidéis de dar la posibilidad de escritura táctil. |
webapp y signatur | Estimado Fernando,
gracias por el recordatorio
saludos |
webbrowser control | As the FW-browser is limited in design I thought of using a web browser control for showing data.
Is this posible?
This is what I want to do:
[url]www.atzwanger.com/rechnung.jpg
[/url]
I think with html you could have a better design.
Thanks in advance Otto |
webbrowser control | Otto,
As far as I know, the new browse from Hernan supports multiple lines per row. You may ask him at <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> |
webbrowser control | Antonio:
The old ones version (version 15 for example) has multiline too, you only have to use a line height big enough and use +CRLF+ in the field specification.
aBrw:nLineHeight:= 29
From wbrowse.prg:
//38) Las Lineas, Footers y Headers, soportan MULTILINE, que esta dado por
// la separacion CRLF de la cadena respectiva. Se ajusta a centrado vertical,
// salvo que su alto supere el alto de celda, entoces, se ajustar al borde
// superior de celda.
// The lines, footers and headers supports multiline, using the CRLF separator with the character line. It adjusts centered vertically. If the height of the line is bigger than the cell height then it is adjusted to the top border of the cell.
Regards |
webbrowser control | Daniel,
Thanks for the info. |
webbrowser control | Thank you for your answer. As you can see on the jpg I did a multiline with FW. But the problem is:
In multiline all the rows do have the same high if you have a row with only 1 textrow the high is the same as a row has with8 textrows.
You can not have an other font for the different text lines with in a row.
Regards
Otto
PS:
If I remember well you could do all that with #5 grid - but I can't use a component which is not longer supported. Are there plans somewhere to update and remarket #C.
I have had a look into the old examples from 1999 !!!!!! and we had much more possibilities than with the actual browse. |
webcam | can I link with two or four webcam into a program with the thefull class
I have a red i can link with IP address...
I wanted create a dialog with four webcam control : it is possible ? |
webcam | Mira si és esto... No te comprendo perfecto.
<!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=608">http://www.fivewin.com.br/exibedicas.asp?id=608</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=543">http://www.fivewin.com.br/exibedicas.asp?id=543</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=402">http://www.fivewin.com.br/exibedicas.asp?id=402</a><!-- m -->
Regards, saludos. |
webcam | thank But I want insert 4 webcam into a window ... |
webcam | Silvio
You need create a small webcam capture service with webcam32.prg and install in other machines.
The machines will be capture images and save in a especific directory, ex: c:\webcams\01, c:\webcams\02, c:\webcams\03.
In the app with four bitmaps, you insert a refresh and load bitmaps in c:\webcams\01, c:\webcams\02, c:\webcams\03.
Or if your webcam works with a multicapture board, you can setup the outpu to pictures names numbered webcam1.jpg, webcam2.jpg, webcam3.jpg and show it in the dialog with bitmap controls. |
webcam | CAN YOU SEND A SMALL TEST FOR IT
i WANTED ANIMATION FOR EACH WEBCAM...
i CAN INSERT 4 CAM ON 4 ip DIFFERENT
CAN i CALL ALL THEM IN A PROGRAM ? |
webcam | Silvio
I'n not have a example but this code can help you:
See the line:
oCapture := TCapCapture():New( [b:fsh1wdpn]25,25,320,240[/b:fsh1wdpn], oWnd , 0)
You can create other objects, just add new coords to new object
oCapture1 := TCapCapture():New( [b:fsh1wdpn]25,25,320,240[/b:fsh1wdpn], oWnd , 0)
oCapture2 := TCapCapture():New( [b:fsh1wdpn]350,300,320,240[/b:fsh1wdpn], oWnd , 0)
I can use [url=http://www.freedownloadscenter.com/Network_and_Internet/Internet_Client_Suites/Virtual_Camera.html:fsh1wdpn]VirtualCamera[/url:fsh1wdpn] for test with this example.
[code:fsh1wdpn]
/*
Example the class TCapCapture for Fivewin
(c)2003 by Rafa Carmona( Thefull )
Software under Licencia GPL. http://www.gnu.org para saber mas.
( Tiene la misma exception que [x]Harbour )
*/
#INCLUDE "Fivewin.CH"
Function Main()
Local a,x
Local oWnd, oCapture, nRate := 10, oMenu, nFrames := 15
LOCAL aDrivers
LOCAL i
MENU oMenu
MENUITEM "FramesPerSec" ACTION ( MsgGet("Frames","Frames Per Second:",@nFrames),oCapture:FramesPerSec(nFrames) )
MENUITEM "Rate View" ACTION ( MsgGet("Rate Preview","Rate Preview:",@nRate),oCapture:PreviewRate( nRate ))
MENUITEM "Video Setup" ACTION oCapture:SetupVideo()
MENUITEM "Video Compress" ACTION oCapture:VideoCompression()
MENUITEM "Start Capture" ACTION ( oCapture:SetFile(".\pepe.avi") ,;
oCapture:StartCapture() )
MENUITEM "Stop Capture" ACTION oCapture:StopCapture()
ENDMENU
DEFINE WINDOW oWnd TITLE "Cap-Fivewin (c)2003 by Rafa Carmona(Thefull)" MENU oMenu MDI
oCapture := TCapCapture():New( 25,25,320,240, oWnd , 0)
IF oCapture:Conect()
oCapture:PreviewRate( nRate )
oCapture:Preview(.T.)
* oCapture:Overlay( .T. )
ELSE
? "No connect.... ;( "
* oWnd:End()
ENDIF
// En fase de pruebas
/*
aDrivers := WC_Capturas()
? Len( aDrivers )
for i := 1 to Len( aDrivers )
? "Driver: " + aDrivers[i][1] + " Version: " + aDrives[i][2]
next
*/
ACTIVATE WINDOW oWnd
oCapture:End()
Return NIL
/*
Implemetation Class TCapCapture for Fivewin.
(c)2003 by Rafa Carmona( Thefull )
Beta 4
*/
CLASS TCapCapture FROM TControl
CLASSDATA lRegistered AS LOGICAL
DATA hWndC
DATA nIndex INIT 0 // By Default index first found
METHOD New() CONSTRUCTOR
METHOD Conect() INLINE ConectDriver( ::hWndC, ::nIndex )
METHOD End() INLINE DisConectDriver( ::hWndC )
METHOD StartCapture() INLINE Capture( ::hWndC )
METHOD StopCapture() INLINE CaptureStop( ::hWndC )
METHOD Preview( lPreview ) INLINE CapPreview( ::hWndC, lPreview )
METHOD PreviewRate( nRate ) INLINE CapPreviewRate( ::hWndC, nRate )
METHOD PreViewScale( lScale ) INLINE CapPreviewScale( ::hWndC,lScale )
METHOD CreateWndCapture()
METHOD FileSaveAs( cFileName ) INLINE CapFileSaveAs( ::hWndC, cFilename )
METHOD SetFile( cFile ) INLINE CapFileSetCaptureFile( ::hWndC, cFile )
METHOD SetupCapture() INLINE CapCaptureSetSetup( ::hWndC )
METHOD SetupVideo() INLINE SetupVideo( ::hWndC )
METHOD Overlay( lMode ) INLINE CapOverlay( ::hWndC, lMode )
METHOD FramesPerSec( nFrames ) INLINE CapFramesPerSec( ::hWndC, nFrames )
METHOD VideoCompression() INLINE CapDlgVideoCompression( ::hWndC )
METHOD ListDrivers()
END CLASS
METHOD New( nTop, nLeft, nWidth, nHeight, oWnd , nIndex ) CLASS TCapCapture
DEFAULT nTop := 0, nLeft := 0,;
oWnd := GetWndDefault(),;
nWidth := 200,;
nHeight := 200
::nTop := nTop
::nLeft := nLeft
::nBottom = ::nTop + nHeight - 1
::nRight = ::nLeft + nWidth - 1
::nStyle = nOR( WS_CHILD, WS_VISIBLE )
::nId = ::GetNewId()
::oWnd = oWnd
::nIndex := nIndex
::Register( nOR( CS_VREDRAW, CS_HREDRAW ) )
if ! Empty( oWnd:hWnd )
::Create()
::Default()
::lVisible = .t.
oWnd:AddControl( Self )
else
oWnd:DefControl( Self )
* ::lVisible = .f.
endif
IF ::ListDrivers() > 0
::CreateWndCapture()
ELSE
?"Not found Drivers..."
ENDIF
return Self
METHOD ListDrivers() CLASS TCapCapture
Local aDrivers := CapGetDrivers() , oCombo, cItem := ""
Local oDlg
* IF Len( aDrivers ) > 1 // Si hay mas de un driver , permite seleccionarlo
* DEFINE Dialog oDlg TITLE "Select Driver Capture"
// Se produce un GPF. Adivina por que ;(
* @1,1 COMBOBOX oCombo VAR cItem ITEMS aDrivers OF oDlg SIZE 100,100 ;
*VALID ( ::nIndex := oCombo:nAt - 1,.t. )
* ACTIVATE DIALOG oDlg
* ENDIF
Return( Len( aDrivers ) )
METHOD CreateWndCapture() CLASS TCapCapture
::hWndC := CaptureWin( "My First Capture FROM FIVEH!!!", ::nStyle,;
::nTop, ::nLeft, ::nWidth, ::nHeight, ::oWnd:hWnd, ::nIndex )
RETURN SELF
/*
Implementation language C for [x]Harbour
(c)2003 by Rafa Carmona ( Thefull )
Beta 4
*/
#pragma BEGINDUMP
#include <windows.h>
#include <vfw.h>
#include "hbapi.h"
HB_FUNC( CAPTUREWIN )
{
HWND VFWAPI hVentana = capCreateCaptureWindow( hb_parc( 1 ), (DWORD) hb_parnl( 2 ),
hb_parni( 3 ) ,hb_parni( 4 ),hb_parni( 5 ),hb_parni( 6 ),
(HWND) hb_parnl( 7 ), hb_parni(8) ) ;
hb_retnl( (LONG) hVentana ) ;
}
HB_FUNC( CAPTURE )
{
hb_retl( SendMessage ( (HWND) hb_parnl( 1 ), WM_CAP_SEQUENCE, 0, 0L) );
}
HB_FUNC( CAPTURESTOP )
{
hb_retl( SendMessage ( (HWND) hb_parnl( 1 ), WM_CAP_STOP, 0, 0L) );
}
HB_FUNC( CAPCAPTURESEQUENCENOFILE )
{
hb_retl( capCaptureSequenceNoFile( (HWND) hb_parnl(1) ) );
}
HB_FUNC( CONECTDRIVER )
{
// hb_retl( SendMessage ( (HWND) hb_parnl( 1 ), WM_CAP_DRIVER_CONNECT, 0 , 0L) );
hb_retl( capDriverConnect( (HWND) hb_parnl( 1 ), hb_parni(2) ) );
}
HB_FUNC( DISCONECTDRIVER )
{
hb_retl( capDriverDisconnect( (HWND) hb_parnl( 1 ) ));
}
HB_FUNC( CAPCAPTURESETSETUP )
{
CAPTUREPARMS Capture;
hb_retl( capCaptureSetSetup( (HWND) hb_parnl( 1 ), &Capture, sizeof( CAPTUREPARMS ) ));
}
HB_FUNC( CAPGRABFRAME )
{
hb_retl( capGrabFrame( (HWND) hb_parnl( 1 ) ) );
}
HB_FUNC( CAPFILESAVEAS )
{
hb_retl( capFileSaveAs( (HWND) hb_parnl(1), hb_parc( 2 )));
}
HB_FUNC( CAPFILESETCAPTUREFILE )
{
BOOL fResult;
fResult = capFileSetCaptureFile( (HWND)hb_parnl(1), (LPSTR) hb_parc(2) );
// preallocate a file of 5 MB.
capFileAlloc( (HWND) hb_parnl(1), (1024L * 1024L * 5));
hb_retl( fResult );
}
HB_FUNC( CAPPREVIEW )
{
hb_retl( capPreview( (HWND) hb_parnl( 1 ), hb_parl( 2 ) ));
}
HB_FUNC( CAPPREVIEWSCALE )
{
hb_retl( capPreviewScale( (HWND) hb_parnl( 1 ), hb_parl( 2 ) ));
}
HB_FUNC( CAPPREVIEWRATE )
{
hb_retl( capPreviewRate( (HWND) hb_parnl( 1 ), hb_parni( 2 ) ));
}
HB_FUNC( CAPDLGVIDEOSOURCE )
{
hb_retl( capDlgVideoSource( (HWND) hb_parnl( 1 ) ) );
}
HB_FUNC( CAPDLGVIDEODISPLAY )
{
hb_retl( capDlgVideoDisplay( (HWND) hb_parnl( 1 ) ) );
}
HB_FUNC( CAPDLGVIDEOCOMPRESSION )
{
hb_retl( capDlgVideoCompression( (HWND) hb_parnl(1)) );
}
HB_FUNC( SETUPVIDEO )
{
CAPDRIVERCAPS CapDriverCaps;
CAPSTATUS CapStatus;
capDriverGetCaps( (HWND) hb_parnl( 1 ), &CapDriverCaps, sizeof (CAPDRIVERCAPS));
// Video source dialog box.
if (CapDriverCaps.fHasDlgVideoSource)
capDlgVideoSource( (HWND) hb_parnl( 1 ) );
// Video format dialog box.
if (CapDriverCaps.fHasDlgVideoFormat)
{
capDlgVideoFormat( (HWND) hb_parnl( 1 ) );
// Are there new image dimensions?
capGetStatus( (HWND) hb_parnl( 1 ), &CapStatus, sizeof (CAPSTATUS));
// New Dimensions of Window
SetWindowPos( (HWND) hb_parnl( 1 ), NULL, 0, 0, CapStatus.uiImageWidth,
CapStatus.uiImageHeight, SWP_NOZORDER | SWP_NOMOVE);
// If so, notify the parent of a size change.
}
// Video display dialog box.
if (CapDriverCaps.fHasDlgVideoDisplay)
capDlgVideoDisplay( (HWND) hb_parnl( 1 ) );
}
HB_FUNC( CAPFRAMESPERSEC ) // hWnd, framesperSec
{
CAPTUREPARMS CaptureParms;
float FramesPerSec = (FLOAT)hb_parnl( 2 );
capCaptureGetSetup( (HWND)hb_parnl(1), &CaptureParms, sizeof(CAPTUREPARMS));
CaptureParms.dwRequestMicroSecPerFrame = (DWORD) (1.0e6 / FramesPerSec);
hb_retl( capCaptureSetSetup( (HWND)hb_parnl(1), &CaptureParms, sizeof (CAPTUREPARMS)) );
}
HB_FUNC( CAPOVERLAY )
{
CAPDRIVERCAPS CapDrvCaps;
capDriverGetCaps( (HWND) hb_parnl( 1 ), &CapDrvCaps, sizeof (CAPDRIVERCAPS));
if (CapDrvCaps.fHasOverlay)
hb_retl( capOverlay( (HWND) hb_parnl( 1 ), hb_parl( 2 ) ) );
else
hb_retl( FALSE );
}
HB_FUNC( CAPGETDRIVERS )
{
char szDeviceName[80];
char szDeviceVersion[80];
int wIndex;
// Maximos dispositivos a tratar. Del 0...9
hb_reta(10);
for (wIndex = 0; wIndex < 10; wIndex++)
{
if (capGetDriverDescription (wIndex, szDeviceName,
sizeof (szDeviceName), szDeviceVersion,
sizeof (szDeviceVersion)))
{
// Append name to list of installed capture drivers
// and then let the user select a driver to use.
//MessageBox( GetActiveWindow(), szDeviceName, szDeviceVersion, MB_SYSTEMMODAL );
hb_storc( szDeviceName , -1, ( wIndex + 1 ) );
}
}
}
// Codigo por Jose Lalin en base de pruebas.
// Gracias Jose!!!
#include "hbapiitm.h"
HB_FUNC( WC_CAPTURAS )
{
// He cambiado la declaracion porque capGetDrivers necesita un puntero
// a la memoria donde almacenar szDeviceName y szDeviceVersion
LPSTR szDeviceName[80];
LPSTR szDeviceVersion[80];
int wIndex;
int wDevices;
PHB_ITEM pReturn;
for( wIndex = 0; wIndex < 10; wIndex++ )
{
if( capGetDriverDescription( wIndex, szDeviceName,
sizeof( szDeviceName ), szDeviceVersion,
sizeof( szDeviceVersion ) ) )
{
wDevices = wIndex + 1;
}
}
pReturn = hb_itemArrayNew( wDevices );
for( wIndex = 0; wIndex < wDevices ; wIndex++ )
{
if( capGetDriverDescription( wIndex, szDeviceName,
sizeof( szDeviceName ), szDeviceVersion,
sizeof( szDeviceVersion ) ) )
{
PHB_ITEM pDriver = hb_itemPutC( NULL, (char*) szDeviceName );
PHB_ITEM pVersion = hb_itemPutC( NULL, (char*) szDeviceVersion );
PHB_ITEM pSub = hb_itemArrayNew( 2 );
hb_itemArrayPut( pSub, 1, pDriver );
hb_itemArrayPut( pSub, 2, pVersion );
hb_itemRelease( pDriver );
hb_itemRelease( pVersion );
hb_itemArrayPut( pReturn, wIndex + 1, pSub );
hb_itemRelease( pSub );
}
}
hb_itemReturn( pReturn );
hb_itemRelease( pReturn );
}
#pragma ENDDUMP
[/code:fsh1wdpn] |
webcam | oCapture := TCapCapture():New( 25,25,320,240, oWnd , 0)
oCapture1 := TCapCapture():New( 350,25,320,240, oWnd , 0)
oCapture2 := TCapCapture():New( 675,25,320,240, oWnd , 0)
when I must connect a cam
I must write it for each cam
IF oCapture:Conect()
oCapture:PreviewRate( nRate )
oCapture:Preview(.T.)
* oCapture:Overlay( .T. )
ELSE
? "No connect.... ;( "
* oWnd:End()
ENDIF
How I can connect to a IP to connect each cam ?
I can explain ..
on the same pc I can use only a driver for one cam .... |
webcam | See
Configure each cam to save a file in a directory with names cam1.avi, cam2.avi, etc...
Put this code in your application:
[code:137aapj4]
oCapture:SetFile("directory\cam1.avi"); oCapture:StartCapture()
oCapture1:SetFile("directory\cam2.avi"); oCapture1:StartCapture()
oCapture2:SetFile("directory\cam3.avi"); oCapture2:StartCapture()
[/code:137aapj4]
your pc 1 have one cam saving the file cam1.avi in ?:\directory
your pc 2 have one cam saving the file cam2.avi in ?:\directory
your pc 3 have one cam saving the file cam3.avi in ?:\directory
Your application capture this files and show in defined video areas on your code:
[code:137aapj4]
oCapture := TCapCapture():New( 25,25,320,240, oWnd , 0)
oCapture1 := TCapCapture():New( 350,25,320,240, oWnd , 0)
oCapture2 := TCapCapture():New( 675,25,320,240, oWnd , 0)
[/code:137aapj4]
The example works with file and not work with IPs, sorry. |
webcam | ok but can I installed 3 or four cam into a pc or use in a pc webcam installed on other pc and use it on tcip or tsocket ?
? |
webcam | At your criteria.
The solution below use fixed files in one shared pc on a lan.
If you need use internet or intranet you can use [b:1hm35t60]stream[/b:1hm35t60], TActivex and Media Player and Windows Media Encoder.
The solution is here:
[url=http://www.robertwisbey.com/how_to_web_cam_wme.html:1hm35t60]Creating a web cam feed with WME[/url:1hm35t60]. |
webcam class does not work under Windows 10 [pending] | Hi,
samples\webcam.prg does not work under Windows 10. The cam is activated (the led turns on), but it does not capture image or video.
Thank you. |
webcam class does not work under Windows 10 [pending] | uP! |
webcam class does not work under Windows 10 [pending] | Moises, sample webcam run OK ( my computer with Windows 10 64 bits )
It is true that with some camera drivers some users have had a problem. Try another computer. |
webcam full program - source code included - | [url:35jtk8j1]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=22606[/url:35jtk8j1]
a greating;
JLL |
webcam full program - source code included - | Javier,
Many thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
We have published it in the FiveWin free contributions site:
[url:njwgkvlj]http://code.google.com/p/fivewin-contributions/downloads/detail?name=webcam.rar&can=2&q=[/url:njwgkvlj] |
webcam full program - source code included - | thanks antonio:
Check the thread for a small correction in the source.
[url:24s7wlo5]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=22606[/url:24s7wlo5]
a greating;
JLL |
webcam full program - source code included - | Already published the revised version:
[url:3vs9h4yh]http://code.google.com/p/fivewin-contributions/downloads/detail?name=webcam2.rar&can=2&q=[/url:3vs9h4yh]
Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
webmap class script error | Dear All,
I've use webmap class for many year but now it has an error with "Internet Explorer Compatible View" as picture.
Who has anyone got this problem?
[url=https://postimg.cc/K1Fps0wD:1zfhtwaq][img:1zfhtwaq]https://i.postimg.cc/YCmc0VxZ/Google-Map-Error.png[/img:1zfhtwaq][/url:1zfhtwaq] |
webserver using RESTFUL API and responsive | Hello friends,
I am working on a new project. An ANDROID APP is posting against a webserver using RESTFUL API. This work is done and fully functional.
At the moment the backend is written in SYMFONY. As I read about the “RestFul server with Harbour” I thought if it would be possible to use Harbour and FIVEWEB instead of Symfony for the WEB development.
Responsive design is a must because the ANDROID APP is used from different devices.
What do you think.
Best regards,
Otto |
webserver using RESTFUL API and responsive | Otto,
FiveWeb uses CGIs. For little amount of users it may be fine but not sure how it may behave for many users.
Can you use CGIs ? |
webserver using RESTFUL API and responsive | Dear Antonio,
thank you for your answer. Can you please tell me what number a little amount of users is.
Best regards,
Otto |
webserver using RESTFUL API and responsive | Dear Otto,
Each time a CGI is invoked (a CGI is an EXE), the server executes it. Lets imagine 20 users simultaneously invoke the CGI. It is exactly the same
as launching 20 EXEs at the same time, in terms of memory consume and loading time. More users will result in more memory and time consume.
If we use a web server instead of a CGI, for each user requirement, a new thread is created. This means much less memory and time consume.
Just an EXE is running. A single one. |
webserver using RESTFUL API and responsive | Hi Otto,
[quote="Otto":28nkm7q3]
Responsive design is a must because the ANDROID APP is used from different devices.
[/quote:28nkm7q3]
What do you mean, with responsive?
It's really necessary ? Many times the customer explains that if an application isn't responsive, it's not worth anything. |
webserver using RESTFUL API and responsive | Dear Antonio,
thank you for your answer.
I looked inside task manager of my server. My Fivewin programs consume in average 5 MB.
5 MB, 10000 user would be an amount of 50 Gigabyte.
I saw that the maximum of Windows Server 2016 Standard is 24 TB.
Is this calculation realistic.
Best regards,
Otto |
webserver using RESTFUL API and responsive | Otto,
[quote:3njm2xc3]Common Gateway Interface (CGI) requests
For performance reasons, the use of CGI applications to serve requests is not recommended with IIS. Frequently creating and deleting CGI processes involves significant overhead. Better alternatives include using ISAPI application scripts and ASP or ASP.NET scripts. Isolation is available for each of these options.[/quote:3njm2xc3]
[url:3njm2xc3]https://msdn.microsoft.com/en-us/library/windows/hardware/dn567678%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396[/url:3njm2xc3]
Probably a real life test would solve the doubts about it. Here you have a guide to use CGIs with IIS:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=171281#p171281">viewtopic.php?p=171281#p171281</a><!-- l --> |
webserver using RESTFUL API and responsive | Dear Antonio,
as you know I try to evolve the project where your son Manuel developed the ANDROID APP to scan QRCodes.
The APP is working perfect.
I know it would be the best and easiest way to let him program the rest too.
But the problem is that I have no clear ideas about the final product at the moment.
So I would prefer to develop this step by step myself.
But I am sure that this ANDOID APP could be an interface like keyboard or touchscreen for all of us Fivewinners.
Therefore I asked for help.
It is not realistic to think that at the start there will be so many users. But if we see that there are then we have also the budget for developing.
I thought if I set up an internet server we could install HARBOUR RESTFUL and I could ask Manuels company to develop a extra APP which is working against this HARBOUR internet server.
That was my idea.
Best regards,
Otto |
webserver using RESTFUL API and responsive | Otto,
[quote="Otto":2x7ykj3x]...Symfony for the WEB development.[/quote:2x7ykj3x]
Have you used simphony ? do you know php ?
C. |
webserver using RESTFUL API and responsive | Hello Carles,
no not really I am learning PHP and Symfony at the moment.
But I would prefer a Harbour/FiveWeb environment.
The Android QRCode APP is opening so many business opportunities.
Best regards,
Otto
[url:1p3lokv4]https://www.bluelounge.com/products/quick-peek[/url:1p3lokv4] |
webserver using RESTFUL API and responsive | Otto,
Look at this little code and I'm sure you understand what this can try to do. All is a bit of php and javascript.
[code=php:3784w0dd]<div class="php" id="{CB}" style="font-family: monospace;"><span style="color: #000000; font-weight: bold;"><?php</span> <br /><a href="http://www.php.net/include"><span style="color: #b1b100;">include</span></a> <span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'config.php'</span> <span style="color: #66cc66;">)</span>;<br /><a href="http://www.php.net/include"><span style="color: #b1b100;">include</span></a> <span style="color: #66cc66;">(</span> TWEB_PATH . <span style="color: #ff0000;">'core.php'</span> <span style="color: #66cc66;">)</span>;<br /><a href="http://www.php.net/include"><span style="color: #b1b100;">include</span></a> <span style="color: #66cc66;">(</span> TWEB_PATH . <span style="color: #ff0000;">'core.grid.php'</span> <span style="color: #66cc66;">)</span>;<br /><br /><a href="http://www.php.net/define"><span style="color: #000066;">define</span></a> <span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'TITLE'</span>, <span style="color: #ff0000;">'App Bussines - Movil'</span> <span style="color: #66cc66;">)</span>;<br /><br /><span style="color: #0000ff;">$oWeb</span> = <span style="color: #000000; font-weight: bold;">new</span> TWeb<span style="color: #66cc66;">(</span> TITLE <span style="color: #66cc66;">)</span>;<br /> <br /><span style="color: #0000ff;">$oWeb</span>-><span style="color: #006600;">Activate</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br /><br /><span style="color: #0000ff;">$oFont</span> = <span style="color: #000000; font-weight: bold;">new</span> TFont<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'Verdana'</span>, <span style="color: #cc66cc;">14</span>, <span style="color: #000000; font-weight: bold;">true</span>, <span style="color: #000000; font-weight: bold;">true</span>, <span style="color: #000000; font-weight: bold;">false</span>, CLR_GRAY <span style="color: #66cc66;">)</span>;<br /><br /> <span style="color: #0000ff;">$oWnd</span> = <span style="color: #000000; font-weight: bold;">new</span> TWindow<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'main'</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #ff0000;">'100%'</span>, <span style="color: #ff0000;">'100%'</span> <span style="color: #66cc66;">)</span>;<br /> <br /> <span style="color: #0000ff;">$oPanel</span> = <span style="color: #000000; font-weight: bold;">new</span> TPanel<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oWnd</span>, <span style="color: #ff0000;">'main_A'</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #ff0000;">'100%'</span>, <span style="color: #cc66cc;">25</span>, CLR_BLACK <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oImg</span> = <span style="color: #000000; font-weight: bold;">new</span> TImage<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oPanel</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #cc66cc;">5</span>, <span style="color: #cc66cc;">5</span> , <span style="color: #ff0000;">'images/about.png'</span>, <span style="color: #cc66cc;">16</span>, <span style="color: #cc66cc;">16</span> <span style="color: #66cc66;">)</span>; <br /> <span style="color: #0000ff;">$oSay</span> = <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oPanel</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">30</span>, <span style="color: #ff0000;">'App Bussiness'</span> <span style="color: #66cc66;">)</span>; <br /> <span style="color: #0000ff;">$oSay</span>-><span style="color: #006600;">SetFont</span><span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oFont</span> <span style="color: #66cc66;">)</span>; <br /> <br /> <span style="color: #0000ff;">$oPanel</span> = <span style="color: #000000; font-weight: bold;">new</span> TPanel<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oWnd</span>, <span style="color: #ff0000;">'main_B'</span>, <span style="color: #cc66cc;">25</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #ff0000;">'100%'</span>, <span style="color: #ff0000;">'100%'</span>, CLR_HGRAY <span style="color: #66cc66;">)</span>; <br /> <br /> <span style="color: #0000ff;">$oBar</span> = <span style="color: #000000; font-weight: bold;">new</span> TBar<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oPanel</span>, <span style="color: #ff0000;">'mybtnbar'</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oBar</span>-><span style="color: #006600;">nBtnWidth</span> = <span style="color: #cc66cc;">100</span>;<br /> <span style="color: #0000ff;">$oBar</span>-><span style="color: #006600;">AddButton</span><span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'btn1'</span>, <span style="color: #ff0000;">'Consulta'</span> , <span style="color: #ff0000;">'Consulta()'</span> , <span style="color: #ff0000;">'images/db.png'</span> <span style="color: #66cc66;">)</span>;<br /> <br /> <span style="color: #0000ff;">$oImg</span> = <span style="color: #000000; font-weight: bold;">new</span> TImage<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oPanel</span>, <span style="color: #ff0000;">'photo'</span>, <span style="color: #cc66cc;">97</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #ff0000;">''</span>, <span style="color: #cc66cc;">120</span>, <span style="color: #cc66cc;">150</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oImg</span>-><span style="color: #006600;">lZoom</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br /> <span style="color: #0000ff;">$oImg</span>-><span style="color: #006600;">SetBorderInset</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oImg</span>-><span style="color: #006600;">SetRight</span><span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">120</span> <span style="color: #66cc66;">)</span>;<br /><br /> <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oPanel</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #cc66cc;">60</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #ff0000;">'Id.'</span>, <span style="color: #cc66cc;">100</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oGet</span> = <span style="color: #000000; font-weight: bold;">new</span> TGet<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oPanel</span>, <span style="color: #ff0000;">'my_id'</span>, <span style="color: #cc66cc;">60</span>, <span style="color: #cc66cc;">80</span>, <span style="color: #ff0000;">'1'</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oGet</span>-><span style="color: #006600;">SetRight</span><span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">140</span> <span style="color: #66cc66;">)</span>; <br /><br /> <span style="color: #0000ff;">$o</span> = <span style="color: #000000; font-weight: bold;">new</span> TGroup<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oPanel</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #cc66cc;">90</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #ff0000;">'Datos Personales'</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">160</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$o</span>-><span style="color: #006600;">SetRight</span><span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">140</span> <span style="color: #66cc66;">)</span>;<br /><br /> <span style="color: #0000ff;">$oSay</span> = <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$o</span>, <span style="color: #ff0000;">'first'</span> , <span style="color: #cc66cc;">30</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #ff0000;">''</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oSay</span>-><span style="color: #006600;">lBorder</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br /> <span style="color: #0000ff;">$oSay</span>-><span style="color: #006600;">SetRight</span><span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">)</span>;<br /> <br /> <span style="color: #0000ff;">$oSay</span> = <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$o</span>, <span style="color: #ff0000;">'last'</span> , <span style="color: #cc66cc;">60</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #ff0000;">''</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oSay</span>-><span style="color: #006600;">lBorder</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br /> <span style="color: #0000ff;">$oSay</span>-><span style="color: #006600;">SetRight</span><span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">)</span>; <br /><br /> <span style="color: #0000ff;">$oSay</span> = <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$o</span>, <span style="color: #ff0000;">'street'</span> , <span style="color: #cc66cc;">90</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #ff0000;">''</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oSay</span>-><span style="color: #006600;">lBorder</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br /> <span style="color: #0000ff;">$oSay</span>-><span style="color: #006600;">SetRight</span><span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">)</span>;<br /><br /> <span style="color: #0000ff;">$oSay</span> = <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$o</span>, <span style="color: #ff0000;">'city'</span> , <span style="color: #cc66cc;">120</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #ff0000;">''</span>, <span style="color: #cc66cc;">120</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oSay</span>-><span style="color: #006600;">lBorder</span> = <span style="color: #000000; font-weight: bold;">true</span>; <br /><br /> <span style="color: #0000ff;">$oSay</span> = <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$o</span>, <span style="color: #ff0000;">'state'</span> , <span style="color: #cc66cc;">120</span>, <span style="color: #cc66cc;">140</span>, <span style="color: #ff0000;">''</span>, <span style="color: #cc66cc;">40</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oSay</span>-><span style="color: #006600;">lBorder</span> = <span style="color: #000000; font-weight: bold;">true</span>; <br /> <span style="color: #0000ff;">$oSay</span>-><span style="color: #006600;">cAlign</span> = <span style="color: #ff0000;">'center'</span>;<br /><br /> <span style="color: #0000ff;">$oGrid</span> = <span style="color: #000000; font-weight: bold;">new</span> TGrid<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oWnd</span>, <span style="color: #ff0000;">'mygrid'</span>, <span style="color: #cc66cc;">280</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">350</span>, <span style="color: #cc66cc;">500</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oGrid</span>-><span style="color: #006600;">SetRight</span><span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oGrid</span>-><span style="color: #006600;">SetBottom</span><span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">60</span> <span style="color: #66cc66;">)</span>;<br /> <br /> <span style="color: #0000ff;">$oCol</span> = <span style="color: #0000ff;">$oGrid</span>-><span style="color: #006600;">AddCol</span><span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'fecha'</span> , <span style="color: #ff0000;">'Fecha'</span> , <span style="color: #cc66cc;">100</span> <span style="color: #66cc66;">)</span>; <br /> <span style="color: #0000ff;">$oCol</span> = <span style="color: #0000ff;">$oGrid</span>-><span style="color: #006600;">AddCol</span><span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'service'</span> , <span style="color: #ff0000;">'Servicio'</span> , <span style="color: #cc66cc;">150</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oCol</span> = <span style="color: #0000ff;">$oGrid</span>-><span style="color: #006600;">AddCol</span><span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'total'</span> , <span style="color: #ff0000;">'Total'</span> , <span style="color: #cc66cc;">100</span> <span style="color: #66cc66;">)</span>; <br /> <br /> <span style="color: #0000ff;">$o</span> = <span style="color: #000000; font-weight: bold;">new</span> TBar<span style="color: #66cc66;">(</span> <span style="color: #0000ff;">$oWnd</span>, <span style="color: #ff0000;">'mybtnbar'</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$o</span>-><span style="color: #006600;">SetBottom</span><span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oBtn</span> = <span style="color: #0000ff;">$o</span>-><span style="color: #006600;">AddButton</span><span style="color: #66cc66;">(</span> <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #ff0000;">'Info'</span> , <span style="color: #ff0000;">"Info()"</span>, <span style="color: #ff0000;">'images/info.png'</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #0000ff;">$oBtn</span>-><span style="color: #006600;">cAlign</span> = <span style="color: #ff0000;">'right'</span>; <br /> <br /> <span style="color: #0000ff;">$oWnd</span>-><span style="color: #006600;">Activate</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br /> <br /><span style="color: #0000ff;">$oWeb</span>-><span style="color: #006600;">End</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>; <br /><span style="color: #000000; font-weight: bold;">?></span><br /><script><br /><br /> <span style="color: #000000; font-weight: bold;">function</span> Consulta<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br /> <br /> Reset_Data<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br /> <br /> <span style="color: #000000; font-weight: bold;">var</span> o = <span style="color: #000000; font-weight: bold;">new</span> TControl<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>; <br /> <br /> <span style="color: #000000; font-weight: bold;">var</span> oParam = <span style="color: #000000; font-weight: bold;">new</span> Object<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span><br /> oParam<span style="color: #66cc66;">[</span> <span style="color: #ff0000;">'accion'</span><span style="color: #66cc66;">]</span> = <span style="color: #ff0000;">'refresh'</span><br /> oParam<span style="color: #66cc66;">[</span> <span style="color: #ff0000;">'id'</span> <span style="color: #66cc66;">]</span> = o.Get<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'my_id'</span> <span style="color: #66cc66;">)</span><br /> <br /> MsgServer<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'srv_app_movil.php'</span>, Escucha_Consulta, oParam <span style="color: #66cc66;">)</span> <br /> <span style="color: #66cc66;">}</span><br /> <br /> <span style="color: #000000; font-weight: bold;">function</span> Escucha_Consulta<span style="color: #66cc66;">(</span> dat <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br /><br /> <span style="color: #000000; font-weight: bold;">var</span> o = <span style="color: #000000; font-weight: bold;">new</span> TControl<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br /> <br /> <a href="http://www.php.net/if"><span style="color: #b1b100;">if</span></a> <span style="color: #66cc66;">(</span> dat.cab <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span> <br /> <br /> <span style="color: #000000; font-weight: bold;">var</span> o = <span style="color: #000000; font-weight: bold;">new</span> TControl<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br /> <br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'my_id'</span> , dat.cab.id <span style="color: #66cc66;">)</span><br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'first'</span> , dat.cab.first <span style="color: #66cc66;">)</span><br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'last'</span> , dat.cab.last <span style="color: #66cc66;">)</span><br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'street'</span> , dat.cab.street <span style="color: #66cc66;">)</span><br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'city'</span> , dat.cab.city <span style="color: #66cc66;">)</span><br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'state'</span> , dat.cab.state <span style="color: #66cc66;">)</span> <br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'photo'</span> , <span style="color: #ff0000;">'images/data.img/'</span> + dat.cab.photo, <span style="color: #ff0000;">'images/data.img/'</span> + dat.cab.photo <span style="color: #66cc66;">)</span> <br /> <br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'mygrid'</span>, dat.<a href="http://www.php.net/pos"><span style="color: #000066;">pos</span></a> <span style="color: #66cc66;">)</span>; <br /> <br /> <span style="color: #66cc66;">}</span> <a href="http://www.php.net/else"><span style="color: #b1b100;">else</span></a> <span style="color: #66cc66;">{</span><br /> <br /> MsgNotify<span style="color: #66cc66;">(</span> dat.msg, <span style="color: #ff0000;">'error'</span> <span style="color: #66cc66;">)</span> <br /> <span style="color: #66cc66;">}</span> <br /> <span style="color: #66cc66;">}</span><br /> <br /> <br /> <span style="color: #000000; font-weight: bold;">function</span> Reset_Data<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br /> <br /> <span style="color: #000000; font-weight: bold;">var</span> o = <span style="color: #000000; font-weight: bold;">new</span> TControl<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br /><br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'first'</span> <span style="color: #66cc66;">)</span>;<br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'last'</span> <span style="color: #66cc66;">)</span>;<br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'street'</span> <span style="color: #66cc66;">)</span>;<br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'city'</span> <span style="color: #66cc66;">)</span>;<br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'state'</span> <span style="color: #66cc66;">)</span>;<br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'photo'</span> <span style="color: #66cc66;">)</span>;<br /> o.Set<span style="color: #66cc66;">(</span> <span style="color: #ff0000;">'mygrid'</span> <span style="color: #66cc66;">)</span>;<br /> <span style="color: #66cc66;">}</span><br /> <br /> <span style="color: #000000; font-weight: bold;">function</span> Info<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">{</span> <br /> <br /> <span style="color: #000000; font-weight: bold;">var</span> oOptions = <span style="color: #000000; font-weight: bold;">new</span> Object<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br /> oOptions<span style="color: #66cc66;">[</span> <span style="color: #ff0000;">'title'</span> <span style="color: #66cc66;">]</span> = <span style="color: #ff0000;">'Información...'</span>;<br /> oOptions<span style="color: #66cc66;">[</span> <span style="color: #ff0000;">'centered'</span> <span style="color: #66cc66;">]</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br /> oOptions<span style="color: #66cc66;">[</span> <span style="color: #ff0000;">'modal'</span> <span style="color: #66cc66;">]</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br /> oOptions<span style="color: #66cc66;">[</span> <span style="color: #ff0000;">'resizable'</span> <span style="color: #66cc66;">]</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br /> oOptions<span style="color: #66cc66;">[</span> <span style="color: #ff0000;">'closeOnEscape'</span><span style="color: #66cc66;">]</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br /> oOptions<span style="color: #66cc66;">[</span> <span style="color: #ff0000;">'dialogextend'</span><span style="color: #66cc66;">]</span> = <span style="color: #000000; font-weight: bold;">false</span>; <br /> <br /> TLoadDialog<span style="color: #66cc66;">(</span> <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #ff0000;">'tuto_app_version.php'</span>, <span style="color: #000000; font-weight: bold;">null</span>, oOptions <span style="color: #66cc66;">)</span> <br /> <span style="color: #66cc66;">}</span> <br /> <br /><span style="color: #000000; font-weight: bold;"></script></span></div>[/code:3784w0dd]
I think it's a very clean code, do you agree ? <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Now I would like to run this little code from your Android phone with the following url:
[url:3784w0dd]http://itarraco.com/tweb.examples/tuto_app_movil_4.php[/url:3784w0dd]
We are a species that always find solutions to our needs. I propose one of them... |
webserver using RESTFUL API and responsive | Dear Otto,
I understand what you mean <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Please review this guide I wrote to use CGIs from Windows server:
viewtopic.php?p=171281#p171281
Once you review and apply those settings, we will try to run a Harbour EXE as a CGI. From there on, you can use Harbour (+ FiveWeb)
to build the server side and we will see how it behaves for your needs.
Carles advise could help you to simplify all very much, in case that you want to try php. |
webserver using RESTFUL API and responsive | Dear Antonio,
thank you for your help. I will study your guide.
Please let me show you what I have so far.
As I said qr code reading is only an input device like the keyboard or touch. With this input device we have unlimited possibilities to develop commercial
APPs.
Here a little example for finding things you’ve packed quicker and easier
Managing my repair parts for my label printer
1. take a preprinted QRCode ( for e.g. Intern_1 ) label and attach it on your storage box or were you need the info in my case on the printer itself.
2. Take pictures of the box and I take also pictures of the article numbers
3. Store the pictures in a webpage – I use Wordpress
4. now you can scan with your smartphone the qrcode and you see the webpage with the stored pictures
One thing you have to do is to define in your software – like a DNS server – to which link the qr code label links.
Here I use a FIVEWIN SQL xBrowse.
That is all.
Best regards,
Otto
[img:5933ena0]http://www.atzwanger-software.com/fw/qrscan.jpg[/img:5933ena0]
[img:5933ena0]http://www.atzwanger-software.com/fw/qrscan2.jpg[/img:5933ena0]
[img:5933ena0]http://www.atzwanger-software.com/fw/FW_SQL_remote_browser.jpg[/img:5933ena0]
[img:5933ena0]http://www.atzwanger-software.com/fw/FW_SQL_remote_browser_edit.jpg[/img:5933ena0] |
webserver using RESTFUL API and responsive | Otto,
What info will you send to the server ?
Just a string ? |
webserver using RESTFUL API and responsive | Dear Antonio,
KIBU APP sends handy ID and the content of the QR code.
Best regards,
Otto |
webserver using RESTFUL API and responsive | Dear Antonio,
at the moment I have following situation:
a scan is posted through QRCode APP.
Depending on the content Symfony sends following answers:
If a user is not known to the system you get the thankYou.
If there is a rule existing the link of the rule is called.
If a QRCode starts with a certain code the Symfony intern webpage is responding.
All the qrcodes are stored in the MySQL database.
I have set up a WINDOWS server with a fixed IP in my office.
Maybe we could setup a Habour RESTFUL server there and test if we get it working.
Only I never did it and do not know where to start.
Best regards,
Otto
app/Resources/views/default/
app/Resources/views/mails/
app/Resources/views/qrcodelanding/
app/Resources/views/qrcoderules/
app/Resources/views/thankYou/
app/Resources/views/user/
app/Resources/views/base.html.twig |
webserver using RESTFUL API and responsive | Kibu/FW qrcode - to see what is inside.
Best regards,
Otto
[url:2oub024u]http://www.atzwanger-software.com/fw/ToSeewhatisinside.html[/url:2oub024u] |
webserver using RESTFUL API and responsive | Otto, link not run for me |
webserver using RESTFUL API and responsive | Dear Cristobal,
[url:k65bwuxn]https://youtu.be/G7B7MRqdSl0[/url:k65bwuxn]
I uploaded the file to YouTube.
Best regards,
Otto |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.