{"id":745,"date":"2014-12-02T15:26:00","date_gmt":"2014-12-02T18:26:00","guid":{"rendered":"http:\/\/helpcentral.impresoras-fiscales.com\/?p=745"},"modified":"2020-05-01T16:04:48","modified_gmt":"2020-05-01T19:04:48","slug":"instalacion-harbor","status":"publish","type":"post","link":"http:\/\/helpcentral.impresoras-fiscales.com\/?p=745","title":{"rendered":"Instalaci&oacute;n Harbour y xHarbour"},"content":{"rendered":"<h2>Instrucciones<\/h2>\n<p><font style=\"font-weight: bold\"><\/font><\/p>\n<h3><font style=\"font-weight: bold\">Requerimientos<\/font><\/h3>\n<p>Si aun no lo descargo, deber\u00e1 descargar el archivo <a href=\"http:\/\/drivers.impresoras-fiscales.com.ar\/drivers\/all\/HbFiscal.zip\" target=\"_blank\">HbFiscal.zip<\/a> que contiene las librer\u00edas para vincular con los compiladores Borland C++ (BCC55), MingW o Visual Studio<\/p>\n<p>Luego copie la librer\u00eda correspondiente al compilador que usara, en el directorio <strong>LIB<\/strong> (o similar) en el directorio de instalaci\u00f3n de Harbour.<\/p>\n<h3><font style=\"font-weight: bold\">Para Harbour compilado con Borland C++ 5.5<\/font> <\/h3>\n<p>Deber\u00e1 vincular el programa con la librer\u00eda HbFiscal.lib<\/p>\n<h3><font style=\"font-weight: bold\">Para Harbour compilado con Visual Studio (MSVC)<\/font><\/h3>\n<p>Deber\u00e1 vincular el programa con la librer\u00eda HbFiscalVC.lib<\/p>\n<h3><font style=\"font-weight: bold\">Para Harbour compilado con <a href=\"http:\/\/www.mingw.org\/\" target=\"_blank\">MinGW<\/a>: <\/font><\/h3>\n<p>Deber\u00e1 vincular el programa con la librer\u00eda libHbFiscal.a (,Wl -lHbFiscal)<\/p>\n<p>En cualquier caso,&#160; la DLL correspondiente al driver (Tm2032.dll, H71532.dll, etc.) deber\u00e1 estar en el mismo directorio de la aplicaci\u00f3n o en alg\u00fan directorio incluido en la variable de entorno PATH.<\/p>\n<p>Estas librer\u00edas agregan 2 funciones a las ya existentes IF_OPEN, IF_CLOSE, etc.<\/p>\n<h4><font style=\"font-weight: bold\">1. IF_SET_LIBRARY_TO(\u201cDll_del_Driver.dll\u201d)<\/font><\/h4>\n<p>La funci\u00f3n <strong>IF_SET_LIBRARY_TO<\/strong> carga la DLL del driver que corresponda a la impresora fiscal que usar\u00e1.&#160; Esta debe ser la primer funci\u00f3n a ejecutar antes de usar las dem\u00e1s funciones (ie: IF_OPEN, IF_CLOSE, etc.)<\/p>\n<p>Devuelve&#160; 0 si no hubo error, -1 si hubo error al cargar la librer\u00eda<\/p>\n<p><strong>Por ejemplo:<\/strong><\/p>\n<blockquote>\n<p><font face=\"Courier New\">nError = <strong>IF_SET_LIBRARY_TO<\/strong>(&quot;TM2032.dll&quot;)<\/font><\/p>\n<p><font face=\"Courier New\">nPort = IF_OPEN(&quot;COM2&quot;,9600)<\/font><\/p>\n<p><font face=\"Courier New\">nError = IF_WRITE(&quot;@StatusRequest&quot;)<\/font><\/p>\n<p><font face=\"Courier New\">nError = IF_CLOSE()<\/font><\/p>\n<p><font face=\"Courier New\"><strong>IF_RELEASE_LIBRARY()<\/strong><\/font><\/p>\n<\/blockquote>\n<h4><font style=\"font-weight: bold\">2. IF_RELEASE_LIBRARY()<\/font><\/h4>\n<p>La funci\u00f3n <strong>IF_RELEASE_LIBRARY<\/strong> descarga el driver de la memoria. Si el puerto&#160; de comunicaciones esta abierto, lo cierra.<\/p>\n<p><strong>Devuelve <\/strong>0 si no hubo error,&#160; -1 si hubo error<\/p>\n<p>Por ejemplo:<\/p>\n<blockquote>\n<p><font face=\"Courier New\"><strong>IF_SET_LIBRARY_TO<\/strong>(&quot;TM2032.dll&quot;)<\/font><\/p>\n<p><font face=\"Courier New\">&#8230;&#8230;<\/font><\/p>\n<p><font face=\"Courier New\"><strong>IF_RELEASE_LIBRARY()<\/strong><\/font><\/p>\n<\/blockquote>\n<p>Nota: Tambi\u00e9n puede descargar el driver de la memoria ejecutando la funci\u00f3n <strong>IF_SET_LIBRARY_TO<\/strong> sin par\u00e1metros.<\/p>\n<p>Por ejemplo:<\/p>\n<blockquote>\n<p>IF_SET_LIBRARY_TO(&quot;&quot;)&#160; o IF_SET_LIBRARY_TO()<\/p>\n<\/blockquote>\n<h3>3. Redistribuci\u00f3n<\/h3>\n<p>Debe redistribuir \u00fanicamente los siguientes archivos con su aplicaci\u00f3n:<\/p>\n<ul>\n<li>DLL del driver (ie: TM2032.dll)      <\/li>\n<li>IFDriver.txt&#160; \u00f3&#160; &lt;nombreDll&gt;_licencia.txt&#160; (ie: TM2032_licencia.txt)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Instrucciones Requerimientos Si aun no lo descargo, deber\u00e1 descargar el archivo HbFiscal.zip que contiene las librer\u00edas para vincular con los compiladores Borland C++ (BCC55), MingW o Visual Studio Luego copie la librer\u00eda correspondiente al compilador que usara, en el directorio LIB (o similar) en el directorio de instalaci\u00f3n de Harbour. Para Harbour compilado con Borland [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-745","post","type-post","status-publish","format-standard","hentry","category-languages-harbour"],"_links":{"self":[{"href":"http:\/\/helpcentral.impresoras-fiscales.com\/index.php?rest_route=\/wp\/v2\/posts\/745"}],"collection":[{"href":"http:\/\/helpcentral.impresoras-fiscales.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/helpcentral.impresoras-fiscales.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/helpcentral.impresoras-fiscales.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/helpcentral.impresoras-fiscales.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=745"}],"version-history":[{"count":16,"href":"http:\/\/helpcentral.impresoras-fiscales.com\/index.php?rest_route=\/wp\/v2\/posts\/745\/revisions"}],"predecessor-version":[{"id":893,"href":"http:\/\/helpcentral.impresoras-fiscales.com\/index.php?rest_route=\/wp\/v2\/posts\/745\/revisions\/893"}],"wp:attachment":[{"href":"http:\/\/helpcentral.impresoras-fiscales.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/helpcentral.impresoras-fiscales.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=745"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/helpcentral.impresoras-fiscales.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}