topic
stringlengths
1
63
text
stringlengths
1
577k
Comprobar DBF abierta
Estoy tratando de comprobar si una base de datos esta abierta desde otro programa, uso: Select 1 Use C:\Datos\Mesa_1 ALIAS aMesa_1 Exclusive if !NetErr() ////compruebo si puedo abrirla o no Select 2 ///uso otra base datos para poner el resultado Go Registro if Rlock() ///NUNCA LO BLOQUEA CUANDO LA BASE DE DATOS PRIMERA ESTA OCUPADA aDatos->Enuso:=.T. Endif Else ? "no hago nada" Endif ¿ Porque después de que Neterr() da .T. ya no se puedo bloquear un registro de otra base de datos ? ¿ Que estoy haciendo mal ? Gracias. Saludos
Comprobar DBF abierta
Prueba asi: [code=fw:35vevoxw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">Select</span> <span style="color: #000000;">1</span><br />Use C:\Datos\Mesa_1 <span style="color: #0000ff;">ALIAS</span> aMesa_1 Exclusive<br />lerror:=NetErr<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #0000ff;">Select</span> <span style="color: #000000;">2</span> <span style="color: #B900B9;">///uso otra base datos para poner el resultado</span><br />Go Registro<br /><span style="color: #00C800;">if</span> Rlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />    aDatos->Enuso:=iif<span style="color: #000000;">&#40;</span>lerror,.T.,.F.<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Else</span><br />    ?<span style="color: #ff0000;">'no se pudo bloquear 2da BD'</span><br /><span style="color: #00C800;">Endif</span><br /> </div>[/code:35vevoxw]
Comprobar DBF abierta
Hola Servicomver: Yo utilizo la funcion Used() [code=fw:3h02u6bq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>aMesa_1-><span style="color: #000000;">&#40;</span>Used<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"aMesa_1"</span><span style="color: #000000;">&#41;</span>,dbUseArea<span style="color: #000000;">&#40;</span> .T., , <span style="color: #ff0000;">"Mesa_1"</span>, <span style="color: #ff0000;">"aMesa_1"</span>, .T. <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3h02u6bq] Saludos. Jose
Comprobar DBF abierta
En entorno compartido se utiliza la funcion de apertura Net_Use() o similar que permite una manera suave de comprobacion y apertura Se usa algo asi como: [code=fw:3jaat2cn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">IF</span> !Net_Use<span style="color: #000000;">&#40;</span>cFileDbf, .f., <span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Nos se pudo abrir !"</span>, cFileDbf<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span></div>[/code:3jaat2cn]
Comprobar DBF abierta
[quote="hmpaquito":22gb3jvc]En entorno compartido se utiliza la funcion de apertura Net_Use() o similar que permite una manera suave de comprobacion y apertura Se usa algo asi como: [code=fw:22gb3jvc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">IF</span> !Net_Use<span style="color: #000000;">&#40;</span>cFileDbf, .f., <span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Nos se pudo abrir !"</span>, cFileDbf<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span></div>[/code:22gb3jvc][/quote:22gb3jvc] [code=fw:22gb3jvc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// ------------------------------------------------------------------------</span><br /><span style="color: #B900B9;">// Fun‡Æo.....: NetUse</span><br /><span style="color: #B900B9;">// Descri‡Æo..: Abre um Arquivo DBF, em modo EXCLUSIVE (.F.), ou SHARED (.T.)</span><br /><span style="color: #B900B9;">// Par metros : cDbf &nbsp; &nbsp; &nbsp;-> Nome da Base de Dados</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lShared &nbsp; -> SHARED (.T.), EXCLUSIVE (.F.)</span><br /><span style="color: #B900B9;">// Devolve ..: .T. &nbsp; &nbsp; &nbsp; -> Si se ha podido abrir.</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .F. &nbsp; &nbsp; &nbsp; -> Si no se ha podido abrir.</span><br /><span style="color: #B900B9;">// ------------------------------------------------------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> NetUse<span style="color: #000000;">&#40;</span> cDbf, lShared <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cAlias := cFileName<span style="color: #000000;">&#40;</span> cDbf <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> bAlias := cFileName<span style="color: #000000;">&#40;</span> cDbf <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CONTROLE DE PARAMETROS DE ENTRADA =====================</span><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> cDbf = <span style="color: #00C800;">NIL</span> .OR. !File<span style="color: #000000;">&#40;</span> cDbf + <span style="color: #ff0000;">".DBF"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NOME DO ARQUIVO INCORRETO"</span> + CRLF + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"NÃO ACHEI BANCO DE DADOS."</span> + CRLF + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cDbf + <span style="color: #ff0000;">".DBF"</span>, <span style="color: #ff0000;">"ERRO FATAL!!"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;IIf<span style="color: #000000;">&#40;</span> lShared = <span style="color: #00C800;">NIL</span>, lShared := .F., lShared <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// ======================================================</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lShared = .T.<br /><br />&nbsp; &nbsp; &nbsp; USE <span style="color: #000000;">&#40;</span> cDbf <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #000000;">&#40;</span> cAlias := GetNewAlias<span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VIA <span style="color: #ff0000;">"DBFCDX"</span> SHARED <span style="color: #00C800;">NEW</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; USE <span style="color: #000000;">&#40;</span> cDbf <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span> VIA <span style="color: #ff0000;">"DBFCDX"</span> EXCLUSIVE <span style="color: #00C800;">NEW</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> !NetErr<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"IMPOSSIVEL ABRIR BANCO DE DADOS: "</span> + cAlias + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"BLOQUEADO POR OUTRO USUµRIO."</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ERRO FATAL DE REDE! FECHAR BANCO DE DADOS."</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:22gb3jvc] Saludos.
Comprobar DBF abierta
Muchisimas gracias, Problema resuelto
Comprobar ZIP
Buenaaaas, ¿existe alguna función para comprobar la integridad de un fichero ZIP en (x)Harbour ? Se me ocurrió ir descomprimiendo todos los archivos y si no obtenía ningún error darlo por bueno, pero ... es algo engorroso. ¿Alguien puede arrojar un poco de sabiduria con este tema? Gracias
Comprobar el consumo de handles de objectos GDI de tu app
[url:374qyv1k]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=how_to_check_unreleased_gdi_objects_handles[/url:374qyv1k]
Comprobar la existencia de archivo en escritorio
Hola amigos del foro Alguien que me diga como puedo saber si en el escritorio de la PC existe un acceso directo a un cierto archivo. Especificamente, tengo instalado DropBox en la PC. Este programa instala un acceso directo a la carpeta de DropBox en el escritorio de la computadora y necesito que el sistema pueda detectar la presencia de dicho acceso directo. En Win XP me funciona muy bien pero en Win 7 parece que el problema radica en que la direccion en donde se guarda el escritorio de ambos Window es diferente Utilizo la funcion GetFolderMyDocuments() y GetFolderMyDesktop() que han sido publicadas en este foro, con la primera, en Win Xp obtengo la direccion del archivo que necesito pero no me funciona en Win 7,
Comprobar la existencia de archivo en escritorio
Hola... esto esta tomado desde este post:[url:2prj4trn]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=118144#p118144[/url:2prj4trn] con un poco mas de opciones para los detalles de los define puedes consultar[url:2prj4trn]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/bb762494(v=vs&#46;85)&#46;aspx[/url:2prj4trn] los defines fueron obtenidos del archivo de cabecera shlobj.h del compilador de C [code=fw:2prj4trn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_DESKTOP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <desktop></span><br /><span style="color: #00D7D7;">#define</span> CSIDL_INTERNET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0001 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Internet Explorer (icon on desktop)</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_PROGRAMS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0002 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Start Menu\Programs</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_CONTROLS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0003 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// My Computer\Control Panel</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_PRINTERS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0004 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// My Computer\Printers</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_PERSONAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0005 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// My Documents</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_FAVORITES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0006 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <user name>\Favorites</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_STARTUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0007 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Start Menu\Programs\Startup</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_RECENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0008 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <user name>\Recent</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_SENDTO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0009 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <user name>\SendTo</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_BITBUCKET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000a &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <desktop>\Recycle Bin</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_STARTMENU &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000b &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <user name>\Start Menu</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_MYDOCUMENTS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000c &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// logical "My Documents" desktop icon</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_MYMUSIC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000d &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// "My Music" folder</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_MYVIDEO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000e &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// "My Videos" folder</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_DESKTOPDIRECTORY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0010 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <user name>\Desktop</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_DRIVES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0011 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// My Computer</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_NETWORK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0012 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Network Neighborhood (My Network Places)</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_NETHOOD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0013 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <user name>\nethood</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_FONTS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0014 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// windows\fonts</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_TEMPLATES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0015<br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_STARTMENU &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0016 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// All Users\Start Menu</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_PROGRAMS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0X0017 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// All Users\Start Menu\Programs</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_STARTUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0018 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// All Users\Startup</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_DESKTOPDIRECTORY &nbsp; 0x0019 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// All Users\Desktop</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_APPDATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x001a &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <user name>\Application Data</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_PRINTHOOD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x001b &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <user name>\PrintHood</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_LOCAL_APPDATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x001c &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <user name>\Local Settings\Applicaiton Data (non roaming)</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_ALTSTARTUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x001d &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// non localized startup</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_ALTSTARTUP &nbsp; &nbsp; &nbsp; &nbsp; 0x001e &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// non localized common startup</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_FAVORITES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x001f<br /><span style="color: #00D7D7;">#define</span> CSIDL_INTERNET_CACHE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0020<br /><span style="color: #00D7D7;">#define</span> CSIDL_COOKIES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0021<br /><span style="color: #00D7D7;">#define</span> CSIDL_HISTORY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0022<br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_APPDATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0023 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// All Users\Application Data</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_WINDOWS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0024 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// GetWindowsDirectory()</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_SYSTEM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0025 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// GetSystemDirectory()</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_PROGRAM_FILES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0026 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// C:\Program Files</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_MYPICTURES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0027 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// C:\Program Files\My Pictures</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_PROFILE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0028 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// USERPROFILE</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_SYSTEMX86 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0029 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// x86 system directory on RISC</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_PROGRAM_FILESX86 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x002a &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// x86 C:\Program Files on RISC</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_PROGRAM_FILES_COMMON &nbsp; &nbsp; &nbsp;0x002b &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// C:\Program Files\Common</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_PROGRAM_FILES_COMMONX86 &nbsp; 0x002c &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// x86 Program Files\Common on RISC</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_TEMPLATES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x002d &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// All Users\Templates</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_DOCUMENTS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x002e &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// All Users\Documents</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_ADMINTOOLS &nbsp; &nbsp; &nbsp; &nbsp; 0x002f &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// All Users\Start Menu\Programs\Administrative Tools</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_ADMINTOOLS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0030 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// <user name>\Start Menu\Programs\Administrative Tools</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_CONNECTIONS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0031 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Network and Dial-up Connections</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_MUSIC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0035 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// All Users\My Music</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_PICTURES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0036 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// All Users\My Pictures</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_COMMON_VIDEO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0037 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// All Users\My Video</span><br /><span style="color: #00D7D7;">#define</span> CSIDL_RESOURCES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0038 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Resource Direcotry</span><br /><br /><span style="color: #00C800;">FUNCTION</span> fWindows<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aResult := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nFlag<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aFlags := <span style="color: #000000;">&#123;</span> &nbsp;CSIDL_DESKTOP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_INTERNET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_PROGRAMS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_CONTROLS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_PRINTERS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_PERSONAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_FAVORITES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_STARTUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_RECENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_SENDTO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_BITBUCKET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_STARTMENU &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_MYDOCUMENTS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_MYMUSIC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_MYVIDEO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_DESKTOPDIRECTORY &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_DRIVES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_NETWORK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_NETHOOD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_FONTS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_TEMPLATES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_STARTMENU &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_PROGRAMS &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_STARTUP &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_DESKTOPDIRECTORY,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_APPDATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_PRINTHOOD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_LOCAL_APPDATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_ALTSTARTUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_ALTSTARTUP &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_FAVORITES &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_INTERNET_CACHE &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COOKIES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_HISTORY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_APPDATA &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_WINDOWS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_SYSTEM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_PROGRAM_FILES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_MYPICTURES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_PROFILE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_SYSTEMX86 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_PROGRAM_FILESX86 &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_PROGRAM_FILES_COMMON &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_PROGRAM_FILES_COMMONX86,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_TEMPLATES &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_DOCUMENTS &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_ADMINTOOLS &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_ADMINTOOLS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_CONNECTIONS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_MUSIC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_PICTURES &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_COMMON_VIDEO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSIDL_RESOURCES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each nFlag in aFlags<br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aResult, cGetSpecialFolder<span style="color: #000000;">&#40;</span> nFlag <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">xbrowse</span><span style="color: #000000;">&#40;</span> aResult <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapiitm.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapierr.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbdate.h"</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"shlobj.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> CGETSPECIALFOLDER <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;char *lpBuffer = <span style="color: #000000;">&#40;</span>char*<span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> MAX_PATH + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;LPITEMIDLIST pidlBrowse;<br /><br />&nbsp; &nbsp;SHGetSpecialFolderLocation<span style="color: #000000;">&#40;</span> GetActiveWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, hb_parni<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> , &pidlBrowse <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;SHGetPathFromIDList<span style="color: #000000;">&#40;</span> pidlBrowse, lpBuffer <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_retc<span style="color: #000000;">&#40;</span> &nbsp;lpBuffer <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_xfree<span style="color: #000000;">&#40;</span> lpBuffer <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br />&nbsp;</div>[/code:2prj4trn]
Comprobar la existencia de archivo en escritorio
GRACIAS Voy a probar...
Comprobar que Internet Explorer es ON / OFF
Señores, ¿cómo puedo comprobar si Internet Explorer está ON / OFF?   Me explico: En Windows Server 2003, algunos administradores de red se apagan Internet Explorer y eso me ha causado problemas, volviendo error de TOLEAUTO:NEW().   Me pregunto si hay algun comando de xHarbour, que asegúrese de que Internet Explorer está en OFF (apagado) y puedo enviar un mensaje a la petición del usuario conectarlo.   Agradezco cualquier ayuda de antemano. Saludos.
Comprobar que Internet Explorer es ON / OFF
Señores, podrian decir se esta lógica esta correcta? No tengo windows 2003 server para hacer testes. [code=fw:9xogs4pi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br />PROCEDURE Main<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oOLE, cHTML, cTEXT, lIeAtvo := .F.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">TRY</span><br /><br />&nbsp; &nbsp; &nbsp; oOLE := GetActiveObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"InternetExplorer.Application"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; lIeAtvo := .T.<br /><br />&nbsp; &nbsp;CATCH<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oOLE := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"InternetExplorer.Application"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lIeAtvo := .T.<br /><br />&nbsp; &nbsp; &nbsp; CATCH<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ERROR! IE not avialable."</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; END<br /><br />&nbsp; END<br /><br />&nbsp; oOLE:<span style="color: #000000;">Visible</span> := .F.<br />&nbsp; oOLE:<span style="color: #000000;">Navigate</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"about&#058;blank"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">IF</span> lIeAtvo <span style="color: #B900B9;">// := .T.</span><br />&nbsp; &nbsp; &nbsp;? <span style="color: #000000;">&#91;</span>internet explore ativo<span style="color: #000000;">&#93;</span><br />&nbsp; <span style="color: #00C800;">Endif</span><br /><br />&nbsp; <span style="color: #B900B9;">/*<br />&nbsp; //... checkpoint A<br />&nbsp; oOLE:Document:Body:innerHTML := cHtml<br />&nbsp; //... checkpoint B<br />&nbsp; cHtml2 := oOLE:Document:Body:innerHTML<br />&nbsp; memowrit("inet10.html",cHtml2)<br />&nbsp; */</span><br /><br />&nbsp; oOle:<span style="color: #000000;">quit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><br />&nbsp;</div>[/code:9xogs4pi] Muchas gracias,
Comprobar que Internet Explorer es ON / OFF
Algun amigo tien windows 2003 server que pueda hacer un teste con esta función? [code=fw:3lu49u8a]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> IeAivo<span style="color: #000000;">&#40;</span> lIeAtvo <span style="color: #000000;">&#41;</span> <br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oOLE, cHTML, cTEXT &nbsp;<span style="color: #B900B9;">//, lIeAtvo := .F.</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">TRY</span><br /><br />&nbsp; &nbsp; &nbsp; oOLE := GetActiveObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"InternetExplorer.Application"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; lIeAtvo := .T.<br /><br />&nbsp; &nbsp;CATCH &nbsp;<span style="color: #B900B9;">// Tenta de novo</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oOLE := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"InternetExplorer.Application"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lIeAtvo := .T.<br /><br />&nbsp; &nbsp; &nbsp; CATCH<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//Alert( "ERROR! IE not avialable." )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lIeAtvo := .F.<br /><br />&nbsp; &nbsp; &nbsp; END<br /><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;oOLE:<span style="color: #000000;">Visible</span> := .F.<br />&nbsp; &nbsp;oOLE:<span style="color: #000000;">Navigate</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"about&#058;blank"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">WHILE</span> oOLE:<span style="color: #000000;">Busy</span><br />&nbsp; &nbsp; &nbsp; HB_IDLESLEEP<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDDO</span><br /><br />&nbsp; &nbsp;oOle:<span style="color: #000000;">quit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> lIeAtvo <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3lu49u8a] Gracias,
Comprobar segundo email con erro
Buenas foro, como hago para verificar el segundo email con erro? ...... correcto errado necesito verificar [code=fw:dpxkum35]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e -->; kapi <!-- e --><a href="mailto:abafwh@hotmail.com">abafwh@hotmail.com</a><!-- e --><br /> </div>[/code:dpxkum35] Gracias, saludos.
Comprobar segundo email con erro
Thanks friends, aparentemente, problema resolvido. [code=fw:powe4x0d]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> CHECA_EMAIL_ERRADO<span style="color: #000000;">&#40;</span> cEmailCliente <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cContaUsuario, cNomeUsuario<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cRegEx := <span style="color: #ff0000;">"^[_a-z0-9-]+(<span style="color: #000000;">\.</span>[_a-z0-9-]+)*@[a-z0-9-]+(<span style="color: #000000;">\.</span>[a-z0-9-]+)*(<span style="color: #000000;">\.</span>[a-z]{2,4})$"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lIsValid := .F., cRet<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cEmailErro, cEmail<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">&#40;</span> cEmailCliente <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ATEN€ÇO USUµRIO: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMAIL DO CLIENTE ESTµ VAZIO NO PLENO"</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DIGITE O NOME DA CONTA DE EMAIL. &nbsp; &nbsp;"</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<Comercial>:<Clientes>:<Alteracoes>."</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Exemplo: <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --> &nbsp; &nbsp; &nbsp; "</span> <span style="color: #000000;">&#41;</span>, &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMAIL(Conta) NÇO INFORMADO. CUIDADO!"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; lIsValid := .F.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> ALLTRIM<span style="color: #000000;">&#40;</span>LOWER<span style="color: #000000;">&#40;</span> cEmailCliente <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">LIKE</span> cRegEx <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; lIsValid := .T.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">";"</span>, ALLTRIM<span style="color: #000000;">&#40;</span> cEmailCliente <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cEmail &nbsp; &nbsp; := ALLTRIM<span style="color: #000000;">&#40;</span> cEmailCliente <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cEmailErro := HB_aTokens<span style="color: #000000;">&#40;</span> cEmail, <span style="color: #ff0000;">";"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> ALLTRIM<span style="color: #000000;">&#40;</span>LOWER<span style="color: #000000;">&#40;</span> cEmailErro<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">LIKE</span> cRegEx <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lIsValid := .T.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">&#40;</span> cEmailCliente <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// NAO MOSTRAR MENSAGEM, JA MOSTROU ACIMA</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ATEN€ÇO USUµRIO: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1"</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DIGITE UM EMAIL VÇLIDO... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ESTA CONTA DE EMAIL ESTµ ERRADA... "</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Exemplo: <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --> &nbsp; &nbsp; &nbsp;"</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"VOCÒ DIGITOU: "</span> + ALLTRIM<span style="color: #000000;">&#40;</span> cEmailCliente <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMAIL(Conta) CONTENDO ERROS... VEJA!"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lIsValid := .F.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> ALLTRIM<span style="color: #000000;">&#40;</span>LOWER<span style="color: #000000;">&#40;</span> cEmailErro<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">LIKE</span> cRegEx <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lIsValid := .T.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">&#40;</span> cEmailCliente <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// NAO MOSTRAR MENSAGEM, JA MOSTROU ACIMA</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ATEN€ÇO USUµRIO: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2"</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DIGITE UM EMAIL VÇLIDO... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ESTA CONTA DE EMAIL ESTµ ERRADA... "</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Exemplo: <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --> &nbsp; &nbsp; &nbsp;"</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"VOCÒ DIGITOU: "</span> + ALLTRIM<span style="color: #000000;">&#40;</span> cEmailCliente <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMAIL(Conta) CONTENDO ERROS... VEJA!"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lIsValid := .F.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">&#40;</span> cEmailCliente <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// NAO MOSTRAR MENSAGEM, JA MOSTROU ACIMA</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ATEN€ÇO USUµRIO: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DIGITE UM EMAIL VÇLIDO... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ESTA CONTA DE EMAIL ESTµ ERRADA... "</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Exemplo: <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --> &nbsp; &nbsp; &nbsp;"</span> <span style="color: #000000;">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"VOCÒ DIGITOU: "</span> + ALLTRIM<span style="color: #000000;">&#40;</span> cEmailCliente <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMAIL(Conta) CONTENDO ERROS... VEJA!"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lIsValid := .F.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> lIsValid <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:powe4x0d] Obg. abs.
Comprobar si existe un directorio remoto....
Hola a todos... Pues eso queria saber si existe alguna función que permita saber si existe un directorio remoto. He probado con lIsDir() pero cuando lo ejecuto me dice que no está disponible, por lo que no me funciona... Saludos. Elías Torres.
Comprobar si existe un directorio remoto....
Elías, Podrías usar File( cDirRemoto + "\" + cNombreFichero ). Si existe dicho fichero, entonces existe el directorio remoto.
Comprobar si existe un directorio remoto....
Antonio, la opción que me propones no es del todo correcta para controlar si existe un directorio, puesto que puede ser que el archivo no esté pero en cambio si exista el directorio.... El problema viene porque debo controlar si el directorio que el usuario deja como parametro de descarga es correcto. Por tanto no puedo preguntar por ningun fichero para saber si existe o no el directorio... No existe ninguna funcion para esto que te comento?? Saludos. Elías Torres.
Comprobar si existe un directorio remoto....
Elías, En ese directorio tienes permiso de escritura ?
Comprobar si existe un directorio remoto....
Antonio, que diferencia hay?? Lo digo porque la ruta de descarga en principio debe ser fija, pero si por cualquier casualidad el usuario la cambia debo controlar si el directorio que el pone existe, porque sino controlo eso la aplicación falla generando un error, y claro, eso no puede ocurrir <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Saludos Elías Torres.
Comprobar si existe un directorio remoto....
Elías, Usa esta función: [code:20fj1se6] function Main&#40;&#41; MsgInfo&#40; lCheckDir&#40; "\Storage card" &#41; &#41; return nil function lCheckDir&#40; cDirName &#41; return Len&#40; Directory&#40; cDirName, "D" &#41; &#41; == 1 [/code:20fj1se6]
Comprobar si existe un directorio remoto....
Antonio, mil gracias, funciona a la perfección.... Saludos. Elías Torres.
Compré FWH por internet ¿cuanto tiempo toma el envío? salu2
Estimados amigos de FiveTechsoft Ya completé el formulario de pedido del FWH con los datos y demases Nº de tarjeta de crédito, etc., ¿cuando podré realizar la descarga del producto? saludos
Compré FWH por internet ¿cuanto tiempo toma el envío? salu2
Luis, Te hemos enviado un email indicándote que los datos de la tarjeta eran incorrectos. Por favor comprueba tu email y confírmanos si lo has recibido. Gracias.
Computación cuántica
Antonio, ¿Has investigado algo sobre ello? Tu charla sobre la IA es magnífica. A ver si te animas a aportarnos luz en la computación cuántica. Un saludo
Computación cuántica
Eduardo, Gracias a tu recomendación ayer vi un video muy cortito pero muy ilustrativo que os recomiendo a todos: Computación cuántica: [url:3jlyq1o9]https&#58;//youtu&#46;be/YpYuBEzfRlM[/url:3jlyq1o9] Se entiende muy bien y lo más importante es que avivó mi curiosidad acerca de esas técnicas y ando dándole vueltas a construir un ejemplo usando Harbour <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Computación cuántica
No quiero ser agorero y esta muy bien estudiar cosas nuevas pero tengo entendido que no habrá procesadores cuánticos hasta dentro de muchos años(el video lo dice tambien), necesitan una temperatura bajisima para funcionar (más baja que en el espacio), por lo menos nuestra generación no creo que lo conozca, de momento me conformó con FWH. [emoji16] Enviado desde mi POCOPHONE F1 mediante Tapatalk
Computación cuántica
Quantum Fivewin <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Computación cuántica
Andreu Botella y un servidor hemos empezado a construir una clasecita y un ejemplo y es solo el comienzo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [url:2m1j8zz9]https&#58;//github&#46;com/FiveTechSoft/quantum-computing-with-Harbour[/url:2m1j8zz9]
Computación cuántica
Por ahí se empieza... Caminante no hay camino, se hace camino al andar... A crear un superordenador quantico virtual!!!!
Computación cuántica
<!-- m --><a class="postlink" href="https://www.youtube.com/watch?time_continue=131&v=KKwjeJzKezw&feature=emb_logo">https://www.youtube.com/watch?time_cont ... e=emb_logo</a><!-- m -->
Computador de Mano (handhelp)
Quisiera saber que tipo de equipo de mano podria usar, para implementar una facturación electrónica, que pueda tener su printer integrado y sobre todo que sea compatible con FWH. Gracias, Juan Fco. Vásquez M.
Computador de Mano (handhelp)
Juan, Si por equipo de mano te refieres a smartphones de momento solo puedes usar dispositivos con arquitectura arm y usando FWPPC diseñado para estos sistemas. Pero solo sirve hasta la version 6.5 de Windows Mobile, pero la curva de aprendizaje es la mas rapida que existe.
Computational knowledge engine
[b:30x4rd1x]Wolfram Alpha[/b:30x4rd1x] [url:30x4rd1x]http&#58;//www&#46;wolframalpha&#46;com[/url:30x4rd1x]
Computer/Workstation name
Is there a function available that returns the name of the computer/workstation?
Computer/Workstation name
Hello,You can try this : cName:=getenv("COMPUTERNAME")this it's ok in Windows Vista Busines.Atte.,Lautaro MoreiraPd. : Sorry for my bad english
Computer/Workstation name
Usas NetName() de CT.LIB tambien.
Computer/Workstation name
[quote="cdmmaui":1ty11m86]Is there a function available that returns the name of the computer/workstation?[/quote:1ty11m86]NetName() -> Computer NameNetName(.t.) -> Logged-in User Name Please note that on Terminal Server environments NetName() returns the Server's name, not the remote workstation's one.Regards,Davide
Computer/Workstation name
Thank You, that is what I needed
Computer/Workstation name
Should this work with Habour, too.Harbour returns:NetName() -> Computer Name NetName(.t.) -> not Logged-in User Name but also Computer Name Regards,Otto
Comunicacion RS232 con clipper 5.3
Estimados, Uds. serian tan amables de enviarme algún ejemplo de como enviar y recibir información por puerta RS-232 , estoy tratando de comunicarme con una Impresora Fiscal IBM 4610-TF6. Cordialmente, Puerto Montt CHILE
Comunicacion RS232 con clipper 5.3
Las impresoras fiscales ya traen un protocolo de comunicacion definido, ya sea por un archivo con extension ocx ó por un .dll pidele a tu proveedor el protocolo de comunicacion
Comunicacion RS232 con clipper 5.3
Estimados foreros. A mi también me interesaría saber como leer datos recibidos por ese puerto, pero en FWH. Gracias.
Comunicacion Serial con dispositivo usb.
Hola a todos estoy migrando una aplicacion de hecha con Clipper/fw a 16 bits a harbour/fw(11.01), estoy usando un dispositivo marca vcom usb-serial y me coloco el puerto com10, pero setcommstate( nComm, cDcb ) siempre me devuelve falso. Las pruebas las realice con windows 7 (64 Bits). ya habia probado con los puertos seriales fisicos y funcionaba bien. de antemano gracias a todos.
Comunicacion Serie
Hola Antonio, soy usuario (aunque poco experimentado) de Fivewin para Clipper y C3. Esta es la primera vez que participo en este foro, y esta es para hacerte una consulta a ver que opinas: He compilado el ejemplo Testcom3.prg que hay en el directorio samples de FWC3 con las FW21 para clipper y funciona perfectamente bajo XP, pero al compilarlo y enlazarlo con C3 no funciona. ¿alguna sugerencia? Gracias Un Saludo Javier
Comunicacion Serie
Javier, Te enviamos por email el módulo comm.obj actualizado. Pruébalo y nos comentas, gracias. El problema es que las funciones de Windows de comunicaciones no estan presentes en 32 bits (Windows las cambió) y nosotros las emulamos para mantener compatibilidad. Y las hemos ido mejorando poco a poco.
Comunicacion Serie
ok. lo pruebo y te comento. Muchas gracias Javier
Comunicacion Serie
Hola Antonio, estoy intentando compilar y enlazar con el obj que me enviaste pero al enlazar me sale un mensaje diciendo que no está lista la unidad, y al aceptar, el TLink me dice que no puede abrir la libreria uuid.lib. Supongo que el obj que me enviaste tendrá una referencia a dicha libreria y el enlazador irá a buscarla a un directorio (imagino que el que tu tengas configurado en tu sistema) en la unidad C:. El problema está en que la letra de mi unidad no es C: sino I: y ya le he cambiado todas las rutas de las librerias en el fichero por lotes, en las variables de entorno... pero sigue sin encontrar dicha libreria. te agradeceria me echases una mano. Un Saludo Javier
Comunicacion Serie
Javier, Aqui tienes uuid.lib: <!-- m --><a class="postlink" href="http://hyperupload.com/download/0283449120/uuid.lib.html">http://hyperupload.com/download/0283449 ... d.lib.html</a><!-- m -->
Comunicacion Serie
Hola de nuevo Antonio, he compilado con el obj que me pasaste pero me sigue sin funcionar. El ejecutable lo construyo con el siguiente comando: "Buildc3 testcom3", y el contenido del fichero por lotes es el siguiente: @ECHO OFF CLS ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ECHO ³ FiveWin for C3 - August 2004 C3 development power ³Ü ECHO ³ (c) FiveTech, 1993-2004 for MS Windows 9x, NT, 2000/3, ME and XP ³Û ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß SET C3DIR=i:\C3 SET LIB=..\LIB;i:\C3\LIB32 if A%1 == A GOTO :SINTAX if NOT EXIST %1.prg GOTO :NOEXIST ECHO Compiling... %C3DIR%\bin\c3 %1 -D__C3__ /n/a/v/w/i..\include > comp.log @type comp.log IF ERRORLEVEL 1 PAUSE IF ERRORLEVEL 1 GOTO EXIT :ENDCOMPILE IF EXIST %1.rc i:\bcc55\bin\brc32 -r %1 ECHO Linking... echo %C3DIR%\lib32\startup.obj + > b32.bc echo %1.obj + >> b32.bc [b:2m0hp2nx]echo i:\clipper5\fwc3\samples\comm.obj, + >> b32.bc <<<<< AQUI LE HE PUESTO EL MODULO QUE ME SASASTE[/b:2m0hp2nx] echo %1.exe, + >> b32.bc echo %1.map, + >> b32.bc echo ..\lib\fivec3.lib + >> b32.bc echo ..\lib\fivec3c.lib + >> b32.bc echo objt32.lib + >> b32.bc echo ccc32.lib + >> b32.bc echo extend32.lib + >> b32.bc echo dbfcdx32.lib + >> b32.bc echo winapi32.lib, >> b32.bc IF EXIST %1.res echo %1.res >> b32.bc %C3DIR%\bin\tlink32 -Tpe -aa -c -m -V4.0 -L%C3DIR%\LIB32 @b32.bc IF ERRORLEVEL 1 GOTO LINKERROR ECHO * Application successfully built %1 GOTO EXIT :LINKERROR PAUSE * Linking errors * GOTO EXIT :SINTAX ECHO SYNTAX: Buildc3 [Program] {-- No especifiques la extensi¢n .PRG ECHO {-- Don't specify .PRG extension GOTO EXIT :NOEXIST ECHO Not exists the specified PRG :EXIT le he añadido puntualmente la linea que te marco en negrita pero no se si es correcto. Gracias Un Saludo Javier
Comunicacion Serie
Javier, Sí, es correcto. Te construye el EXE bien, si ? Que error te da ? Puedes proporcionar un pequeño ejemplo, autocontenido, que reproduzca el error ? gracias
Comunicacion Serie
Hola Antonio, el fichero que estoy compilando es Testcom3.prg que esta en el directorio Samples de FWC3 y que me biene perfecto para probar un pequeño montaje con un pic. El caso es que al compilar y enlazar con la version de C3 no me da ningun error, se construye el exe sin problemas y al ejecutarlo, muestra una ventana vacia. Esta ventana deberia mostrar una cadena de caracter en el momento que entra por el puerto serie, pero como te digo no hace nada. Sin embargo este mismo ejemplo lo compilo y enlazo con la version FW21 para clipper y funciona perfectamente. Como te comentaba al principio, conecado al Com1 tengo un pequeño montaje con un pic 16f84 programado en C que envia una cadena de caracteres cada cierto tiempo a dicho puerto. El puerto esta configurado de la siguiente forma: velocidad: 57600 paridad: n bits: 8 parada: 1 Si ejecuto el programa compilado con FW21 lee perfectamente el puerto y muestra el contenido, pero al compilarlo FWC3 no da errores pero no funciona (enlazado con el modulo que me pasaste). Estoy un poco desorientado porque no tengo manera de leer el puerto y tampoco quisiera hacer la aplicacion en 16 bits. Si me pudieras echar una mano te lo agradeceria. Un Saludo Javier Morales
Comunicacion Serie
Javier, Modifica esta línea en samples\TestCom3.prg y debe funcionar bien: if ! SetCommState( cDcb ) por if ! SetCommState( nComm, cDcb )
Comunicacion Serie
ok. lo pruebo y te comento Gracias Javier
Comunicacion Serie
Javier, Funcionó bien ?
Comunicacion con dispositivos-[DTR/RTS]
Muy buenas, tengo un dispositivo y me gustaría saber como puedo activar y desactivar DTR y RTS del protocolo serie, es decir, ¿alguien tiene un ejemplo de como hacer esto cada vez que quiera escribir en el dispositivo? Un Saludo.
Comunicacion con dispositivos-[DTR/RTS]
Juan, Esto puede serte útil: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=17503&start=0&hilit=DTR">viewtopic.php?f=3&t=17503&start=0&hilit=DTR</a><!-- l -->
Comunicacion con el Puerto Serial
Buenas Tardes amigos del foro Tengo un problema el cual no se como hacer estoy conectando una caja registradora con mi sistema las gente de The factory me dice que si se puede conectar y ya lo he visto en dos oportunidades en comercio que funciona el problema es el siguiente estoy mandando una serie de comandos al puerto serial este abre el puerto sin ningún problema y le doy la instrucciones para que me saque el ticket y lo saca perfectamente pero no me reconoce la instrucción de totalizar el ticket esta es la instrucción que le mando a la caja: nComm := OpenComm( "COM1", 1024, 128 ) cVar:="1"+chr(13) WriteComm(nComm,cVar) El Valor : "1" = Codigo del Plu o Codigo de Barra interno de la caja El Valor : CHR(13) = Es como si le oprimiera intro o Enter con este comando imprime el ticket perfectamente pero todavía falta el totalizar el ticket Cuando le envio el valor de la tecla END o FIN del teclado el puerto no me lo reconoce El valor Seria : CHR(6) En este caso seria asi: cVar:="1"+chr(13)+CHR(6) WriteComm(nComm,cVar) Al hacer esto no hace nada la caja registradora en THE FACTORY me dice que se puede pero no saben los comandos a enviar Si coloco un teclado por puerto ps2 de la caja y empiezo a factura por el factura perfectamente y finaliza pero cunado lo conecto por puerto RS232 solo me reconoce los comandos "1"+CHR(13) No me reconoce mas comandos por ejemplo con el teclado preciono la tecla "1" luego la tecla "INTRO/ENTER" y luego la tecla "END/FIN" y saca y totaliza el ticket perfectamente pero al conectarme por puerto serial RS232 solo me reconoce el 1 y la el comando CHR(13) que es INTRO Sera que estoy enviando algún comando mal o me falta una secuencia para que el puerto me reconozca la tecla "END" por puerto serial Gracias si alguien sabe o a hecho algo igual se lo agradecería
Comunicacion con el Puerto Serial
El valor de la tecla End es: #define VK_END 35 prueba a enviar ese valor en vez del 6
Comunicacion con el Puerto Serial
Gracias antonio Ya probé con todo eso me mandaron un dll con su fuente creado en visual studio C# con algunos comandos voy a ver como lo paso a fivewin
Comunicación de puerto COM con Impresora Fiscal
Hola amigos, tengo una rutina desarrollada en Clipper+Clipper Tools que realiza la comunicación y la impresión de Facturas y demás comprobantes fiscales. Me llegó la hora de pasarlas a FW, sólo que las funciones de ClipperTools, como COM_OPEN, COM_CLOSE, COM_FLUSH no funcionan. Si he encontrado en el foro, que existen funciones como OpenComm,CloseComm,FlushComm, el tema es que necesito algunas funciones más y saber como se utilizan éstas, otras que uso son COM_SETIO,COM_SETIRQ,COM_INIT,COM_READ,COM_COUNT. Si alguien tiene una rutina de comunicación con la IF, les agradecería mucho me ayudaran con éste tema. Gracias a todos. Roberto PD: Aclaro que es con Harbour.
Comunicación de puerto COM con Impresora Fiscal
Apertura y seteo del puerto [code=fw:2f4ng7mb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> abrirport<span style="color: #000000;">&#40;</span>n<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> IdPort,cDcb,nError<br />IdPort := OpenComm<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"COM"</span>+STR<span style="color: #000000;">&#40;</span>n,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1024</span>,<span style="color: #000000;">256</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">IF</span> IdPort <= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;nError = GetCommError<span style="color: #000000;">&#40;</span> IdPort<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error al abrir: "</span> + Str<span style="color: #000000;">&#40;</span> nError <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp;MsgRun<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Puerto abierto como "</span> + STR<span style="color: #000000;">&#40;</span>IdPort<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> ! BuildCommDcb<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"COM"</span>+STR<span style="color: #000000;">&#40;</span>n,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">":9600,n,8,1"</span> , @cDcb<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nError = GetCommError<span style="color: #000000;">&#40;</span> IdPort<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error al Configurar: "</span> + Str<span style="color: #000000;">&#40;</span> nError <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp;MsgRun<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Puerto Configurado"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> ! SetCommState<span style="color: #000000;">&#40;</span> IdPort, cDcb <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nError = GetCommError<span style="color: #000000;">&#40;</span> IdPort<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error al setear: "</span> + Str<span style="color: #000000;">&#40;</span> nError <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp;MsgRun<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Puerto Seteado"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> IdPort</div>[/code:2f4ng7mb] Escribir en el puerto [code=fw:2f4ng7mb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#40;</span>nBytes := WriteComm<span style="color: #000000;">&#40;</span> port,string<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> < <span style="color: #000000;">0</span></div>[/code:2f4ng7mb] Leer desde el puerto [code=fw:2f4ng7mb]<div class="fw" id="{CB}" style="font-family: monospace;">nBytes := ReadComm<span style="color: #000000;">&#40;</span> port,@string<span style="color: #000000;">&#41;</span></div>[/code:2f4ng7mb] Cerrar Puerto [code=fw:2f4ng7mb]<div class="fw" id="{CB}" style="font-family: monospace;">CloseComm<span style="color: #000000;">&#40;</span>port<span style="color: #000000;">&#41;</span></div>[/code:2f4ng7mb] Todo esto lo utilizaba hace tiempo para comunicarme con Registradoras Fiscales por puerto serial. Igualmente, hay librerias de tercero, economicas, que puedes utilizar para la comunicacion con impresores fiscales. Espero te haya servido. Saludos
Comunicación de puerto COM con Impresora Fiscal
Hola gracias por tu respuesta, la consulta es: porque me indicas que hay librerías de terceros? Este comunicación que me pasaste el ejemplo, no te funciona correctamente? Es por eso? Mil gracias! Roberto
Comunicación de puerto COM con Impresora Fiscal
[quote="TOTOVIOTTI":4wsa2rwq]Hola gracias por tu respuesta, la consulta es: porque me indicas que hay librerías de terceros? Este comunicación que me pasaste el ejemplo, no te funciona correctamente? Es por eso? Mil gracias! Roberto[/quote:4wsa2rwq] Esto, como te dije, lo utilice muy bien para Registradoras (Tipo NCR 2050), no para Controladores fiscales. El trabajo con el controlador fiscal es mas ida y vuelta, mas ONLINE, por eso para mis programas decidi usar una libreria que resolvia todo el tema de la comunicacion con cada modelo de impresor fiscal (en mi caso tenia desarrollos para Epson, Hasar y NCR en varios de sus modelos). Por ese motivo, decidi invertir en trabajo ya desarrollado y me facilito el trabajo a mi. Pero esto es solo una posicion, creo que tranquilamente, con estos comandos, puedes reemplazar los del viejo CATOOLS, y hacerlo "artesanalmente". Te comente lo de las librerías solamente para que tuvieses otra opcion... Saludos
Comunicación de puerto COM con Impresora Fiscal
Si enlazas la librería de Harbour/xHarbour que se llamam HBCOMM.LIB tienes todas estas funciones: [b:2atn0hki]INIT_PORT[/b:2atn0hki] // Open port and créate handle [b:2atn0hki]OUTBUFCLR[/b:2atn0hki] // purge output buffer -> Limpeza da Saida do Buffer [b:2atn0hki]ISWORKING[/b:2atn0hki] // See if port is opened correctly [b:2atn0hki]INCHR[/b:2atn0hki] // get char/s [b:2atn0hki]OUTCHR[/b:2atn0hki] // Send out characters. Returns .t. if successful. [b:2atn0hki]INBUFSIZE[/b:2atn0hki] // Find out how many chars are in input buffer [b:2atn0hki]OUTBUFSIZE[/b:2atn0hki] // Find out how many characters are in out buf [b:2atn0hki]UNINT_PORT[/b:2atn0hki] // Close port and clear handle Ejemplo de PRG: [code=fw:2atn0hki]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> IN_BUFFER  <span style="color: #000000;">128</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> nComm,cBuffer,nBytes<br /><br />nComm:=Init_Port<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"COM3"</span>,<span style="color: #000000;">115200</span>,<span style="color: #000000;">8</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">4000</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> nComm<=<span style="color: #000000;">0</span><br />   MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Error al abrir puerto"</span><span style="color: #000000;">&#41;</span><br />   UnInt_Port<span style="color: #000000;">&#40;</span>nComm<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #00C800;">endif</span><br /><br />OutBufClr<span style="color: #000000;">&#40;</span>nComm<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Limpa el Buffer de Salida</span><br />OutChr<span style="color: #000000;">&#40;</span>nComm,<span style="color: #ff0000;">"Texto a enviar..."</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Envia datos</span><br /><br />cBuffer:=Space<span style="color: #000000;">&#40;</span>IN_BUFFER<span style="color: #000000;">&#41;</span><br />nBytes:=InbufSize<span style="color: #000000;">&#40;</span>nComm<span style="color: #000000;">&#41;</span><br />InChr<span style="color: #000000;">&#40;</span>nComm,nBytes,@cBuffer<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Lee buffer de entrada</span><br /><br />UnInt_Port<span style="color: #000000;">&#40;</span>nComm<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2atn0hki]
Comunicación de puerto COM con Impresora Fiscal
Gracias a ambos! Estoy armando algo entre las dos ideas... vamos a ver que sale. Me quedan un par de dudas... como debo definir el cString del ReadComm, carácter de cuanto? De que depende la cantidad de bytes que lee? Y la segunda, como reemplazar el COM_COUNT y la COM_SCOUNT.... creo que va por el lado del ReadComm... pero no sé, estoy haciendo pruebas... Gracias!
Comunicación de puerto COM con Impresora Fiscal
[quote="TOTOVIOTTI":37z3s0oq]Gracias a ambos! Estoy armando algo entre las dos ideas... vamos a ver que sale. Me quedan un par de dudas... como debo definir el cString del ReadComm, carácter de cuanto? De que depende la cantidad de bytes que lee? Y la segunda, como reemplazar el COM_COUNT y la COM_SCOUNT.... creo que va por el lado del ReadComm... pero no sé, estoy haciendo pruebas... Gracias![/quote:37z3s0oq] hola yo estoy en las misma,, con que marca de impresora estas trabajando
Comunicación de puerto COM con Impresora Fiscal
No se sI hay diferencia con las impresoras IBM. Tengo un impresora Epson TM-U220 conectada en el puerto serial. Lo único que hice fue compartirla y utilizar la función PrintFileRaw( "\\MIPC\TM-220", cFilePRN ) Saludos, Adhemar
Comunicación de puerto COM con Impresora Fiscal
[quote="acuellar":lmjyeezo]No se sI hay diferencia con las impresoras IBM. Tengo un impresora Epson TM-U220 conectada en el puerto serial. Lo único que hice fue compartirla y utilizar la función PrintFileRaw( "\\MIPC\TM-220", cFilePRN ) Saludos, Adhemar[/quote:lmjyeezo] Hola Adhemar LA impresoras fiscal no son iguales que las normales, estas son distintas, tienes que enviar y leer informacion de ellas
Comunicación vía Chat desde nuestro Aplicativo
Estimados.... Algun ejemplo de comunicarnos desde nuestro aplicativo via Chat <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> muchas gracias David
Comunicación vía Chat desde nuestro Aplicativo
IDEA: puede usar WINEXEC para llamar el link abajo: <!-- m --><a class="postlink" href="http://www.lightirc.com/start/?host=irc.lightirc.com&autojoin=%23NOME_DO_CANAL&language=br&webcam=false&webcamShowOnStartup=false&nick=NOME_DO_USUARIO&showMenuButton=false&showListButton=false&showEmoticonsButton=true&showRichTextControls=false&showTranslationButton=false&showServerWindow=false&showChannelHeader=false&showInfoMessages=false&useUserListIcons=false&showTimestamps=true&soundAlerts=true&showNewQueriesInBackground=true&soundOnNewChannelMessage=true&styleURL=css%2Fblue.css">http://www.lightirc.com/start/?host=irc ... 2Fblue.css</a><!-- m --> Customization Parameter: <!-- m --><a class="postlink" href="http://redmine.lightirc.com/projects/lightirc/wiki/Customization_parameter">http://redmine.lightirc.com/projects/li ... _parameter</a><!-- m -->
Comunicar 2 terminales en una LAN (SOLUCIONADO)
Amigos foreros: Tengo el reto de comunicar 2 terminales (PC) en una LAN, me explico, necesito que cuando en una terminal terminen de registrar un nuevo pedido se envíe un mensaje (ALERT) a una terminal X avisando que ya hay un nuevo pedido. Alguien que me tire una hebra para saber por donde jalar?? Saludos
Comunicar 2 terminales en una LAN (SOLUCIONADO)
Armando buenas tardes SOLO una idea Crear una tabla en modo comartico con campos como id_term nom_term mensaje usuario Leido indexada por medio de id_terminal donde se graba la factura o pedido abres esa tabla y grabas un registro con la informacion del terminal donde debe ser leído el nombre de tu terminal escribes el mensaje y en el otro terminal lo abres en base al id_term y lo muestras y eliminas ese registro o lo marcas como leído Bueno solo es una idea saludos Wilson
Comunicar 2 terminales en una LAN (SOLUCIONADO)
[quote="Armando":207nwng3]Amigos foreros: Tengo el reto de comunicar 2 terminales (PC) en una LAN, me explico, necesito que cuando en una terminal terminen de registrar un nuevo pedido se envíe un mensaje (ALERT) a una terminal X avisando que ya hay un nuevo pedido. Alguien que me tire una hebra para saber por donde jalar?? Saludos[/quote:207nwng3] Antiguamente se utilizaba los comandos de Sistema Operativo net send y/o el comando msg Tambien hay utilidades para esta funcionalidad, por ejemplo: <!-- m --><a class="postlink" href="http://www.zhornsoftware.co.uk/stickies/">http://www.zhornsoftware.co.uk/stickies/</a><!-- m -->
Comunicar 2 terminales en una LAN (SOLUCIONADO)
Amigos: Wilson, gracias por la idea, aunque el problema que tengo es ¿Cómo enviar el mensaje a la otra terminal? Cristóbal: También gracias por el tip, voy a leer más a detalle la idea que me aportas, puede ser! Recuerdo que alguna vez alguien del foro publico el código para conectar/chatear de PC a PC, pero ahora que lo necesito no lo encuentro <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> Alguien más con más ideas? Saludos
Comunicar 2 terminales en una LAN (SOLUCIONADO)
Wilson: Dándole vuelta a tu idea, con un pequeño cambio, puede ser la solución. El cambio sería: Crear un timer para que la opción del usuario receptor, cada x tiempo, "vea" si hay algo nuevo en la tabla abra un dialogo con la información necesaria permitiendo al usuario borrar el mensaje. Creo que por ahí pueden ir los tiros. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Alguna otra idea? Saludos al foro
Comunicar 2 terminales en una LAN (SOLUCIONADO)
mi estimado: una vez descargue esos ejemplos, los voy a buscar y si los encuentro los publico, eran del foro de clipper hace muchos años. saludos.
Comunicar 2 terminales en una LAN (SOLUCIONADO)
[url:24hhs9ni]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=28575&p=160014&hilit=CHATTER#p160014[/url:24hhs9ni]
Comunicar 2 terminales en una LAN (SOLUCIONADO)
Tocayo Lagunas: Muchas gracias por la intención. Karinha ya puso el link. Karinha: Muchas gracias por el link, ahora tengo mas opciones. Grandioso foro. Saludos
Comunicar 2 terminales en una LAN (SOLUCIONADO)
Amigos: Pues ya quedó resuelto el problema, la solución fue tomar la idea de Wilson y con el Timer y algunos otros detalles ha quedado resuelto mi problema. Gracias a todos Saludos foreros
Comunicar 2 terminales en una LAN (SOLUCIONADO)
Armando muy bien !!! Si compartes algo de codigo se agradece saludos Wilson
Comunicar 2 terminales en una LAN (SOLUCIONADO)
Wilson: Que parte del código te interesa?, uso ADO! Saludos
Comunicar 2 terminales en una LAN (SOLUCIONADO)
La parte visual y algo del proceso gracias Wilson pd: Muy interesante seria crear una clase en base a tu codigo para separar componentes e ir generando una usable por todos, ya que por ejemplo yo trabajo con adsntx
Comunicar 2 terminales en una LAN (SOLUCIONADO)
Wilson y amigos del foro: La idea es que cuando una PC términal registra una nueva orden de fabricación, el área de fabricación reciba un aviso inmediatamente. Siguiendo tu idea, cree una tabla donde se registra número de orden, fecha y hora de la nueva orden de fabricación. [code=fw:2kjlt0ah]<div class="fw" id="{CB}" style="font-family: monospace;"><br />            <span style="color: #B900B9;">// Agregamos la orden a los avisos</span><br />            cCmdSql := <span style="color: #ff0000;">"INSERT INTO "</span> +;<br />                                <span style="color: #ff0000;">"Avisos "</span> +;<br />                            <span style="color: #ff0000;">"SET "</span> +;<br />                                <span style="color: #ff0000;">"Avi_Ord = "</span> + STR<span style="color: #000000;">&#40;</span>oOrd:<span style="color: #000000;">ORD</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">","</span> +;<br />                                <span style="color: #ff0000;">"Avi_Rev = "</span> + STR<span style="color: #000000;">&#40;</span>oOrd:<span style="color: #000000;">REV</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">","</span> +;<br />                                <span style="color: #ff0000;">"Avi_Usu = 'Jesus A',"</span> +;<br />                                <span style="color: #ff0000;">"Avi_Fde = '"</span> + DTOS<span style="color: #000000;">&#40;</span>DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"',"</span> +;<br />                                <span style="color: #ff0000;">"Avi_Hde = '"</span> + TIME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"',"</span> +;<br />                                <span style="color: #ff0000;">"Avi_Lei = "</span> + STR<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2kjlt0ah] En el PRG main() puse un Timer para que cada x tiempo, en mi caso 5 minutos "vea" si hay nuevos registros en la tabla AVISOS [code=fw:2kjlt0ah]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> Tiempo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #B900B9;">// 60,000 es igual a 1 minuto, se crea y se activa solo una vez</span><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">OF</span> oWindow <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">10000</span> <span style="color: #0000ff;">ACTION</span> Revisar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oTimer:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> Revisar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">LOCAL</span> oRsAvi<br />    <span style="color: #00C800;">LOCAL</span> oDlg<br />    <span style="color: #00C800;">LOCAL</span> aGets := ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">LOCAL</span> oSays<br />    <span style="color: #00C800;">LOCAL</span> cSays<br />    <span style="color: #00C800;">LOCAL</span> oFont1<br />    <span style="color: #00C800;">LOCAL</span> oFont2<br /><br />    <span style="color: #00C800;">LOCAL</span> nDiaDif   := <span style="color: #000000;">0</span><br /><br />    <span style="color: #00C800;">LOCAL</span> oAceptar<br /><br />    <span style="color: #00C800;">IF</span> lVentana<br />    lVentana    := <span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />        oSays       := ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">08</span><span style="color: #000000;">&#41;</span><br />        cSays       := ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">08</span><span style="color: #000000;">&#41;</span><br /><br />        <span style="color: #00C800;">TRY</span><br />            oRsAvi:=    TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"adodb.recordset"</span><span style="color: #000000;">&#41;</span><br />        CATCH oError<br />            MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se ha podido crear el RECORDSET de MENSAJES !"</span>, oApp:<span style="color: #000000;">cAplicacion</span><span style="color: #000000;">&#41;</span><br />            ShowError<span style="color: #000000;">&#40;</span>oError<span style="color: #000000;">&#41;</span><br />            oRsAvi  :=  <span style="color: #00C800;">NIL</span><br />            <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />        END<br /><br />        oRsAvi:<span style="color: #000000;">CursorLocation</span>   := adUseClient<br />        oRsAvi:<span style="color: #000000;">LockType</span>         := adLockOptimistic<br />        oRsAvi:<span style="color: #000000;">CursorType</span>           := adOpenDynamic<br />        oRsAvi:<span style="color: #000000;">Source</span>               := <span style="color: #ff0000;">"SELECT "</span> +;<br />                                                <span style="color: #ff0000;">"* "</span> +;<br />                                            <span style="color: #ff0000;">"FROM "</span> +;<br />                                                <span style="color: #ff0000;">"Avisos "</span> +;<br />                                            <span style="color: #ff0000;">"WHERE "</span> +;<br />                                                <span style="color: #ff0000;">"! AVI_LEI"</span><br /><br />        oRsAvi:<span style="color: #000000;">ActiveConnection</span><span style="color: #000000;">&#40;</span>oApp:<span style="color: #000000;">oCon</span><span style="color: #000000;">&#41;</span><br /><br />        <span style="color: #00C800;">TRY</span><br />            oRsAvi:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        CATCH oError<br />            MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se ha podido abrir el RECORDSET Mensajes !"</span>, oApp:<span style="color: #000000;">cAplicacion</span><span style="color: #000000;">&#41;</span><br />            ShowError<span style="color: #000000;">&#40;</span>oError<span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />        END<br /><br />        <span style="color: #00C800;">IF</span> oRsAvi:<span style="color: #000000;">BOF</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .AND. oRsAvi:<span style="color: #000000;">EOF</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">ELSE</span><br />            oRsAvi:<span style="color: #000000;">MoveFirst</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> ! oRsAvi:<span style="color: #000000;">EOF</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                nDiaDif := <span style="color: #0000ff;">ROUND</span><span style="color: #000000;">&#40;</span>DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - oRsAvi:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"AVI_FDE"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br />                <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />                    <span style="color: #00C800;">CASE</span> nDiaDif == <span style="color: #000000;">0</span><br />                        cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>   := <span style="color: #ff0000;">"Hoy:"</span><br />                    <span style="color: #00C800;">CASE</span> nDiaDif == <span style="color: #000000;">1</span><br />                        cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>   := <span style="color: #ff0000;">"Ayer:"</span><br />                    <span style="color: #00C800;">CASE</span> nDiaDif == <span style="color: #000000;">2</span><br />                        cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>   := <span style="color: #ff0000;">"Antier:"</span><br />                    OTHER<br />                        cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>   := <span style="color: #ff0000;">"El día:"</span><br />                <span style="color: #00C800;">ENDCASE</span><br />                cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span>   := DATE2TXT<span style="color: #000000;">&#40;</span>oRsAvi:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"AVI_FDE"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span><br />                cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span>   := <span style="color: #ff0000;">"A las"</span><br />                cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">04</span><span style="color: #000000;">&#93;</span>   := TIME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span>   := <span style="color: #ff0000;">"Se registró la nueva orden"</span><br />                cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">06</span><span style="color: #000000;">&#93;</span>   := TRANSFORM<span style="color: #000000;">&#40;</span>oRsAvi:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"AVI_ORD"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #ff0000;">"@Z 9999999"</span><span style="color: #000000;">&#41;</span><br />                cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">07</span><span style="color: #000000;">&#93;</span>   := <span style="color: #ff0000;">"Rev:"</span><br />                cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">08</span><span style="color: #000000;">&#93;</span>   := TRANSFORM<span style="color: #000000;">&#40;</span>oRsAvi:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"AVI_REV"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #ff0000;">"@ 99"</span><span style="color: #000000;">&#41;</span><br /><br />                <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br />                <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-20</span> BOLD<br />                <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"SndMsg"</span> <span style="color: #0000ff;">OF</span> oWindow COLORS CLR_WHITE,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">060</span>,<span style="color: #000000;">097</span>,<span style="color: #000000;">145</span><span style="color: #000000;">&#41;</span><br /><br />                <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont1;<br />                        COLORS CLR_WHITE,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">060</span>,<span style="color: #000000;">097</span>,<span style="color: #000000;">145</span><span style="color: #000000;">&#41;</span><br />                <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont2;<br />                        COLORS CLR_WHITE,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">060</span>,<span style="color: #000000;">097</span>,<span style="color: #000000;">145</span><span style="color: #000000;">&#41;</span><br />                <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont1;<br />                        COLORS CLR_WHITE,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">060</span>,<span style="color: #000000;">097</span>,<span style="color: #000000;">145</span><span style="color: #000000;">&#41;</span><br />                <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">04</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">04</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">104</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont2;<br />                        COLORS CLR_WHITE,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">060</span>,<span style="color: #000000;">097</span>,<span style="color: #000000;">145</span><span style="color: #000000;">&#41;</span><br />                <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">105</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont1;<br />                        COLORS CLR_WHITE,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">060</span>,<span style="color: #000000;">097</span>,<span style="color: #000000;">145</span><span style="color: #000000;">&#41;</span><br /><br />                    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> oRsAvi:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"AVI_ORD"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">106</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span>;<br />                        <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span> .AND. <span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont2;<br />                        <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K 999999"</span><br />                <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">07</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cSays<span style="color: #000000;">&#91;</span><span style="color: #000000;">07</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">107</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont1;<br />                        COLORS CLR_WHITE,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">060</span>,<span style="color: #000000;">097</span>,<span style="color: #000000;">145</span><span style="color: #000000;">&#41;</span><br /><br />                    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> oRsAvi:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"AVI_REV"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">108</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span>;<br />                        <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span> .AND. <span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont2;<br />                        <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K 99"</span><br /><br />                    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oAceptar <span style="color: #0000ff;">ID</span> <span style="color: #000000;">901</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span>;<br />                        <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>UpdAvi<span style="color: #000000;">&#40;</span>oRsAvi<span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />                <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> SetWindowPos<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />                oRsAvi:<span style="color: #000000;">MoveNext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">ENDDO</span><br />            lVentana    := <span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #B900B9;">/*<br />* --------------------------------------------------------------------------*<br />* --------------------------------------------------------------------------*<br />*/</span><br /><span style="color: #00C800;">FUNCTION</span> UpdAvi<span style="color: #000000;">&#40;</span>oRsAvi<span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">LOCAL</span> cCmdSql   := <span style="color: #ff0000;">""</span><br /><br />    cCmdSql := <span style="color: #ff0000;">"UPDATE "</span> +;<br />                        <span style="color: #ff0000;">"Avisos "</span> +;<br />                    <span style="color: #ff0000;">"SET "</span> +;<br />                        <span style="color: #ff0000;">"AVI_LEI = ! AVI_LEI,"</span>+;<br />                        <span style="color: #ff0000;">"AVI_FDL = '"</span> + DTOS<span style="color: #000000;">&#40;</span>DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"',"</span> +;<br />                        <span style="color: #ff0000;">"AVI_HDL = '"</span> + TIME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"' "</span> +;<br />                    <span style="color: #ff0000;">"WHERE "</span> +;<br />                        <span style="color: #ff0000;">"AVI_ORD = "</span> + STR<span style="color: #000000;">&#40;</span>oRsAvi:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"AVI_ORD"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" "</span> +;<br />                    <span style="color: #ff0000;">"AND "</span> +;<br />                        <span style="color: #ff0000;">"AVI_REV = "</span> + STR<span style="color: #000000;">&#40;</span>oRsAvi:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"AVI_REV"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">TRY</span><br />        oApp:<span style="color: #000000;">oCon</span>:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span>cCmdSql<span style="color: #000000;">&#41;</span><br />    CATCH oError<br />        <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No pude ejecutar el comando "</span> + cCmdSql,oApp:<span style="color: #000000;">cAplicacion</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />    END<br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br /> </div>[/code:2kjlt0ah] Si hay registros nuevos son mostrados en un diálogo ON TOP y espera respuesta del usuario del área de producción, cuando el usuario da clic sobre el botón ENTERADO se actualiza la tabla con fecha y hora en que se dio clic. Es muy simple. Esta es la imagen [img] <!-- m --><a class="postlink" href="http://postimg.org/image/6cegtrckp/">http://postimg.org/image/6cegtrckp/</a><!-- m -->[/img]
Comunicar 2 terminales en una LAN (SOLUCIONADO)
Armando Muchas gracias Wilson
Comunicarse con un server o una base de datos...
En un Pc uso ODBC y en FWPPC que se usa ? Existe ODBC ? O se realiza la comunicacion por otro medio ? Les agradeceria ( si existen ) ejemplos y explicaciones Saludos a todos
Comunicarse con un server o una base de datos...
aqui escribi algo que podria serle de utilidad.. <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=7202">http://fivetechsoft.com/forums/viewtopic.php?t=7202</a><!-- m -->
Comunicaçao entre Pocket e PC ?
Boa Tarde; Tenho que transmitir o Banco de Dados do Palm para o PC via Wireless. Gostaria de saber que classe usar ? Seria via FTP ? Alguem tem algum exemplo pra eu dar uma olhada ? @braços Ale
Comunicaçao entre Pocket e PC ?
Hola Ale... Si quieres puedes probar con el siguiente codigo via ftp. A mi me ha funcionado... Solo debes modificar un par de cosillas, la ip del ftp, el usuario, la contraseña, el directorio remoto y el local. Espero te sirva.. Por cierto este codigo es del ftp.prg del directorio samples..... // FTP sample developed by Enrico Maria Giordano #include "Fwce.ch" // // File attributes // #define FILE_ATTRIBUTE_READONLY 1 #define FILE_ATTRIBUTE_HIDDEN 2 #define FILE_ATTRIBUTE_SYSTEM 4 #define FILE_ATTRIBUTE_DIRECTORY 16 #define FILE_ATTRIBUTE_ARCHIVE 32 #define FILE_ATTRIBUTE_NORMAL 128 #define FILE_ATTRIBUTE_TEMPORARY 256 // // access types for InternetOpen() // #define INTERNET_OPEN_TYPE_PRECONFIG 0 // use registry configuration #define INTERNET_OPEN_TYPE_DIRECT 1 // direct to net #define INTERNET_OPEN_TYPE_PROXY 3 // via named proxy #define INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY 4 // prevent using java/script/INS // // manifests // #define INTERNET_INVALID_PORT_NUMBER 0 // use the protocol-specific default #define INTERNET_DEFAULT_FTP_PORT 21 // default for FTP servers #define INTERNET_DEFAULT_GOPHER_PORT 70 // " " gopher " #define INTERNET_DEFAULT_HTTP_PORT 80 // " " HTTP " #define INTERNET_DEFAULT_HTTPS_PORT 443 // " " HTTPS " #define INTERNET_DEFAULT_SOCKS_PORT 1080 // default for SOCKS firewall servers. // // service types for InternetConnect() // #define INTERNET_SERVICE_FTP 1 #define INTERNET_SERVICE_GOPHER 2 #define INTERNET_SERVICE_HTTP 3 // // flags for FTP // #define INTERNET_FLAG_TRANSFER_ASCII 1 #define INTERNET_FLAG_TRANSFER_BINARY 2 FUNCTION MAIN() LOCAL hInternet, hConnect hInternet = INTERNETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) hConnect = INTERNETCONNECT( hInternet, "Your ftp address", INTERNET_INVALID_PORT_NUMBER, "userid", "password", INTERNET_SERVICE_FTP, 0, 0 ) // ? FTPGETFILE( hConnect, "Your remote file", "Your local file", 0, FILE_ATTRIBUTE_ARCHIVE, 0, 0 ) ? FTPPUTFILE( hConnect, "Your local file", "Your remote file", 0, 0 ) INTERNETCLOSEHANDLE( hConnect ) INTERNETCLOSEHANDLE( hInternet ) RETURN NIL #pragma BEGINDUMP #include "windows.h" #include "wininet.h" #include "hbapi.h" LPWSTR AnsiToWide( LPSTR ); HB_FUNC( INTERNETOPEN ) { LPWSTR cAgent = AnsiToWide( hb_parc( 1 ) ); LPWSTR cProxyName = AnsiToWide( hb_parc( 3 ) ); LPWSTR cProxyBypass = AnsiToWide( hb_parc( 4 ) ); HINTERNET hInternet = InternetOpen( cAgent, hb_parnl( 2 ), cProxyName, cProxyBypass, hb_parnl( 5 ) ); hb_xfree( cAgent ); hb_xfree( cProxyName ); hb_xfree( cProxyBypass ); hb_retnl( ( LONG ) hInternet ); } HB_FUNC( INTERNETCLOSEHANDLE ) { hb_retl( InternetCloseHandle( ( HINTERNET ) hb_parnl( 1 ) ) ); } HB_FUNC( INTERNETCONNECT ) { LPWSTR cServerName = AnsiToWide( hb_parc( 2 ) ); LPWSTR cUserName = AnsiToWide( hb_parc( 4 ) ); LPWSTR cPassword = AnsiToWide( hb_parc( 5 ) ); HINTERNET hInternet = InternetConnect( ( HINTERNET ) hb_parnl( 1 ), cServerName, ( INTERNET_PORT ) hb_parnl( 3 ), cUserName, cPassword, hb_parnl( 6 ), hb_parnl( 7 ), hb_parnl( 8 ) ); hb_xfree( cServerName ); hb_xfree( cUserName ); hb_xfree( cPassword ); hb_retnl( ( LONG ) hInternet ); } HB_FUNC( FTPGETFILE ) { LPWSTR cRemoteFile = AnsiToWide( hb_parc( 2 ) ); LPWSTR cNewFile = AnsiToWide( hb_parc( 3 ) ); hb_retl( FtpGetFile( ( HINTERNET ) hb_parnl( 1 ), cRemoteFile, cNewFile, hb_parl( 4 ), hb_parnl( 5 ), hb_parnl( 6 ), hb_parnl( 7 ) ) ); hb_xfree( cRemoteFile ); hb_xfree( cNewFile ); } HB_FUNC( FTPPUTFILE ) { LPWSTR cLocalFile = AnsiToWide( hb_parc( 2 ) ); LPWSTR cNewRemoteFile = AnsiToWide( hb_parc( 3 ) ); hb_retl( FtpPutFile( ( HINTERNET ) hb_parnl( 1 ), cLocalFile, cNewRemoteFile, hb_parnl( 4 ), hb_parnl( 5 ) ) ); hb_xfree( cLocalFile ); hb_xfree( cNewRemoteFile ); } #pragma ENDDUMP Saludos... Elías Torres
Comunicaçao entre Pocket e PC ?
Gracias Elias, Irei testar. @braços Ale
Comunicação Serial usando a Fivewin
Olá a Todos,Alguem usa a FIVEWIN para comunicação serial ?A principio fiz uns teste com ela e funcionou muito bem, peguei os exemplos aqui do forum e da pasta SAMPLES, mas encontrei dois problemas, um é quando as portas COM são maior que 9, ex: COM10, COM11, COM12 e etc... ele não abre as portas, e outro é usando o TS(Terminal Service). Pelo Hiper Terminal funciona, porem pela Fivewin não funciona, até abre a porta, porem não faz a leitura da porta.Alguem pode me ajudar nessas duas questões ?Obrigado
Comunicação Serial usando a Fivewin
Amigão, eu venho utilizando sem problemas. Porém só testei até a COM9. Então não posso te falar se tem algum problema acima da COM9.
Comunicação Serial usando a Fivewin
E com TS(Terminal Service) já testou ? fiz teste aqui com Hyper terminal do Windows e o mesmo leu minha balança local, usando o terminal service, porem pela LIB da Fivewin não deu certo.
Comunicação Serial usando a Fivewin
E nesse link abaixo pelo que entendi explica como usar portas acima da COM9, porem testei com esse MYOPENCOMM e também não deu certo.<!-- m --><a class="postlink" href="http://www.fivetechsoft.com/forums/viewtopic.php?t=12761&highlight=opencomm">http://www.fivetechsoft.com/forums/view ... t=opencomm</a><!-- m -->
Comunicação Serial usando a Fivewin
Não testei com TS.uso estas funções: local cDcb, nBytes,A local nComm := OpenComm( "COM1", 1024, 128 ) local nError,x,cmsg,CTES,cret,npos,cretbalan if ! BuildCommDcb( "COM1:19200,n,8,1", @cDcb ) nError = GetCommError( nComm ) MsgInfo( "BuildCommDcb Error: " + Str( nError ) ) endif if ! SetCommState( nComm, cDcb ) nError = GetCommError( nComm ) MsgInfo( "SetCommState Error: " + Str( nError ) ) endif if ( nBytes := WriteComm( nComm, chr(5) ) ) < 0 nError = GetCommError( nComm ) MsgInfo( "WriteComm Error: " + Str( nError ) ) else readcomm( nComm, @cretbalan ) endif if FlushComm( nComm, 0 ) != 0 nError = GetCommError( nComm ) MsgInfo( "FlushComm Error: " + Str( nError ) ) endif if ! CloseComm( nComm ) nError = GetCommError( nComm ) MsgInfo( "CloseComm Error: " + Str( nError ) ) endif
Comunicação Serial usando a Fivewin
É assim que estou usando aqui e localmente funciona muito bem por sinal, diria até melhor que a hbcomm. porem só estou com esses dois pequenos problemas de usar em TS e de usar portas alem da COM9.Se alguem mais tiver alguma dica agradeço.
Comunicação Serial usando a Fivewin
Pelo o que pude entender no link abaixo diz que isso é limitado mesmo na OPENCOMM() sobre a COM9 em diante. <!-- m --><a class="postlink" href="http://support.microsoft.com/kb/105010/pt-br">http://support.microsoft.com/kb/105010/pt-br</a><!-- m -->
Comunicação USB?
Amigos, como se comunicar mandar/receber pela porta USB?Seria mais ou menos como se faz com a SERIAL!
Comunicação USB?
SGS,Sí, siempre y cuando estés usando un dispositivo USB-serial (USB serial port).