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&#46;ch" FUNCTION MAIN&#40;&#41; ?? &#91;Content-type&#58; text/html&#93; ? ? &#91;<HTML>&#93; ? &#91;<HEAD>&#93; ? &#91;<BODY>&#93; ? &#91;Param = &#93; + GETVAR&#40; "Param" &#41; ? &#91;</BODY>&#93; ? &#91;</HTML>&#93; RETURN NIL STATIC FUNCTION GETVAR&#40; cVar &#41; LOCAL nLen, nPos, nSta, nEnd STATIC cString IF cString = NIL nLen = VAL&#40; GETENV&#40; "CONTENT_LENGTH" &#41; &#41; IF nLen > 0 cString = SPACE&#40; nLen &#41; FREAD&#40; 0, @cString, nLen &#41; ELSE cString = GETENV&#40; "QUERY_STRING" &#41; ENDIF ENDIF IF EMPTY&#40; cString &#41;; RETURN ""; ENDIF nPos = AT&#40; cVar, cString &#41; IF nPos != 0 nSta = nPos + LEN&#40; cVar &#41; + 1 nEnd = AT&#40; "&", SUBSTR&#40; cString, nSta &#41; &#41; IF nEnd = 0 RETURN DECODE&#40; SUBSTR&#40; cString, nSta &#41; &#41; ELSE RETURN DECODE&#40; SUBSTR&#40; cString, nSta, nEnd - 1 &#41; &#41; ENDIF ELSE RETURN "" ENDIF RETURN NIL STATIC FUNCTION DECODE&#40; cString &#41; LOCAL cResult &#58;= "" LOCAL i FOR i = 1 TO LEN&#40; cString &#41; IF SUBSTR&#40; cString, i, 1 &#41; = "+" cResult += " " ELSEIF SUBSTR&#40; cString, i, 1 &#41; = "%" cResult += HEX2CHR&#40; SUBSTR&#40; cString, i + 1, 2 &#41; &#41; i += 2 ELSE cResult += SUBSTR&#40; cString, i, 1 &#41; ENDIF NEXT RETURN cResult STATIC FUNCTION HEX2CHR&#40; cHex &#41; LOCAL cHigh &#58;= UPPER&#40; SUBSTR&#40; cHex, 1, 1 &#41; &#41; LOCAL cLow &#58;= UPPER&#40; SUBSTR&#40; cHex, 2, 1 &#41; &#41; LOCAL nHigh, nLow IF ISDIGIT&#40; cHigh &#41; nHigh = ASC&#40; cHigh &#41; - 48 ELSE nHigh = ASC&#40; cHigh &#41; - 55 ENDIF IF ISDIGIT&#40; cLow &#41; nLow = ASC&#40; cLow &#41; - 48 ELSE nLow = ASC&#40; cLow &#41; - 55 ENDIF RETURN CHR&#40; nHigh * 16 + nLow &#41; #include "Error&#46;ch" FUNCTION ERRORSYS&#40;&#41; ERRORBLOCK&#40; &#123; | e | DefError&#40; e &#41; &#125; &#41; RETURN NIL STATIC FUNCTION DEFERROR&#40; e &#41; DO CASE CASE e&#58;GenCode = EG_OPEN &#46;AND&#46; &#40; e&#58;OsCode = 32 &#46;OR&#46; e&#58;OsCode = 5 &#41; &#46;AND&#46; e&#58;CanDefault NETERR&#40; &#46;T&#46; &#41; RETURN &#46;F&#46; CASE e&#58;GenCode = EG_APPENDLOCK &#46;AND&#46; e&#58;CanDefault NETERR&#40; &#46;T&#46; &#41; RETURN &#46;F&#46; OTHERWISE ERRORMESSAGE&#40; e &#41; QUIT ENDCASE RETURN NIL STATIC FUNCTION ERRORMESSAGE&#40; e &#41; LOCAL cMessage LOCAL n &#58;= 3 // Start error message cMessage = IF&#40; e&#58;Severity > ES_WARNING, "Error ", "Warning " &#41; // Add subsystem name if available IF VALTYPE&#40; e&#58;SubSystem &#41; = "C" cMessage += e&#58;SubSystem ELSE cMessage += "???" ENDIF // Add subsystem's error code if available IF VALTYPE&#40; e&#58;SubCode &#41; = "N" cMessage += "/" + LTRIM&#40; STR&#40; e&#58;SubCode &#41; &#41; ELSE cMessage += "/???" ENDIF // Add error description if available IF VALTYPE&#40; e&#58;Description &#41; = "C" cMessage += " " + e&#58;Description ENDIF // Add either filename or operation IF !EMPTY&#40; e&#58;Filename &#41; cMessage += "&#58; " + e&#58;Filename ELSEIF !EMPTY&#40; e&#58;Operation &#41; cMessage += "&#58; " + e&#58;Operation ENDIF // Add function name and line number IF EMPTY&#40; PROCLINE&#40; n &#41; &#41; n++ ENDIF cMessage += ";Function&#58; " + PROCNAME&#40; n &#41; + " Line&#58; " + LTRIM&#40; STR&#40; PROCLINE&#40; n &#41; &#41; &#41; ?? &#91;Content-type&#58; text/html&#93; ? ? &#91;<HTML>&#93; ? &#91;<BODY>&#93; ? cMessage ? &#91;</BODY>&#93; ? &#91;</HTML>&#93; 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&#58;//i&#46;postimg&#46;cc/XqhzQTKL/Fivedit115&#46;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&#58;//i&#46;postimg&#46;cc/TwCt7pvf/FE-Web01&#46;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&#58;//docs&#46;microsoft&#46;com/en-us/microsoft-edge/webview2/[/url:3ibtdvx6] [url:3ibtdvx6]https&#58;//docs&#46;microsoft&#46;com/en-us/microsoft-edge/webview2/get-started/win32[/url:3ibtdvx6] [url:3ibtdvx6]https&#58;//developer&#46;microsoft&#46;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&#58;//www&#46;hmgforum&#46;com/viewtopic&#46;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&#58;//mybergland&#46;com/fwforum/localhost1&#46;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&#58;//serverfault&#46;com/questions/66347/why-is-the-response-on-localhost-so-slow[/url:2tqmcxhw]
web browser control vs. localhost
[img:367dx1x3]https&#58;//mybergland&#46;com/fwforum/googlemaps&#46;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&#058;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&#058;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;">&#123;</span>=><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">function</span> main<br />...<br />  hWebPageName <span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"datakunden: exec: brief"</span><span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">"QRCode Notes"</span><br />  hWebPageName <span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"landing"</span><span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">"Langing Page Generator"</span><br />  hWebPageName <span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"landingpage: exec: edit"</span><span style="color: #000000;">&#93;</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;">&#40;</span><span style="color: #000000;">&#41;</span><br />...<br />cWebPageName: = hb_HGetDef <span style="color: #000000;">&#40;</span>hWebPageName, hashkey, <span style="color: #ff0000;">'home'</span><span style="color: #000000;">&#41;</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&#58;//mybergland&#46;com/fwforum/webpagename&#46;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;">&#123;</span><span style="color: #000000;">&#123;</span>View<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"head"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span>View<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"body"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</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;">&#123;</span><span style="color: #000000;">&#123;</span>View<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"menu"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span>View<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"browse"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /></body><br /></html><br />&nbsp;</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;">&#40;</span> cName <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cData<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> File<span style="color: #000000;">&#40;</span> hb_GetEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"/views/"</span> + cName + <span style="color: #ff0000;">".view"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cData = MemoRead<span style="color: #000000;">&#40;</span> hb_GetEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"/views/"</span> + cName + <span style="color: #ff0000;">".view"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">while</span> ReplaceBlocks<span style="color: #000000;">&#40;</span> @cData, <span style="color: #ff0000;">"{{"</span>, <span style="color: #ff0000;">"}}"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; cData = <span style="color: #ff0000;">"<h2>"</span> + cName + <span style="color: #ff0000;">" not found!</h2>"</span> <br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span> &nbsp; &nbsp;<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;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />curl_easy_setopt<span style="color: #000000;">&#40;</span>hnd, CURLOPT_CUSTOMREQUEST, <span style="color: #ff0000;">"POST"</span><span style="color: #000000;">&#41;</span>;<br />curl_easy_setopt<span style="color: #000000;">&#40;</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;">&#41;</span>;<br />struct curl_slist *headers = <span style="color: #00C800;">NULL</span>;<br />headers = curl_slist_append<span style="color: #000000;">&#40;</span>headers, <span style="color: #ff0000;">"postman-token: 26e44762-e741-d9bc-d1e4-200f018ad85f"</span><span style="color: #000000;">&#41;</span>;<br />headers = curl_slist_append<span style="color: #000000;">&#40;</span>headers, <span style="color: #ff0000;">"cache-control: no-cache"</span><span style="color: #000000;">&#41;</span>;<br />headers = curl_slist_append<span style="color: #000000;">&#40;</span>headers, <span style="color: #ff0000;">"content-type: application/xml"</span><span style="color: #000000;">&#41;</span>;<br />headers = curl_slist_append<span style="color: #000000;">&#40;</span>headers, <span style="color: #ff0000;">"authorization: 999991-2EU2TPWLJBP2H57HL605K24778989PPP"</span><span style="color: #000000;">&#41;</span>;<br />curl_easy_setopt<span style="color: #000000;">&#40;</span>hnd, CURLOPT_HTTPHEADER, headers<span style="color: #000000;">&#41;</span>;<br />curl_easy_setopt<span style="color: #000000;">&#40;</span>hnd, CURLOPT_POSTFIELDS, <span style="color: #ff0000;">" XML A SER ENVIADO"</span><span style="color: #000000;">&#41;</span>;<br />CURLcode ret = curl_easy_perform<span style="color: #000000;">&#40;</span>hnd<span style="color: #000000;">&#41;</span>;<br /><br /><br />cURL<br />curl -X POST \<br />&nbsp;http:<span style="color: #B900B9;">//ws.prefeituradeatibaia.com.br/WSNfses/nfseresources/ws/v2/emissao/simula \</span><br />&nbsp;-H <span style="color: #ff0000;">'authorization: 999991-2EU2TPWLJBP2H57HL605K24778989PPP'</span> \<br />&nbsp;-H <span style="color: #ff0000;">'cache-control: no-cache'</span> \<br />&nbsp;-H <span style="color: #ff0000;">'content-type: application/xml'</span> \<br />&nbsp;-H <span style="color: #ff0000;">'postman-token: 25a25272-851b-1763-f96f-6ac0017ad209'</span> \<br />&nbsp;-d <span style="color: #ff0000;">' XML A SER ENVIADO'</span><br /><br /><br />&nbsp;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;">&#40;</span><span style="color: #ff0000;">"http://ws.prefeituradeatibaia.com.br/WSNfses/nfseresources/ws/v2/emissao/simula"</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #0000ff;">var</span> request = <span style="color: #00C800;">new</span> RestRequest<span style="color: #000000;">&#40;</span><span style="color: #00C800;">Method</span>.POST<span style="color: #000000;">&#41;</span>;<br />request.AddHeader<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"postman-token"</span>, <span style="color: #ff0000;">"f6645f63-84a0-36b8-0e37-b26a359830ae"</span><span style="color: #000000;">&#41;</span>;<br />request.AddHeader<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"cache-control"</span>, <span style="color: #ff0000;">"no-cache"</span><span style="color: #000000;">&#41;</span>;<br />request.AddHeader<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"content-type"</span>, <span style="color: #ff0000;">"application/xml"</span><span style="color: #000000;">&#41;</span>;<br />request.AddHeader<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"authorization"</span>, <span style="color: #ff0000;">"999991-2EU2TPWLJBP2H57HL605K24778989PPP"</span><span style="color: #000000;">&#41;</span>;<br />request.AddParameter<span style="color: #000000;">&#40;</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;">&#40;</span><span style="color: #ff0000;">"MSSOAP.SoapClient30"</span><span style="color: #000000;">&#41;</span><br />&nbsp;</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;">&#40;</span><span style="color: #ff0000;">"MSSOAP.SoapClient30"</span><span style="color: #000000;">&#41;</span><br />&nbsp;</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&#58;//www&#46;freedownloadscenter&#46;com/Network_and_Internet/Internet_Client_Suites/Virtual_Camera&#46;html:fsh1wdpn]VirtualCamera[/url:fsh1wdpn] for test with this example. [code:fsh1wdpn] /* Example the class TCapCapture for Fivewin &#40;c&#41;2003 by Rafa Carmona&#40; Thefull &#41; Software under Licencia GPL&#46; http&#58;//www&#46;gnu&#46;org para saber mas&#46; &#40; Tiene la misma exception que &#91;x&#93;Harbour &#41; */ #INCLUDE "Fivewin&#46;CH" Function Main&#40;&#41; Local a,x Local oWnd, oCapture, nRate &#58;= 10, oMenu, nFrames &#58;= 15 LOCAL aDrivers LOCAL i MENU oMenu MENUITEM "FramesPerSec" ACTION &#40; MsgGet&#40;"Frames","Frames Per Second&#58;",@nFrames&#41;,oCapture&#58;FramesPerSec&#40;nFrames&#41; &#41; MENUITEM "Rate View" ACTION &#40; MsgGet&#40;"Rate Preview","Rate Preview&#58;",@nRate&#41;,oCapture&#58;PreviewRate&#40; nRate &#41;&#41; MENUITEM "Video Setup" ACTION oCapture&#58;SetupVideo&#40;&#41; MENUITEM "Video Compress" ACTION oCapture&#58;VideoCompression&#40;&#41; MENUITEM "Start Capture" ACTION &#40; oCapture&#58;SetFile&#40;"&#46;\pepe&#46;avi"&#41; ,; oCapture&#58;StartCapture&#40;&#41; &#41; MENUITEM "Stop Capture" ACTION oCapture&#58;StopCapture&#40;&#41; ENDMENU DEFINE WINDOW oWnd TITLE "Cap-Fivewin &#40;c&#41;2003 by Rafa Carmona&#40;Thefull&#41;" MENU oMenu MDI oCapture &#58;= TCapCapture&#40;&#41;&#58;New&#40; 25,25,320,240, oWnd , 0&#41; IF oCapture&#58;Conect&#40;&#41; oCapture&#58;PreviewRate&#40; nRate &#41; oCapture&#58;Preview&#40;&#46;T&#46;&#41; * oCapture&#58;Overlay&#40; &#46;T&#46; &#41; ELSE ? "No connect&#46;&#46;&#46;&#46; ;&#40; " * oWnd&#58;End&#40;&#41; ENDIF // En fase de pruebas /* aDrivers &#58;= WC_Capturas&#40;&#41; ? Len&#40; aDrivers &#41; for i &#58;= 1 to Len&#40; aDrivers &#41; ? "Driver&#58; " + aDrivers&#91;i&#93;&#91;1&#93; + " Version&#58; " + aDrives&#91;i&#93;&#91;2&#93; next */ ACTIVATE WINDOW oWnd oCapture&#58;End&#40;&#41; Return NIL /* Implemetation Class TCapCapture for Fivewin&#46; &#40;c&#41;2003 by Rafa Carmona&#40; Thefull &#41; Beta 4 */ CLASS TCapCapture FROM TControl CLASSDATA lRegistered AS LOGICAL DATA hWndC DATA nIndex INIT 0 // By Default index first found METHOD New&#40;&#41; CONSTRUCTOR METHOD Conect&#40;&#41; INLINE ConectDriver&#40; &#58;&#58;hWndC, &#58;&#58;nIndex &#41; METHOD End&#40;&#41; INLINE DisConectDriver&#40; &#58;&#58;hWndC &#41; METHOD StartCapture&#40;&#41; INLINE Capture&#40; &#58;&#58;hWndC &#41; METHOD StopCapture&#40;&#41; INLINE CaptureStop&#40; &#58;&#58;hWndC &#41; METHOD Preview&#40; lPreview &#41; INLINE CapPreview&#40; &#58;&#58;hWndC, lPreview &#41; METHOD PreviewRate&#40; nRate &#41; INLINE CapPreviewRate&#40; &#58;&#58;hWndC, nRate &#41; METHOD PreViewScale&#40; lScale &#41; INLINE CapPreviewScale&#40; &#58;&#58;hWndC,lScale &#41; METHOD CreateWndCapture&#40;&#41; METHOD FileSaveAs&#40; cFileName &#41; INLINE CapFileSaveAs&#40; &#58;&#58;hWndC, cFilename &#41; METHOD SetFile&#40; cFile &#41; INLINE CapFileSetCaptureFile&#40; &#58;&#58;hWndC, cFile &#41; METHOD SetupCapture&#40;&#41; INLINE CapCaptureSetSetup&#40; &#58;&#58;hWndC &#41; METHOD SetupVideo&#40;&#41; INLINE SetupVideo&#40; &#58;&#58;hWndC &#41; METHOD Overlay&#40; lMode &#41; INLINE CapOverlay&#40; &#58;&#58;hWndC, lMode &#41; METHOD FramesPerSec&#40; nFrames &#41; INLINE CapFramesPerSec&#40; &#58;&#58;hWndC, nFrames &#41; METHOD VideoCompression&#40;&#41; INLINE CapDlgVideoCompression&#40; &#58;&#58;hWndC &#41; METHOD ListDrivers&#40;&#41; END CLASS METHOD New&#40; nTop, nLeft, nWidth, nHeight, oWnd , nIndex &#41; CLASS TCapCapture DEFAULT nTop &#58;= 0, nLeft &#58;= 0,; oWnd &#58;= GetWndDefault&#40;&#41;,; nWidth &#58;= 200,; nHeight &#58;= 200 &#58;&#58;nTop &#58;= nTop &#58;&#58;nLeft &#58;= nLeft &#58;&#58;nBottom = &#58;&#58;nTop + nHeight - 1 &#58;&#58;nRight = &#58;&#58;nLeft + nWidth - 1 &#58;&#58;nStyle = nOR&#40; WS_CHILD, WS_VISIBLE &#41; &#58;&#58;nId = &#58;&#58;GetNewId&#40;&#41; &#58;&#58;oWnd = oWnd &#58;&#58;nIndex &#58;= nIndex &#58;&#58;Register&#40; nOR&#40; CS_VREDRAW, CS_HREDRAW &#41; &#41; if ! Empty&#40; oWnd&#58;hWnd &#41; &#58;&#58;Create&#40;&#41; &#58;&#58;Default&#40;&#41; &#58;&#58;lVisible = &#46;t&#46; oWnd&#58;AddControl&#40; Self &#41; else oWnd&#58;DefControl&#40; Self &#41; * &#58;&#58;lVisible = &#46;f&#46; endif IF &#58;&#58;ListDrivers&#40;&#41; > 0 &#58;&#58;CreateWndCapture&#40;&#41; ELSE ?"Not found Drivers&#46;&#46;&#46;" ENDIF return Self METHOD ListDrivers&#40;&#41; CLASS TCapCapture Local aDrivers &#58;= CapGetDrivers&#40;&#41; , oCombo, cItem &#58;= "" Local oDlg * IF Len&#40; aDrivers &#41; > 1 // Si hay mas de un driver , permite seleccionarlo * DEFINE Dialog oDlg TITLE "Select Driver Capture" // Se produce un GPF&#46; Adivina por que ;&#40; * @1,1 COMBOBOX oCombo VAR cItem ITEMS aDrivers OF oDlg SIZE 100,100 ; *VALID &#40; &#58;&#58;nIndex &#58;= oCombo&#58;nAt - 1,&#46;t&#46; &#41; * ACTIVATE DIALOG oDlg * ENDIF Return&#40; Len&#40; aDrivers &#41; &#41; METHOD CreateWndCapture&#40;&#41; CLASS TCapCapture &#58;&#58;hWndC &#58;= CaptureWin&#40; "My First Capture FROM FIVEH!!!", &#58;&#58;nStyle,; &#58;&#58;nTop, &#58;&#58;nLeft, &#58;&#58;nWidth, &#58;&#58;nHeight, &#58;&#58;oWnd&#58;hWnd, &#58;&#58;nIndex &#41; RETURN SELF /* Implementation language C for &#91;x&#93;Harbour &#40;c&#41;2003 by Rafa Carmona &#40; Thefull &#41; Beta 4 */ #pragma BEGINDUMP #include <windows&#46;h> #include <vfw&#46;h> #include "hbapi&#46;h" HB_FUNC&#40; CAPTUREWIN &#41; &#123; HWND VFWAPI hVentana = capCreateCaptureWindow&#40; hb_parc&#40; 1 &#41;, &#40;DWORD&#41; hb_parnl&#40; 2 &#41;, hb_parni&#40; 3 &#41; ,hb_parni&#40; 4 &#41;,hb_parni&#40; 5 &#41;,hb_parni&#40; 6 &#41;, &#40;HWND&#41; hb_parnl&#40; 7 &#41;, hb_parni&#40;8&#41; &#41; ; hb_retnl&#40; &#40;LONG&#41; hVentana &#41; ; &#125; HB_FUNC&#40; CAPTURE &#41; &#123; hb_retl&#40; SendMessage &#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, WM_CAP_SEQUENCE, 0, 0L&#41; &#41;; &#125; HB_FUNC&#40; CAPTURESTOP &#41; &#123; hb_retl&#40; SendMessage &#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, WM_CAP_STOP, 0, 0L&#41; &#41;; &#125; HB_FUNC&#40; CAPCAPTURESEQUENCENOFILE &#41; &#123; hb_retl&#40; capCaptureSequenceNoFile&#40; &#40;HWND&#41; hb_parnl&#40;1&#41; &#41; &#41;; &#125; HB_FUNC&#40; CONECTDRIVER &#41; &#123; // hb_retl&#40; SendMessage &#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, WM_CAP_DRIVER_CONNECT, 0 , 0L&#41; &#41;; hb_retl&#40; capDriverConnect&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, hb_parni&#40;2&#41; &#41; &#41;; &#125; HB_FUNC&#40; DISCONECTDRIVER &#41; &#123; hb_retl&#40; capDriverDisconnect&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41; &#41;&#41;; &#125; HB_FUNC&#40; CAPCAPTURESETSETUP &#41; &#123; CAPTUREPARMS Capture; hb_retl&#40; capCaptureSetSetup&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, &Capture, sizeof&#40; CAPTUREPARMS &#41; &#41;&#41;; &#125; HB_FUNC&#40; CAPGRABFRAME &#41; &#123; hb_retl&#40; capGrabFrame&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41; &#41; &#41;; &#125; HB_FUNC&#40; CAPFILESAVEAS &#41; &#123; hb_retl&#40; capFileSaveAs&#40; &#40;HWND&#41; hb_parnl&#40;1&#41;, hb_parc&#40; 2 &#41;&#41;&#41;; &#125; HB_FUNC&#40; CAPFILESETCAPTUREFILE &#41; &#123; BOOL fResult; fResult = capFileSetCaptureFile&#40; &#40;HWND&#41;hb_parnl&#40;1&#41;, &#40;LPSTR&#41; hb_parc&#40;2&#41; &#41;; // preallocate a file of 5 MB&#46; capFileAlloc&#40; &#40;HWND&#41; hb_parnl&#40;1&#41;, &#40;1024L * 1024L * 5&#41;&#41;; hb_retl&#40; fResult &#41;; &#125; HB_FUNC&#40; CAPPREVIEW &#41; &#123; hb_retl&#40; capPreview&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, hb_parl&#40; 2 &#41; &#41;&#41;; &#125; HB_FUNC&#40; CAPPREVIEWSCALE &#41; &#123; hb_retl&#40; capPreviewScale&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, hb_parl&#40; 2 &#41; &#41;&#41;; &#125; HB_FUNC&#40; CAPPREVIEWRATE &#41; &#123; hb_retl&#40; capPreviewRate&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, hb_parni&#40; 2 &#41; &#41;&#41;; &#125; HB_FUNC&#40; CAPDLGVIDEOSOURCE &#41; &#123; hb_retl&#40; capDlgVideoSource&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41; &#41; &#41;; &#125; HB_FUNC&#40; CAPDLGVIDEODISPLAY &#41; &#123; hb_retl&#40; capDlgVideoDisplay&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41; &#41; &#41;; &#125; HB_FUNC&#40; CAPDLGVIDEOCOMPRESSION &#41; &#123; hb_retl&#40; capDlgVideoCompression&#40; &#40;HWND&#41; hb_parnl&#40;1&#41;&#41; &#41;; &#125; HB_FUNC&#40; SETUPVIDEO &#41; &#123; CAPDRIVERCAPS CapDriverCaps; CAPSTATUS CapStatus; capDriverGetCaps&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, &CapDriverCaps, sizeof &#40;CAPDRIVERCAPS&#41;&#41;; // Video source dialog box&#46; if &#40;CapDriverCaps&#46;fHasDlgVideoSource&#41; capDlgVideoSource&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41; &#41;; // Video format dialog box&#46; if &#40;CapDriverCaps&#46;fHasDlgVideoFormat&#41; &#123; capDlgVideoFormat&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41; &#41;; // Are there new image dimensions? capGetStatus&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, &CapStatus, sizeof &#40;CAPSTATUS&#41;&#41;; // New Dimensions of Window SetWindowPos&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, NULL, 0, 0, CapStatus&#46;uiImageWidth, CapStatus&#46;uiImageHeight, SWP_NOZORDER | SWP_NOMOVE&#41;; // If so, notify the parent of a size change&#46; &#125; // Video display dialog box&#46; if &#40;CapDriverCaps&#46;fHasDlgVideoDisplay&#41; capDlgVideoDisplay&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41; &#41;; &#125; HB_FUNC&#40; CAPFRAMESPERSEC &#41; // hWnd, framesperSec &#123; CAPTUREPARMS CaptureParms; float FramesPerSec = &#40;FLOAT&#41;hb_parnl&#40; 2 &#41;; capCaptureGetSetup&#40; &#40;HWND&#41;hb_parnl&#40;1&#41;, &CaptureParms, sizeof&#40;CAPTUREPARMS&#41;&#41;; CaptureParms&#46;dwRequestMicroSecPerFrame = &#40;DWORD&#41; &#40;1&#46;0e6 / FramesPerSec&#41;; hb_retl&#40; capCaptureSetSetup&#40; &#40;HWND&#41;hb_parnl&#40;1&#41;, &CaptureParms, sizeof &#40;CAPTUREPARMS&#41;&#41; &#41;; &#125; HB_FUNC&#40; CAPOVERLAY &#41; &#123; CAPDRIVERCAPS CapDrvCaps; capDriverGetCaps&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, &CapDrvCaps, sizeof &#40;CAPDRIVERCAPS&#41;&#41;; if &#40;CapDrvCaps&#46;fHasOverlay&#41; hb_retl&#40; capOverlay&#40; &#40;HWND&#41; hb_parnl&#40; 1 &#41;, hb_parl&#40; 2 &#41; &#41; &#41;; else hb_retl&#40; FALSE &#41;; &#125; HB_FUNC&#40; CAPGETDRIVERS &#41; &#123; char szDeviceName&#91;80&#93;; char szDeviceVersion&#91;80&#93;; int wIndex; // Maximos dispositivos a tratar&#46; Del 0&#46;&#46;&#46;9 hb_reta&#40;10&#41;; for &#40;wIndex = 0; wIndex < 10; wIndex++&#41; &#123; if &#40;capGetDriverDescription &#40;wIndex, szDeviceName, sizeof &#40;szDeviceName&#41;, szDeviceVersion, sizeof &#40;szDeviceVersion&#41;&#41;&#41; &#123; // Append name to list of installed capture drivers // and then let the user select a driver to use&#46; //MessageBox&#40; GetActiveWindow&#40;&#41;, szDeviceName, szDeviceVersion, MB_SYSTEMMODAL &#41;; hb_storc&#40; szDeviceName , -1, &#40; wIndex + 1 &#41; &#41;; &#125; &#125; &#125; // Codigo por Jose Lalin en base de pruebas&#46; // Gracias Jose!!! #include "hbapiitm&#46;h" HB_FUNC&#40; WC_CAPTURAS &#41; &#123; // He cambiado la declaracion porque capGetDrivers necesita un puntero // a la memoria donde almacenar szDeviceName y szDeviceVersion LPSTR szDeviceName&#91;80&#93;; LPSTR szDeviceVersion&#91;80&#93;; int wIndex; int wDevices; PHB_ITEM pReturn; for&#40; wIndex = 0; wIndex < 10; wIndex++ &#41; &#123; if&#40; capGetDriverDescription&#40; wIndex, szDeviceName, sizeof&#40; szDeviceName &#41;, szDeviceVersion, sizeof&#40; szDeviceVersion &#41; &#41; &#41; &#123; wDevices = wIndex + 1; &#125; &#125; pReturn = hb_itemArrayNew&#40; wDevices &#41;; for&#40; wIndex = 0; wIndex < wDevices ; wIndex++ &#41; &#123; if&#40; capGetDriverDescription&#40; wIndex, szDeviceName, sizeof&#40; szDeviceName &#41;, szDeviceVersion, sizeof&#40; szDeviceVersion &#41; &#41; &#41; &#123; PHB_ITEM pDriver = hb_itemPutC&#40; NULL, &#40;char*&#41; szDeviceName &#41;; PHB_ITEM pVersion = hb_itemPutC&#40; NULL, &#40;char*&#41; szDeviceVersion &#41;; PHB_ITEM pSub = hb_itemArrayNew&#40; 2 &#41;; hb_itemArrayPut&#40; pSub, 1, pDriver &#41;; hb_itemArrayPut&#40; pSub, 2, pVersion &#41;; hb_itemRelease&#40; pDriver &#41;; hb_itemRelease&#40; pVersion &#41;; hb_itemArrayPut&#40; pReturn, wIndex + 1, pSub &#41;; hb_itemRelease&#40; pSub &#41;; &#125; &#125; hb_itemReturn&#40; pReturn &#41;; hb_itemRelease&#40; pReturn &#41;; &#125; #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&#58;SetFile&#40;"directory\cam1&#46;avi"&#41;; oCapture&#58;StartCapture&#40;&#41; oCapture1&#58;SetFile&#40;"directory\cam2&#46;avi"&#41;; oCapture1&#58;StartCapture&#40;&#41; oCapture2&#58;SetFile&#40;"directory\cam3&#46;avi"&#41;; oCapture2&#58;StartCapture&#40;&#41; [/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 &#58;= TCapCapture&#40;&#41;&#58;New&#40; 25,25,320,240, oWnd , 0&#41; oCapture1 &#58;= TCapCapture&#40;&#41;&#58;New&#40; 350,25,320,240, oWnd , 0&#41; oCapture2 &#58;= TCapCapture&#40;&#41;&#58;New&#40; 675,25,320,240, oWnd , 0&#41; [/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&#58;//www&#46;robertwisbey&#46;com/how_to_web_cam_wme&#46;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&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;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&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=webcam&#46;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&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=22606[/url:24s7wlo5] a greating; JLL
webcam full program - source code included -
Already published the revised version: [url:3vs9h4yh]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=webcam2&#46;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&#58;//postimg&#46;cc/K1Fps0wD:1zfhtwaq][img:1zfhtwaq]https&#58;//i&#46;postimg&#46;cc/YCmc0VxZ/Google-Map-Error&#46;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&#58;//msdn&#46;microsoft&#46;com/en-us/library/windows/hardware/dn567678%28v=vs&#46;85%29&#46;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&#58;//www&#46;bluelounge&#46;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;">&#40;</span> <span style="color: #ff0000;">'config.php'</span> <span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.php.net/include"><span style="color: #b1b100;">include</span></a> <span style="color: #66cc66;">&#40;</span> TWEB_PATH . <span style="color: #ff0000;">'core.php'</span> <span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.php.net/include"><span style="color: #b1b100;">include</span></a> <span style="color: #66cc66;">&#40;</span> TWEB_PATH . <span style="color: #ff0000;">'core.grid.php'</span> <span style="color: #66cc66;">&#41;</span>;<br /><br /><a href="http://www.php.net/define"><span style="color: #000066;">define</span></a>  <span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'TITLE'</span>, <span style="color: #ff0000;">'App Bussines - Movil'</span> <span style="color: #66cc66;">&#41;</span>;<br /><br /><span style="color: #0000ff;">$oWeb</span> = <span style="color: #000000; font-weight: bold;">new</span> TWeb<span style="color: #66cc66;">&#40;</span> TITLE <span style="color: #66cc66;">&#41;</span>;<br />    <br /><span style="color: #0000ff;">$oWeb</span>-><span style="color: #006600;">Activate</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br /><br /><span style="color: #0000ff;">$oFont</span>  = <span style="color: #000000; font-weight: bold;">new</span> TFont<span style="color: #66cc66;">&#40;</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;">&#41;</span>;<br /><br />    <span style="color: #0000ff;">$oWnd</span> = <span style="color: #000000; font-weight: bold;">new</span> TWindow<span style="color: #66cc66;">&#40;</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;">&#41;</span>;<br />    <br />        <span style="color: #0000ff;">$oPanel</span> = <span style="color: #000000; font-weight: bold;">new</span> TPanel<span style="color: #66cc66;">&#40;</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;">&#41;</span>;<br />            <span style="color: #0000ff;">$oImg</span> = <span style="color: #000000; font-weight: bold;">new</span> TImage<span style="color: #66cc66;">&#40;</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;">&#41;</span>;             <br />            <span style="color: #0000ff;">$oSay</span> = <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">&#40;</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;">&#41;</span>;  <br />                <span style="color: #0000ff;">$oSay</span>-><span style="color: #006600;">SetFont</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$oFont</span> <span style="color: #66cc66;">&#41;</span>;   <br />                                <br />        <span style="color: #0000ff;">$oPanel</span> = <span style="color: #000000; font-weight: bold;">new</span> TPanel<span style="color: #66cc66;">&#40;</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;">&#41;</span>;          <br />        <br />            <span style="color: #0000ff;">$oBar</span> = <span style="color: #000000; font-weight: bold;">new</span> TBar<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$oPanel</span>, <span style="color: #ff0000;">'mybtnbar'</span> <span style="color: #66cc66;">&#41;</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;">&#40;</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;">&#41;</span>;<br />            <br />            <span style="color: #0000ff;">$oImg</span> = <span style="color: #000000; font-weight: bold;">new</span> TImage<span style="color: #66cc66;">&#40;</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;">&#41;</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;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />                <span style="color: #0000ff;">$oImg</span>-><span style="color: #006600;">SetRight</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">120</span> <span style="color: #66cc66;">&#41;</span>;<br /><br />                    <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">&#40;</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;">&#41;</span>;<br />            <span style="color: #0000ff;">$oGet</span> = <span style="color: #000000; font-weight: bold;">new</span> TGet<span style="color: #66cc66;">&#40;</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;">&#41;</span>;<br />                <span style="color: #0000ff;">$oGet</span>-><span style="color: #006600;">SetRight</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">140</span> <span style="color: #66cc66;">&#41;</span>;             <br /><br />            <span style="color: #0000ff;">$o</span> = <span style="color: #000000; font-weight: bold;">new</span> TGroup<span style="color: #66cc66;">&#40;</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;">&#41;</span>;<br />                <span style="color: #0000ff;">$o</span>-><span style="color: #006600;">SetRight</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">140</span> <span style="color: #66cc66;">&#41;</span>;<br /><br />                <span style="color: #0000ff;">$oSay</span> = <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">&#40;</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;">&#41;</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;">&#40;</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">&#41;</span>;<br />                    <br />                <span style="color: #0000ff;">$oSay</span> = <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">&#40;</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;">&#41;</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;">&#40;</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">&#41;</span>;  <br /><br />                <span style="color: #0000ff;">$oSay</span> = <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">&#40;</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;">&#41;</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;">&#40;</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">&#41;</span>;<br /><br />                <span style="color: #0000ff;">$oSay</span> = <span style="color: #000000; font-weight: bold;">new</span> TSay<span style="color: #66cc66;">&#40;</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;">&#41;</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;">&#40;</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;">&#41;</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;">&#40;</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;">&#41;</span>;<br />                <span style="color: #0000ff;">$oGrid</span>-><span style="color: #006600;">SetRight</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">&#41;</span>;<br />                <span style="color: #0000ff;">$oGrid</span>-><span style="color: #006600;">SetBottom</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">60</span> <span style="color: #66cc66;">&#41;</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;">&#40;</span> <span style="color: #ff0000;">'fecha'</span>   , <span style="color: #ff0000;">'Fecha'</span>       , <span style="color: #cc66cc;">100</span> <span style="color: #66cc66;">&#41;</span>;        <br />                <span style="color: #0000ff;">$oCol</span> = <span style="color: #0000ff;">$oGrid</span>-><span style="color: #006600;">AddCol</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'service'</span> , <span style="color: #ff0000;">'Servicio'</span>    , <span style="color: #cc66cc;">150</span> <span style="color: #66cc66;">&#41;</span>;<br />                <span style="color: #0000ff;">$oCol</span> = <span style="color: #0000ff;">$oGrid</span>-><span style="color: #006600;">AddCol</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'total'</span>   , <span style="color: #ff0000;">'Total'</span>       , <span style="color: #cc66cc;">100</span> <span style="color: #66cc66;">&#41;</span>;          <br />                <br />        <span style="color: #0000ff;">$o</span> = <span style="color: #000000; font-weight: bold;">new</span> TBar<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$oWnd</span>, <span style="color: #ff0000;">'mybtnbar'</span> <span style="color: #66cc66;">&#41;</span>;<br />            <span style="color: #0000ff;">$o</span>-><span style="color: #006600;">SetBottom</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">&#41;</span>;<br />            <span style="color: #0000ff;">$oBtn</span> = <span style="color: #0000ff;">$o</span>-><span style="color: #006600;">AddButton</span><span style="color: #66cc66;">&#40;</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;">&#41;</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;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />    <br /><span style="color: #0000ff;">$oWeb</span>-><span style="color: #006600;">End</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</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;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />    <br />        Reset_Data<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</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;">&#40;</span><span style="color: #66cc66;">&#41;</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;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />            oParam<span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">'accion'</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #ff0000;">'refresh'</span><br />            oParam<span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">'id'</span>    <span style="color: #66cc66;">&#93;</span> = o.Get<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'my_id'</span> <span style="color: #66cc66;">&#41;</span><br />    <br />        MsgServer<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'srv_app_movil.php'</span>, Escucha_Consulta, oParam <span style="color: #66cc66;">&#41;</span>  <br />    <span style="color: #66cc66;">&#125;</span><br />    <br />    <span style="color: #000000; font-weight: bold;">function</span> Escucha_Consulta<span style="color: #66cc66;">&#40;</span> dat <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</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;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />        <br />        <a href="http://www.php.net/if"><span style="color: #b1b100;">if</span></a> <span style="color: #66cc66;">&#40;</span> dat.cab <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</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;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />                <br />                o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'my_id'</span>  , dat.cab.id <span style="color: #66cc66;">&#41;</span><br />                o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'first'</span>  , dat.cab.first <span style="color: #66cc66;">&#41;</span><br />                o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'last'</span>   , dat.cab.last <span style="color: #66cc66;">&#41;</span><br />                o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'street'</span> , dat.cab.street <span style="color: #66cc66;">&#41;</span><br />                o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'city'</span>   , dat.cab.city <span style="color: #66cc66;">&#41;</span><br />                o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'state'</span>  , dat.cab.state <span style="color: #66cc66;">&#41;</span>                       <br />                o.Set<span style="color: #66cc66;">&#40;</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;">&#41;</span>                      <br />                <br />                o.Set<span style="color: #66cc66;">&#40;</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;">&#41;</span>;         <br />            <br />        <span style="color: #66cc66;">&#125;</span> <a href="http://www.php.net/else"><span style="color: #b1b100;">else</span></a> <span style="color: #66cc66;">&#123;</span><br />            <br />            MsgNotify<span style="color: #66cc66;">&#40;</span> dat.msg, <span style="color: #ff0000;">'error'</span>  <span style="color: #66cc66;">&#41;</span>              <br />        <span style="color: #66cc66;">&#125;</span>       <br />    <span style="color: #66cc66;">&#125;</span><br />    <br />    <br />    <span style="color: #000000; font-weight: bold;">function</span> Reset_Data<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</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;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br /><br />        o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'first'</span>  <span style="color: #66cc66;">&#41;</span>;<br />        o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'last'</span>   <span style="color: #66cc66;">&#41;</span>;<br />        o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'street'</span> <span style="color: #66cc66;">&#41;</span>;<br />        o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'city'</span>   <span style="color: #66cc66;">&#41;</span>;<br />        o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'state'</span>  <span style="color: #66cc66;">&#41;</span>;<br />        o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'photo'</span>  <span style="color: #66cc66;">&#41;</span>;<br />        o.Set<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'mygrid'</span> <span style="color: #66cc66;">&#41;</span>;<br />    <span style="color: #66cc66;">&#125;</span><br />    <br />    <span style="color: #000000; font-weight: bold;">function</span> Info<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</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;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />        oOptions<span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">'title'</span>       <span style="color: #66cc66;">&#93;</span> = <span style="color: #ff0000;">'Información...'</span>;<br />        oOptions<span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">'centered'</span>    <span style="color: #66cc66;">&#93;</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />        oOptions<span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">'modal'</span>       <span style="color: #66cc66;">&#93;</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />        oOptions<span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">'resizable'</span>   <span style="color: #66cc66;">&#93;</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />        oOptions<span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">'closeOnEscape'</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />        oOptions<span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">'dialogextend'</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #000000; font-weight: bold;">false</span>;  <br />            <br />        TLoadDialog<span style="color: #66cc66;">&#40;</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;">&#41;</span>         <br />    <span style="color: #66cc66;">&#125;</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&#58;//itarraco&#46;com/tweb&#46;examples/tuto_app_movil_4&#46;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&#58;//www&#46;atzwanger-software&#46;com/fw/qrscan&#46;jpg[/img:5933ena0] [img:5933ena0]http&#58;//www&#46;atzwanger-software&#46;com/fw/qrscan2&#46;jpg[/img:5933ena0] [img:5933ena0]http&#58;//www&#46;atzwanger-software&#46;com/fw/FW_SQL_remote_browser&#46;jpg[/img:5933ena0] [img:5933ena0]http&#58;//www&#46;atzwanger-software&#46;com/fw/FW_SQL_remote_browser_edit&#46;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&#58;//www&#46;atzwanger-software&#46;com/fw/ToSeewhatisinside&#46;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&#58;//youtu&#46;be/G7B7MRqdSl0[/url:k65bwuxn] I uploaded the file to YouTube. Best regards, Otto