topic
stringlengths
1
63
text
stringlengths
1
577k
¿Algun servicio de hosting solo para emails gratis?
Gracias amigo, voy a contactar las paginas que me indicas. Agradecido por la ayuda
¿Alguna funcion para enviar email desatendido xHarbour?
Hola a todos. Feliz Tarde de Domingo- ¿Puede alguien darme una mano para enviar emails desatendido con FW17.01+xHarbour? Lo que necesito es que el sistema envie un correo con datos predeterminados y en tiempo de ejecucion, y que sea transparente para el usuario, o sea en segundo plano. Alguna funcion y codigo de ejemplo? Agradecido de antemano con todos.
¿Alguna funcion para enviar email desatendido xHarbour?
Para enviarlos en segundo plano, creo que la solución es utilizar threads. Hay un ejemplo en \samples\threads.prg
¿Alguna funcion para enviar email desatendido xHarbour?
Hola Victor. Gracias por tu ayuda. Ya revise lo que me indicaste pero no veo nada parecido a envios de email. A menos que yo no entienda de que se trata ese .PRG Igual sigo buscando... Muchas Gracias por la colaboracion. Si tienes alguna otra sugerencia, quedo al pendiente. Saludos.
¿Alguna funcion para enviar email desatendido xHarbour?
Disculpa, me he explicado a medias. Threads te servirá para ejecutar el envío de los emails en segundo plano sin que se te pare la ejecución del programa hasta que el email se haya enviado. Otro tema es el envío de emails, para eso puedes mirar el ejemplo testpop3.prg Espero que con esto te sirva. Un saludo.
¿Alguna funcion para enviar email desatendido xHarbour?
[quote="VictorCasajuana":h7adj7bt]Disculpa, me he explicado a medias. Threads te servirá para ejecutar el envío de los emails en segundo plano sin que se te pare la ejecución del programa hasta que el email se haya enviado. Otro tema es el envío de emails, para eso puedes mirar el ejemplo testpop3.prg Espero que con esto te sirva. Un saludo.[/quote:h7adj7bt] NO. Saludos.
¿Alguna funcion para enviar email desatendido xHarbour?
[quote="VictorCasajuana":2fmcesps]Disculpa, me he explicado a medias. Threads te servirá para ejecutar el envío de los emails en segundo plano sin que se te pare la ejecución del programa hasta que el email se haya enviado. Otro tema es el envío de emails, para eso puedes mirar el ejemplo testpop3.prg Espero que con esto te sirva. Un saludo.[/quote:2fmcesps] OOOOkkkkk... gracias por la aclaratoria.. eso tambien es importante, que no se detenga la ejecucion del programa. ya estaba pensando colocar un meter, con eso que dices no hace falta Mil gracias de nuevo victor !!
¿Alguna funcion para enviar email desatendido xHarbour?
[quote="karinha":10c0k6ye][quote="VictorCasajuana":10c0k6ye]Disculpa, me he explicado a medias. Threads te servirá para ejecutar el envío de los emails en segundo plano sin que se te pare la ejecución del programa hasta que el email se haya enviado. Otro tema es el envío de emails, para eso puedes mirar el ejemplo testpop3.prg Espero que con esto te sirva. Un saludo.[/quote:10c0k6ye] NO. Saludos.[/quote:10c0k6ye] ¿¿ NO ??
¿Alguna funcion para enviar email desatendido xHarbour?
[quote="JoseAlvarez":168rd0gj][quote="VictorCasajuana":168rd0gj]Disculpa, me he explicado a medias. Threads te servirá para ejecutar el envío de los emails en segundo plano sin que se te pare la ejecución del programa hasta que el email se haya enviado. Otro tema es el envío de emails, para eso puedes mirar el ejemplo testpop3.prg Espero que con esto te sirva. Un saludo.[/quote:168rd0gj] OOOOkkkkk... gracias por la aclaratoria.. eso tambien es importante, que no se detenga la ejecucion del programa. ya estaba pensando colocar un meter, con eso que dices no hace falta Mil gracias de nuevo victor !![/quote:168rd0gj] de nada Jose, un apunte al respecto, utilizar Threads da mucha posibilidades pero has de tener cuidado con algunas cosas, piensa que son varios procesos paralelos que ejecuta tu aplicación. dichos procesos utilizarán las mismas variables públicas y si utilizas CLASSDATA también. Controla bien esto o te puede llevar un quebradero de cabeza al principio. También tienes forma de "matar" los procesos y comunicarte entre ellos. En este enlace puedes ver más infor de como funcionan los threads, a mi me sirvió de mucho: <!-- m --><a class="postlink" href="http://www.kresin.ru/en/hrbfaq_3.html#Doc11">http://www.kresin.ru/en/hrbfaq_3.html#Doc11</a><!-- m -->
¿Alguna funcion para enviar email desatendido xHarbour?
[quote="karinha":2461jumx][quote="VictorCasajuana":2461jumx]Disculpa, me he explicado a medias. Threads te servirá para ejecutar el envío de los emails en segundo plano sin que se te pare la ejecución del programa hasta que el email se haya enviado. Otro tema es el envío de emails, para eso puedes mirar el ejemplo testpop3.prg Espero que con esto te sirva. Un saludo.[/quote:2461jumx] NO. Saludos.[/quote:2461jumx] Disculpa, no entiendo bien tu respuesta...
¿Alguna funcion para enviar email desatendido xHarbour?
[quote="VictorCasajuana":2vtp0mcj][quote="karinha":2vtp0mcj][quote="VictorCasajuana":2vtp0mcj]Disculpa, me he explicado a medias. Threads te servirá para ejecutar el envío de los emails en segundo plano sin que se te pare la ejecución del programa hasta que el email se haya enviado. Otro tema es el envío de emails, para eso puedes mirar el ejemplo testpop3.prg Espero que con esto te sirva. Un saludo.[/quote:2vtp0mcj] NO. Saludos.[/quote:2vtp0mcj] Disculpa, no entiendo bien tu respuesta...[/quote:2vtp0mcj] Victor ya estoy ptobando lo que me sugeriste. la respuesta que ves NO es del amigo joao. yo tampoco la entendi.
¿Alguna funcion para enviar email desatendido xHarbour?
Jose If your client desktops are using MS OUtlook .. this code works well ... [code=fw:3u94fw0m]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Try</span><br />   oOutLook  := 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;">"Outlook.Application"</span><span style="color: #000000;">&#41;</span><br />Catch<br />    Saying := <span style="color: #ff0000;">"For some Odd reason The Outlook e-mail CLient failed to Initialize"</span><br />    <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span> Saying <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 <span style="color: #00C800;">Try</span><br /><br />oMailItem := oOutLook:<span style="color: #000000;">Invoke</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CreateItem"</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br />oMailitem:<span style="color: #0000ff;">to</span> := cTo<br />*oMailItem:<span style="color: #000000;">Recipients</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> cOther <span style="color: #000000;">&#41;</span><br />oMailitem:<span style="color: #000000;">CC</span> := cCC<br />oMailItem:<span style="color: #0000ff;">Subject</span> := cSubject<br />oMailItem:<span style="color: #000000;">Body</span> := cBody<br /><br /><span style="color: #00C800;">Try</span><br />   oMailItem:<span style="color: #000000;">Attachments</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"c:<span style="color: #000000;">\d</span>btmp<span style="color: #000000;">\"</span>+cEmailName+"</span>.pdf<span style="color: #ff0000;">" )<br />Catch<br />End Try<br /><br />oMailItem:display(.F.)        // sends without any intervention<br />oMailItem:Invoke("</span>Send<span style="color: #ff0000;">")<br />sysrefresh()<br /><br /><br />msginfo( "</span>E-<span style="color: #0000ff;">mail</span> Sent<span style="color: #ff0000;">" )<br /><br /></span></div>[/code:3u94fw0m] Rick Lipkin
¿Alguna funcion para enviar email desatendido xHarbour?
Rick: Thanks for your code. I have a couple of questions for you. First question, how can I know that the mailing failed? Second question, your code works well, when sending the mail shows me Outlook screen for a few seconds, is there a way to avoid it? Best regards
¿Alguna funcion para enviar email desatendido xHarbour?
[quote="Rick Lipkin":wohcsgi8]Jose If your client desktops are using MS OUtlook .. this code works well ... [code=fw:wohcsgi8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Try</span><br />   oOutLook  := 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;">"Outlook.Application"</span><span style="color: #000000;">&#41;</span><br />Catch<br />    Saying := <span style="color: #ff0000;">"For some Odd reason The Outlook e-mail CLient failed to Initialize"</span><br />    <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span> Saying <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 <span style="color: #00C800;">Try</span><br /><br />oMailItem := oOutLook:<span style="color: #000000;">Invoke</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CreateItem"</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br />oMailitem:<span style="color: #0000ff;">to</span> := cTo<br />*oMailItem:<span style="color: #000000;">Recipients</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> cOther <span style="color: #000000;">&#41;</span><br />oMailitem:<span style="color: #000000;">CC</span> := cCC<br />oMailItem:<span style="color: #0000ff;">Subject</span> := cSubject<br />oMailItem:<span style="color: #000000;">Body</span> := cBody<br /><br /><span style="color: #00C800;">Try</span><br />   oMailItem:<span style="color: #000000;">Attachments</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"c:<span style="color: #000000;">\d</span>btmp<span style="color: #000000;">\"</span>+cEmailName+"</span>.pdf<span style="color: #ff0000;">" )<br />Catch<br />End Try<br /><br />oMailItem:display(.F.)        // sends without any intervention<br />oMailItem:Invoke("</span>Send<span style="color: #ff0000;">")<br />sysrefresh()<br /><br /><br />msginfo( "</span>E-<span style="color: #0000ff;">mail</span> Sent<span style="color: #ff0000;">" )<br /><br /></span></div>[/code:wohcsgi8] Rick Lipkin[/quote:wohcsgi8] hello rick Thanks for your collaboration and for the code. To send mail, I use a function since 2000 very simple and effective. It works the same as yours, but in this case I cannot allow that a copy of the mail stay on the sent folder of user's machine because it will be used to send the request for a security key generated by the system. If remain a copy of the mail in the outlook or any other administrator such as thumderbird, incredimail, etc., the user who requests it will be able to see it in the SENT folder since the program generates the password and sends it to the administrator of the system for aprobation. I hope I have explained myself. This is an example of the code i have been using for years [code=fw:wohcsgi8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Static</span> <span style="color: #00C800;">function</span> doit<span style="color: #000000;">&#40;</span>cNombreE,cMailE,aCustomer<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> oMail<br /><span style="color: #00C800;">local</span> cSubject := <span style="color: #ff0000;">'LG Electronics De Venezuela, C.A. (Su orden de reparacion/chequeo ha sido procesada)'</span><br /><span style="color: #00C800;">local</span> cMessage := <span style="color: #ff0000;">'Estimado(s) Sr(es).: '</span>+cNombreE+CRLF<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">MAIL</span> oMail <span style="color: #0000ff;">SUBJECT</span> cSubject <span style="color: #0000ff;">TEXT</span> cMessage<br /><br />  oMail:<span style="color: #000000;">aRecipients</span> = aCustomer<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">MAIL</span> oMail<br /><br /><span style="color: #00C800;">return</span> .t.<br /> </div>[/code:wohcsgi8] As you can see, it is very simple and basic, but so far it has worked well for me. Any suggestions to do it in the background and without using any mail manager?
¿Alguna funcion para enviar email desatendido xHarbour?
[quote="Armando":3kp1hsun]Rick: Thanks for your code. I have a couple of questions for you. First question, how can I know that the mailing failed? Second question, your code works well, when sending the mail shows me Outlook screen for a few seconds, is there a way to avoid it? Best regards[/quote:3kp1hsun] Armando, el código que le mostré a rick, no muestra ni abre el administrador de correo que yo uso que es el THUNDERBIRD, todo es transparente al usuario. No se como se comportará con el outlook. Para afinarla más, se le podría agregar un par de cosas, como un mensaje indicando si el correo se envió con éxito o no y un gif de espera que indique que esta siendo enviado el correo. Si lo haces y te funciona, te acuerdas de este amigo <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
¿Alguna funcion para enviar email desatendido xHarbour?
Armondo Use try\catch [code=fw:1l7xl7cj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Try</span><br />&nbsp; &nbsp;oOutLook: = 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;">"Outlook.Application"</span> <span style="color: #000000;">&#41;</span><br />Catch<br />&nbsp; &nbsp; Saying: = <span style="color: #ff0000;">"For some Odd reason The Outlook e-mail CLient failed to Initialize"</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">Msginfo</span> <span style="color: #000000;">&#40;</span> Saying <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Return</span> <span style="color: #000000;">&#40;</span> .f. <span style="color: #000000;">&#41;</span><br />End <span style="color: #00C800;">Try</span><br /><br /><br />&nbsp;</div>[/code:1l7xl7cj] Rick Lipkin
¿Alguna funcion para enviar email desatendido xHarbour?
[quote="Rick Lipkin":u22e8ghi]Armondo Use try\catch [code=fw:u22e8ghi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Try</span><br />   oOutLook: = 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;">"Outlook.Application"</span> <span style="color: #000000;">&#41;</span><br />Catch<br />    Saying: = <span style="color: #ff0000;">"For some Odd reason The Outlook e-mail CLient failed to Initialize"</span><br />    <span style="color: #0000ff;">Msginfo</span> <span style="color: #000000;">&#40;</span> Saying <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 <span style="color: #00C800;">Try</span><br /><br /><br /> </div>[/code:u22e8ghi] Rick Lipkin[/quote:u22e8ghi] Good ! Thanks a Lot Rick !! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
¿Alguna funcion para enviar email desatendido xHarbour?
Rick: Thanks a lot. Regards
¿Alguna funcion para enviar email desatendido xHarbour?
Todavia sigo sin poder resolver el envio de email... Alguna mano amiga ??
¿Alguna funcion para enviar email desatendido xHarbour?
Cuál es el problema exacto que tienes? Enviado desde mi moto g(7) plus mediante Tapatalk
¿Alguna funcion para enviar email desatendido xHarbour?
José Intenta de ésta forma [code=fw:1ffwilk2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> EnviaCorreo<span style="color: #000000;">&#40;</span>Cuerpo,Asunto,Adj<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">local</span> oMsg := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">local</span> oConf := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Configuration"</span> <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">local</span> cSchema := <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/"</span><br />&nbsp;<span style="color: #00C800;">Local</span> lOk := .T.,oError<br />&nbsp;<br />oError:=<span style="color: #00C800;">NIL</span><br /><span style="color: #00C800;">TRY</span><br />&nbsp;oConf:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#91;</span> cSchema + <span style="color: #ff0000;">"smtpusessl"</span> <span style="color: #000000;">&#93;</span> = .T. <br />&nbsp;oConf:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#91;</span> cSchema + <span style="color: #ff0000;">"smtpauthenticate"</span> <span style="color: #000000;">&#93;</span> = <span style="color: #000000;">1</span><br />&nbsp;oConf:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#91;</span> cSchema + <span style="color: #ff0000;">"sendusername"</span> <span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">"[email protected]"</span> <br />&nbsp;oConf:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#91;</span> cSchema + <span style="color: #ff0000;">"sendpassword"</span> <span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">"password"</span><br />&nbsp;oConf:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#91;</span> cSchema + <span style="color: #ff0000;">"smtpserver"</span> <span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">"smtp.gmail.com"</span><br />&nbsp;oConf:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#91;</span> cSchema + <span style="color: #ff0000;">"sendusing"</span> <span style="color: #000000;">&#93;</span> = <span style="color: #000000;">2</span><br />&nbsp;oConf:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#91;</span> cSchema + <span style="color: #ff0000;">"smtpserverport"</span> <span style="color: #000000;">&#93;</span> = <span style="color: #000000;">465</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp;oConf:<span style="color: #000000;">Fields</span>:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;oMsg:<span style="color: #0000ff;">To</span> = <span style="color: #ff0000;">"[email protected]"</span> <br />&nbsp;oMsg:<span style="color: #0000ff;">From</span> =<span style="color: #ff0000;">"[email protected]"</span><br />&nbsp;oMsg:<span style="color: #0000ff;">Subject</span> = Asunto<br />&nbsp;oMsg:<span style="color: #000000;">HTMLBody</span> = Cuerpo<br />&nbsp;<span style="color: #00C800;">If</span> !Empty<span style="color: #000000;">&#40;</span>Adj<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> File<span style="color: #000000;">&#40;</span>Adj<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oMsg:<span style="color: #000000;">AddAttachment</span><span style="color: #000000;">&#40;</span>Adj<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br />&nbsp;<span style="color: #00C800;">Endif</span><br />&nbsp;oMsg:<span style="color: #000000;">Configuration</span> = oConf<br /><br />&nbsp;oMsg:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />CATCH oError<br />&nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No pudo enviar el correo: "</span> + oError:<span style="color: #000000;">Description</span>, <span style="color: #ff0000;">"Error..."</span> <span style="color: #000000;">&#41;</span><br />&nbsp; lOk:=.F.<br />END<br /><br /><span style="color: #00C800;">Return</span> lOk<br />&nbsp;</div>[/code:1ffwilk2]
¿Alguna funcion para enviar email desatendido xHarbour?
asi hago yo, y salen automaticamente los emails [code=fw:2gw3issn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> GMAILBK <span style="color: #000000;">&#40;</span>cDestino,cAsunto,cTexto,cAdjunto <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> oEmailCfg,oEmailMsg,oError,cHtml<br /><br /><span style="color: #00C800;">Local</span> cServer:= GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"SERVERSTP"</span> ,<span style="color: #ff0000;">""</span>, cIniFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nPortEmail:=VAL<span style="color: #000000;">&#40;</span>GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"EMAILPUERTO"</span>,<span style="color: #ff0000;">"25"</span>, cIniFile<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cEmailFrom:=GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"EMAILFROM"</span> ,<span style="color: #ff0000;">""</span>, cIniFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cEmailUser:=GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"EMAILUSER"</span> ,<span style="color: #ff0000;">""</span>, cIniFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cEmailPass:=GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"EMAILPASSW"</span> ,<span style="color: #ff0000;">""</span>, cIniFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cEmailSsl:=GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"EMAILSSL"</span> ,<span style="color: #ff0000;">"NO"</span>, cIniFile<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">DEFAULT</span> cAdjunto:=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">DEFAULT</span> cAsunto :=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">DEFAULT</span> cTexto := <span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span>cDestino <span style="color: #000000;">&#41;</span><br />msgAlert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"no ha puesto un destinatario"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> .f.<br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">TRY</span><br />oEmailCfg := CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Configuration"</span> <span style="color: #000000;">&#41;</span><br />WITH OBJECT oEmailCfg:<span style="color: #000000;">Fields</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserver"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := cServer <span style="color: #B900B9;">//"smtp.fibertel.com.ar" //"smtp.live.com" ///"smtp.gmail.com"</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserverport"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := nPortEmail <span style="color: #B900B9;">//25 //465</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusing"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">2</span> <span style="color: #B900B9;">// Remote SMTP = 2, local = 1</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := .T.<br /><span style="color: #00C800;">if</span> cEmailSsl=<span style="color: #ff0000;">'SI'</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := .T. <span style="color: #B900B9;">//para ssl</span><br /><span style="color: #00C800;">else</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := .F. <span style="color: #B900B9;">//para sin ssl</span><br /><span style="color: #00C800;">endif</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusername"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := cEmailUser <span style="color: #B900B9;">//</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendpassword"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := cEmailPass <span style="color: #B900B9;">//</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">30</span><br />:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />END WITH<br />CATCH oError<br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se ha enviado el "</span> + <span style="color: #ff0000;">";"</span> + ;<br /><span style="color: #ff0000;">"Error: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">GenCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br /><span style="color: #ff0000;">"SubC: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br /><span style="color: #ff0000;">"OSCode: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">OsCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br /><span style="color: #ff0000;">"SubSystem: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubSystem</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br /><span style="color: #ff0000;">"Message: "</span> + oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span><br />END<br />oError:=<span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">TRY</span><br />oEmailMsg := CREATEOBJECT <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br />WITH OBJECT oEmailMsg<br />:<span style="color: #000000;">Configuration</span> = oEmailCfg<br />:<span style="color: #0000ff;">From</span> = chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+Empresa+<span style="color: #ff0000;">' '</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'<'</span>+cEmailFrom+<span style="color: #ff0000;">'>'</span> <span style="color: #B900B9;">// This will be displayed in the From (The email id does not appear)</span><br />:<span style="color: #0000ff;">To</span> = cDestino<br />:<span style="color: #0000ff;">Subject</span> = cAsunto<br />:<span style="color: #000000;">MDNRequested</span> = .T.<br />:<span style="color: #000000;">TextBody</span> = cTexto<br /><span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>cAdjunto<span style="color: #000000;">&#41;</span><br />:<span style="color: #000000;">AddAttachment</span><span style="color: #000000;">&#40;</span>cAdjunto<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br />END WITH<br />oEmailMsg:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><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 se ha enviado el mensaje"</span> + <span style="color: #ff0000;">";"</span> + CRLF+ ;<br /><span style="color: #ff0000;">"Error: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">GenCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF+;<br /><span style="color: #ff0000;">"SubC: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF+ ;<br /><span style="color: #ff0000;">"OSCode: "</span>+ TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">OsCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF +;<br /><span style="color: #ff0000;">"SubSystem: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubSystem</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> +CRLF+ ;<br /><span style="color: #ff0000;">"Message: "</span> + oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span><br />END<br /><br /><span style="color: #B900B9;">// MsgInfo("Correo enviado correctamente")</span><br /><br /><span style="color: #00C800;">Return</span> .T.<br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------------------------</span><br /><br /><br />&nbsp;</div>[/code:2gw3issn]
¿Alguna funcion para enviar email desatendido xHarbour?
[quote="postinelli":3h60mzub]asi hago yo, y salen automaticamente los emails [code=fw:3h60mzub]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> GMAILBK <span style="color: #000000;">&#40;</span>cDestino,cAsunto,cTexto,cAdjunto <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> oEmailCfg,oEmailMsg,oError,cHtml<br /><br /><span style="color: #00C800;">Local</span> cServer:= GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"SERVERSTP"</span> ,<span style="color: #ff0000;">""</span>, cIniFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nPortEmail:=VAL<span style="color: #000000;">&#40;</span>GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"EMAILPUERTO"</span>,<span style="color: #ff0000;">"25"</span>, cIniFile<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cEmailFrom:=GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"EMAILFROM"</span> ,<span style="color: #ff0000;">""</span>, cIniFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cEmailUser:=GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"EMAILUSER"</span> ,<span style="color: #ff0000;">""</span>, cIniFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cEmailPass:=GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"EMAILPASSW"</span> ,<span style="color: #ff0000;">""</span>, cIniFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cEmailSsl:=GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Enviador"</span>,<span style="color: #ff0000;">"EMAILSSL"</span> ,<span style="color: #ff0000;">"NO"</span>, cIniFile<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">DEFAULT</span> cAdjunto:=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">DEFAULT</span> cAsunto :=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">DEFAULT</span> cTexto := <span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span>cDestino <span style="color: #000000;">&#41;</span><br />msgAlert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"no ha puesto un destinatario"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> .f.<br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">TRY</span><br />oEmailCfg := CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Configuration"</span> <span style="color: #000000;">&#41;</span><br />WITH OBJECT oEmailCfg:<span style="color: #000000;">Fields</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserver"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := cServer <span style="color: #B900B9;">//"smtp.fibertel.com.ar" //"smtp.live.com" ///"smtp.gmail.com"</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserverport"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := nPortEmail <span style="color: #B900B9;">//25 //465</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusing"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">2</span> <span style="color: #B900B9;">// Remote SMTP = 2, local = 1</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := .T.<br /><span style="color: #00C800;">if</span> cEmailSsl=<span style="color: #ff0000;">'SI'</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := .T. <span style="color: #B900B9;">//para ssl</span><br /><span style="color: #00C800;">else</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := .F. <span style="color: #B900B9;">//para sin ssl</span><br /><span style="color: #00C800;">endif</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusername"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := cEmailUser <span style="color: #B900B9;">//</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendpassword"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := cEmailPass <span style="color: #B900B9;">//</span><br />:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">30</span><br />:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />END WITH<br />CATCH oError<br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se ha enviado el "</span> + <span style="color: #ff0000;">";"</span> + ;<br /><span style="color: #ff0000;">"Error: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">GenCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br /><span style="color: #ff0000;">"SubC: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br /><span style="color: #ff0000;">"OSCode: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">OsCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br /><span style="color: #ff0000;">"SubSystem: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubSystem</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + ;<br /><span style="color: #ff0000;">"Message: "</span> + oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span><br />END<br />oError:=<span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">TRY</span><br />oEmailMsg := CREATEOBJECT <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br />WITH OBJECT oEmailMsg<br />:<span style="color: #000000;">Configuration</span> = oEmailCfg<br />:<span style="color: #0000ff;">From</span> = chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+Empresa+<span style="color: #ff0000;">' '</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'<'</span>+cEmailFrom+<span style="color: #ff0000;">'>'</span> <span style="color: #B900B9;">// This will be displayed in the From (The email id does not appear)</span><br />:<span style="color: #0000ff;">To</span> = cDestino<br />:<span style="color: #0000ff;">Subject</span> = cAsunto<br />:<span style="color: #000000;">MDNRequested</span> = .T.<br />:<span style="color: #000000;">TextBody</span> = cTexto<br /><span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>cAdjunto<span style="color: #000000;">&#41;</span><br />:<span style="color: #000000;">AddAttachment</span><span style="color: #000000;">&#40;</span>cAdjunto<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br />END WITH<br />oEmailMsg:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><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 se ha enviado el mensaje"</span> + <span style="color: #ff0000;">";"</span> + CRLF+ ;<br /><span style="color: #ff0000;">"Error: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">GenCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF+;<br /><span style="color: #ff0000;">"SubC: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF+ ;<br /><span style="color: #ff0000;">"OSCode: "</span>+ TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">OsCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF +;<br /><span style="color: #ff0000;">"SubSystem: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubSystem</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> +CRLF+ ;<br /><span style="color: #ff0000;">"Message: "</span> + oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span><br />END<br /><br /><span style="color: #B900B9;">// MsgInfo("Correo enviado correctamente")</span><br /><br /><span style="color: #00C800;">Return</span> .T.<br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------------------------</span><br /><br /><br /> </div>[/code:3h60mzub][/quote:3h60mzub] Mui bién. Cuasi perfecto. Saludos.
¿Alguna funcion para enviar email desatendido xHarbour?
Hola amigos,,, Gracias Adhemar, Gracias Postinelli, Gracias Joao Voy a probar estas sugerencias que me dan y les estare avisando por acá seguimos en contacto
¿Alguna funcion para enviar email desatendido xHarbour?
Hola de nuevo.. Adhemar, funciono perfecto, muchisimas gracias por la ayuda. Postinelli, tambien funciono a la primera.. agradecido por tu atencion. Resuelto el problema que tenia. Victor, gracias tambien por tu colaboracion y soporte. Gracias al foro FW !!
¿Alguna funcion para enviar email desatendido xHarbour?
Rick: Thank you. Regards
¿Algún editor de recursos compatible con Vista 64bits?
Hola compañeros, Pues hasta ahora venía utilizando workshop, pero al migrar a Vista 64, no corre. Necesito saber de algún editor de recursos para Vista 64 bits y si es gratuito pues mejor que mejor. GRACIAS y saludos! Pd.: He revisado esta lista: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=12773">viewtopic.php?f=17&t=12773</a><!-- l --> pero no sé cuál me puede ser SENCILLO y a la vez servir para Vista 64 bits.
¿Algún editor de recursos compatible con Vista 64bits?
David, Cualquiera de 32 bits te sirve para una versión de Windows de 64 bits. Puedes usar cualquiera de esa lista. Posiblemente el que proporciona el PellesC es el más popular <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
¿Algún editor de recursos compatible con Vista 64bits?
Antonio, Muchas gracias, ahora vendrá la parte de saber cuál puede ser sencillo (Workshop cumplía en ese aspecto, aunque entiendo que a los "masters" se les quede pequeño). Saludos!
¿Algún editor de recursos compatible con Vista 64bits?
David: Si por sencillo te refieres a que es muy fácil de usar, te digo que PellesC no tiene nada de difícil, ánimate a entrarle. Saludos
¿Algún editor de recursos compatible con Vista 64bits?
Armando, Pues instalado y hecha la primera prueba, debo de decir que no es muy complicado, tenías razón. Pero ya me he encontrado mi primer problema, en la cabecera de mi fichero .rc Yo tenía puesto en mi .rc editado con workshop en la cabecera lo que sigue: [code=fw:3bdsdfsu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/****************************************************************************<br /><br /><br />gesco.rc<br /><br />produced by Borland Resource Workshop<br /><br /><br />*****************************************************************************/</span><br />#ifdef __FLAT__<br />&nbsp; <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WindowsXP.Manifest"</span><br />#endif<br />#ifdef __64__<br />&nbsp; &nbsp;<span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WinXP/WindowsXP.Manifest64"</span><br />#endif<br /><br /><span style="color: #00D7D7;">#define</span> DIALOG_4&nbsp; &nbsp; <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> DIALOG_5&nbsp; &nbsp; <span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> ACS_TRANSPARENT &nbsp;0x50000002<br /><span style="color: #00D7D7;">#define</span> ACS_AUTOPLAY &nbsp; &nbsp; 0x0004<br /><span style="color: #00D7D7;">#define</span> ACS_TIMER &nbsp; &nbsp; &nbsp; &nbsp;0x0008<br /><br /><span style="color: #00D7D7;">#define</span> DIALOG_2&nbsp; &nbsp; <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> DIALOG_3&nbsp; &nbsp; <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> BITMAP_6&nbsp; &nbsp; <span style="color: #000000;">6</span><br /><span style="color: #00D7D7;">#define</span> DIALOG_1&nbsp; &nbsp; <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> BITMAP_7&nbsp; &nbsp; <span style="color: #000000;">7</span><br /><span style="color: #00D7D7;">#define</span> BITMAP_9&nbsp; &nbsp; <span style="color: #000000;">9</span><br /><span style="color: #00D7D7;">#define</span> BITMAP_5&nbsp; &nbsp; <span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> BITMAP_4&nbsp; &nbsp; <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> BITMAP_3&nbsp; &nbsp; <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> BITMAP_2&nbsp; &nbsp; <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> BITMAP_1&nbsp; &nbsp; <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> ICON_1&nbsp; <span style="color: #000000;">1</span><br /><br />A_ICONO_APLICACION <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">"iconos/tiendas.ico"</span><br />FONDO_APLICACION BITMAP <span style="color: #ff0000;">"iconos/casa3d~2.bmp"</span><br />...<br />&nbsp;</div>[/code:3bdsdfsu] Y curiosamente, Pelles C me modifica mi cabecera añadiendo y eliminado lo que sigue: [code=fw:3bdsdfsu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// RESOURCE SCRIPT generated by "Pelles C for Windows, version 6.00".</span><br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <commctrl.h><br /><span style="color: #00D7D7;">#include</span> <richedit.h><br /><br />LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US<br /><br />A_ICONO_APLICACION <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">"iconos<span style="color: #000000;">\\</span>tiendas.ico"</span><br /><br />FONDO_APLICACION BITMAP <span style="color: #ff0000;">"iconos<span style="color: #000000;">\\</span>casa3d~2.bmp"</span><br />...<br />&nbsp;</div>[/code:3bdsdfsu] Cómo se soluciona esto? GRACIAS!
¿Algún editor de recursos compatible con Vista 64bits?
Pelles tienes una version especial para 64 bits, aunque como dijo Antonio, cualquiera de 32 bit te sirve ne 64 bits, puedes agregar el WindowsXP.Manifest como un recurso cuando trabajar con .RES, asi como agregas los DLG, ICO y demas recursos, existe tambien un foro de pelles en ingles <!-- m --><a class="postlink" href="http://forum.pellesc.de/">http://forum.pellesc.de/</a><!-- m --> saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
¿Algún editor de recursos compatible con Vista 64bits?
Jose Luis, Gracias por tu ayuda. Efectivamente instalé la versión 64 bits de Pelles c y va correctamente. Lo que no tengo solución es con el Windowsxp.Manifiest, de hecho, lo he incluido como dice en el post <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=9560&p=45912&hilit=manifiest#p45912">viewtopic.php?f=6&t=9560&p=45912&hilit=manifiest#p45912</a><!-- l --> y no tengo manera de que se vea correctamente. Incluso he editado fichero windowsxp.manifiest, copiado su contenido y pegado directamente sobre el creado en pelles c y tampoco va. Saludos!
¿Algún editor de recursos compatible con Vista 64bits?
David: En la versión 6.0.0 se puede agregar el Manifest desde el menú Resource => New => Manifest Ojala esto te sirva. Saludos
¿Algún editor de recursos compatible con Vista 64bits?
Aca ejemplo grafico con Manifest, sin Manifest, como agergarlo sobre el proyecto y por medio del menu de navegacion, todo esto en Pelles 6.0... cualquier duda estoy a la orden, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- m --><a class="postlink" href="http://img685.imageshack.us/slideshow/webplayer.php?id=sinmanifest1.jpg">http://img685.imageshack.us/slideshow/w ... ifest1.jpg</a><!-- m -->
¿Algún editor de recursos compatible con Vista 64bits?
Armando, José Luis, He agregado el manifiest con Pelles c de la manera que indicais sin resultado. Yo trabajo directamente con el fichero .RC y le agrego igualmente el manifiest, pero parece que no lo tiene en cuenta. Si alguien sabe como solucionar este incoveniente... Saludos!!
¿Algún editor de recursos compatible con Vista 64bits?
[quote="triumvirato":216g9civ]Armando, José Luis, He agregado el manifiest con Pelles c de la manera que indicais sin resultado. Yo trabajo directamente con el fichero .RC y le agrego igualmente el manifiest, pero parece que no lo tiene en cuenta. Si alguien sabe como solucionar este incoveniente... Saludos!![/quote:216g9civ] Abre el fichero .RC con Pelles, previa copia, salvalo como .RES, agregale el MANIFEST y luego vuelvelo a salvar como .RC, eso es posible en PELLES, asi lo tendras en las 2 formas, yo lo trabajo directamente de forma visual (.RES), avisa si resuelve, sino, tambien, se que te ayudaremos en tu problema, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
¿Algún editor de recursos compatible con Vista 64bits?
[quote="joseluisysturiz":11sqle77]Abre el fichero .RC con Pelles, previa copia, salvalo como .RES, agregale el MANIFEST y luego vuelvelo a salva como .RC, eso es posible en PELLES, asi lo tendras en las 2 formas, yo lo trabajao directtamente de forma visual (.RES), avisa si resuelve, sino, tambien, se que te ayudaremos en tu problema, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->[/quote:11sqle77] José Luis, Nada, no hay manera... no sé por qué no hace caso del manifiest... quizás sea un problema Pelles C Vista... Saludos!
¿Algún editor de recursos compatible con Vista 64bits?
[quote="triumvirato":1r97gr51][quote="joseluisysturiz":1r97gr51]Abre el fichero .RC con Pelles, previa copia, salvalo como .RES, agregale el MANIFEST y luego vuelvelo a salva como .RC, eso es posible en PELLES, asi lo tendras en las 2 formas, yo lo trabajao directtamente de forma visual (.RES), avisa si resuelve, sino, tambien, se que te ayudaremos en tu problema, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->[/quote:1r97gr51] José Luis, Nada, no hay manera... no sé por qué no hace caso del manifiest... quizás sea un problema Pelles C Vista... Saludos![/quote:1r97gr51] Ok, lo instalare en Win Vista y te aviso si tengo problemas o no..saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
¿Algún editor de recursos compatible con Vista 64bits?
Hola, han probado "resedit", ultimamente ha progresado mucho, hay algunas cosas como en otro editores de recursos como el de crear los identificadores que no me agrada mucho, debe ser que estoy acostumbrado a WS, otro punto flaco no tiene herramientas para la creacion de iconos o bmp, lo que se puede solucionar con un editor externo. Otra cosa que extra~nare del WS son las DLL de controles extendidos para BTNBMP, SBROWSE etc. Por lo demas ResEdit es un editor digno de probar Haber ojala consigamos un buen editor de recursos saludos Marcelo
¿Algún editor de recursos compatible con Vista 64bits?
David: Usa PellesC para insertarle el Manifest al archivo .RES, prueba a enlazar el archivo .RES en lugar del archivo .RC, Enlazarlo es exactamente igual que con .RC, yo lo uso con WXP y no tengo problemas, tal vez sea WVista. Saludos
¿Algún editor de recursos compatible con Vista 64bits?
Marcelo, He estado echando un vistazo a resedit y la verdad es una opción a tener en cuenta, aunque por el momento veo bastante más completo PellesC. Muchas gracias por el apunte de resedit. Armando, Efectivamente, modificando el archivo .Res con PellesC para añadir el Manifiest y enlazándolo directamente, lo tiene en cuenta. Sin embargo si lo hago sobre el fichero .Rc, se lo salta a la torera. Si intento guardar ese archivo .Res a .Rc con PellesC, al compilarlo me da el error: Error GESCO.RC 1453 32: Expecting BEGIN Aunque de momento tengo solución de la manera que me habéis apuntado, me gustaría seguir trabajando con el fichero .Rc, así que si alguien sabe cómo solucionar esto... GRACIAS!!!!
¿Algún editor de recursos compatible con Vista 64bits?
David: Me alegra que el foro te haya quitado una piedrita del camino. Solo por curiosidad, ¿Para que necesitas trabajar con el .RC? Saludos
¿Algún editor de recursos compatible con Vista 64bits?
[quote="Armando":vru34rv6]David: Me alegra que el foro te haya quitado una piedrita del camino. Solo por curiosidad, ¿Para que necesitas trabajar con el .RC? Saludos[/quote:vru34rv6] Armando, Desde luego que sin este foro, muchos estaríamos perdidos... y de nuevo muchas gracias por vuestra ayuda. Respecto del uso de RC, decir que me gusta trabajar con ellos porque en momentos determinados puedo ver, editándolos con UEStudio, o cualquier editor, definiciones de diálogos, qué ficheros .bmp contienen un dibujo determinado, por ejemplo: [code=fw:vru34rv6]<div class="fw" id="{CB}" style="font-family: monospace;">DLG_BROWSEDOBLE <span style="color: #0000ff;">DIALOG</span> DISCARDABLE <span style="color: #000000;">145</span>, <span style="color: #000000;">21</span>, <span style="color: #000000;">351</span>, <span style="color: #000000;">209</span><br /><span style="color: #0000ff;">STYLE</span> WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE<br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">1010</span>, <span style="color: #ff0000;">"TWBrowse"</span>, WS_GROUP|WS_TABSTOP|0x00b00000, <span style="color: #000000;">4</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">340</span>, <span style="color: #000000;">80</span><br />&nbsp; CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">1020</span>, <span style="color: #ff0000;">"TWBrowse"</span>, WS_GROUP|WS_TABSTOP|0x00b00000, <span style="color: #000000;">4</span>, <span style="color: #000000;">108</span>, <span style="color: #000000;">340</span>, <span style="color: #000000;">92</span><br /><span style="color: #000000;">&#125;</span><br /><br />DLG_PRUEBA DIALOGEX DISCARDABLE <span style="color: #000000;">6</span>, <span style="color: #000000;">18</span>, <span style="color: #000000;">394</span>, <span style="color: #000000;">142</span><br /><span style="color: #0000ff;">STYLE</span> WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE<br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">1000</span>, <span style="color: #ff0000;">"TXBrowse"</span>, WS_TABSTOP|0x00800000, <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">389</span>, <span style="color: #000000;">133</span><br /><span style="color: #000000;">&#125;</span><br /><br />USUARIOS <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">"res1.ico"</span><br /><br />SALIR <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">"res2.ico"</span><br /><br />PREVIEW <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">"res3.ico"</span></div>[/code:vru34rv6] Ahí veo toda esa información. Por ejemplo ahí descubrí que para que se mostrase bien el Scroll vertical de la TXBrowse, necesitaba un tipo de diálogo distinto, etc... por ese motivo me gustaría poder seguir trabajando con ellos. Gracias de nuevo y Saludos!!!!
¿Algún editor de recursos compatible con Vista 64bits?
David: Entiendo tu necesidad, por el momento se me ocurre lo siguiente para no abandonar PellesC. 1.- Puedes utilizar el inspector de objetos para ver las propiedades de cada objeto 2.- Siempre debes trabajar con el archivo .RES y cuando necesites ver el .RC simplemente vas a SALVAR COMO.. y el .RES lo salvas como .RC 3.- Dále una mirada a ResourceBuilder, este editor te muestra en la esquina inferior izquierda el texto o archivo .RC de cada objeto seleccionado. <!-- m --><a class="postlink" href="http://www.resource-builder.com/order.html?eventid=4">http://www.resource-builder.com/order.html?eventid=4</a><!-- m --> Saludos
¿Algún editor de recursos compatible con Vista 64bits?
Armando, Aún teniendo solución el manifest, como bien dices, seguiré echando un vistazo a los editores de recursos dispobibles. Gracias por tu ayuda y la de los demás compañeros del foro. Saludos!
¿Algún ejemplo del uso de xBrowse?
Hola, Ya estoy utilizando la versión FWH20.04, donde me encuentro con bastantes cambios respecto a versiones anteriores. Estoy migrando una aplicación xHarbour modo consola, que maneja tablas dbf /cdx. En estos días he cambiado la forma de trabajar las tablas dbf: como objetos. Los registros los paso a arrays mediante FW_DbfToArray() Los arreglos los trabajo con xBrowse. Todo bien hasta este punto. Lo que no he podido lograr (no encuentro un ejemplo claro), y esa es la ayuda que pido para poder seguir avanzando, es manejar una tabla de detalle, en donde necesito contar con columnas de: código, descripción, precio, cantidad y total. Entiendo que ya muchos programadores no usan dbf's pero debe quedar algún ejemplo actualizado para manejar tablas de detalle, Agradezco su ayuda, Luis Antonio Curicó - Chile
¿Algún ejemplo del uso de xBrowse?
Luis Antonio, Revisa el ejemplo samples\fivedbu.prg que te dará una visión amplia de como trabajar con tablas, browses, etc Desde c:\fwh\samples haz: buildh.bat fivedbu
¿Algún ejemplo del uso de xBrowse?
Una idea [code=fw:3qm4u21z]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; oBrwDoin := TXBrowse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oDlgDin <span style="color: #000000;">&#41;</span><br />    oBrwDoin:<span style="color: #000000;">nMarqueeStyle</span>         := MARQSTYLE_HIGHLROW<br />    oBrwDoin:<span style="color: #000000;">nRowDividerStyle</span>      := LINESTYLE_LIGHTGRAY<br />    oBrwDoin:<span style="color: #000000;">nColDividerStyle</span>      := LINESTYLE_LIGHTGRAY<br />    oBrwDoin:<span style="color: #000000;">nHeaderLines</span>          := <span style="color: #000000;">1</span><br />    oBrwDoin:<span style="color: #000000;">lColDividerComplete</span>   := .t.<br />    oBrwDoin:<span style="color: #000000;">lRecordSelector</span>       := .t.<br />    oBrwDoin:<span style="color: #000000;">nStretchCol</span>           := STRETCHCOL_LAST<br />    oBrwDoin:<span style="color: #000000;">l2007</span>                 := .f.<br />    oBrwDoin:<span style="color: #000000;">oFont</span>                 := oFont1  <br /><br />    oCol          = oBrwDoin:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>Len<span style="color: #000000;">&#40;</span> detalle <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> , Transform<span style="color: #000000;">&#40;</span>detalle<span style="color: #000000;">&#91;</span>oBrwDoin:<span style="color: #000000;">nArrayAt</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"id"</span><span style="color: #000000;">&#93;</span>,oLamcla:<span style="color: #000000;">PIC9</span><span style="color: #000000;">&#41;</span> ,<span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />    oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"#8208"</span> <span style="color: #000000;">&#41;</span> <br />    oCol:<span style="color: #000000;">cHeader</span>  = <span style="color: #ff0000;">"Item"</span><br />    oCol:<span style="color: #000000;">nWidth</span>   = <span style="color: #000000;">30</span><br />    oCol:<span style="color: #000000;">nHeadStrAlign</span> = AL_LEFT<br />    oCol:<span style="color: #000000;">nDataStrAlign</span> = AL_LEFT    <br />    oCol:<span style="color: #000000;">oHeaderFont</span> = oFont<br /><br />    oCol          = oBrwDoin:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>Len<span style="color: #000000;">&#40;</span> detalle <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> , detalle<span style="color: #000000;">&#91;</span>oBrwDoin:<span style="color: #000000;">nArrayAt</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"idproducto"</span><span style="color: #000000;">&#93;</span> ,<span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />    oCol:<span style="color: #000000;">cHeader</span>  = <span style="color: #ff0000;">"Codigo"</span><br />    oCol:<span style="color: #000000;">nWidth</span>   = <span style="color: #000000;">85</span><br />    oCol:<span style="color: #000000;">nHeadStrAlign</span> = AL_LEFT<br />    oCol:<span style="color: #000000;">nDataStrAlign</span> = AL_LEFT    <br />    oCol:<span style="color: #000000;">oHeaderFont</span> = oFont<br />    <br />    oCol          = oBrwDoin:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>Len<span style="color: #000000;">&#40;</span> detalle <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> , detalle<span style="color: #000000;">&#91;</span>oBrwDoin:<span style="color: #000000;">nArrayAt</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"nombreproducto"</span><span style="color: #000000;">&#93;</span> ,<span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />    oCol:<span style="color: #000000;">cHeader</span>  = <span style="color: #ff0000;">"Descripción"</span><br />    oCol:<span style="color: #000000;">nWidth</span>   = <span style="color: #000000;">180</span><br />    oCol:<span style="color: #000000;">nHeadStrAlign</span> = AL_LEFT<br />    oCol:<span style="color: #000000;">nDataStrAlign</span> = AL_LEFT    <br />    oCol:<span style="color: #000000;">oHeaderFont</span> = oFont<br />    oCol:<span style="color: #000000;">cFooter</span>      = <span style="color: #ff0000;">"TOTALES"</span>   <br />    oCol:<span style="color: #000000;">oFooterFont</span> = oFont3<br /><br />   <br />    oBrwDoin:<span style="color: #000000;">SetArray</span><span style="color: #000000;">&#40;</span> detalle <span style="color: #000000;">&#41;</span><br />    oBrwDoin:<span style="color: #000000;">CreateFromResource</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">102</span> <span style="color: #000000;">&#41;</span>  <br /> </div>[/code:3qm4u21z]
¿Algún ejemplo del uso de xBrowse?
Gracias Antonio y Leandro, Muy buenos ejemplos para seguir investigando hasta crear el módulo de mantenimiento encabezado detalle Luis antonio
¿Algún ejemplo del uso de xBrowse?
Hola. Mira, en \samples, Yunus.prg, especificamente function EditInvoice( oRec ). Saludos.
¿Algún ejemplo del uso de xBrowse?
buenos dias aprovechando como hago para si en la fila del browse tengo una fecha esta no sea editable en funcion de otro campo que tiene un valor digamos campo = 'CD' ->edite la fecha de esa fila campo = 'EF' ->no edite la fecha de esa fila he probado con oCol1:nEditType =0 para no editar o igual a otro valor para editar PERO me deja editar o me bloquea TODA la columna como o que uso para solo bloquear esa celda en esa fila espero haberme explicado muchas gracias por su ayuda saludos
¿Algún ejemplo del uso de xBrowse?
Wilson, aquí tienes un ejemplo probado en 1709. [code=fw:vfv5ovi8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------//</span><br /><span style="color: #B900B9;">// CELDA EDITABLE O NO &nbsp;( FAPSOFTWARE )</span><br /><span style="color: #B900B9;">//---------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> CeldaDisable<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oDlg, oBrw, n<br /><span style="color: #00C800;">LOCAL</span> aAgenda := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">8</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span><span style="color: #000000;">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">9</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span><span style="color: #000000;">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span><span style="color: #000000;">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span><span style="color: #000000;">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">450</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">PIXEL</span><br />&nbsp; @<span style="color: #000000;">5</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Celdas en Columna 3 son editables si valor en Columna 2 == 2"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; @ <span style="color: #000000;">20</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;DATASOURCE aAgenda ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span> &nbsp;HEADERS <span style="color: #ff0000;">"LU"</span>,<span style="color: #ff0000;">"MA"</span>,<span style="color: #ff0000;">"MI"</span>,<span style="color: #ff0000;">"JU"</span>,<span style="color: #ff0000;">"VI"</span>,<span style="color: #ff0000;">"SA"</span>,<span style="color: #ff0000;">"DO"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CELL LINES <br /><br />&nbsp; WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nEditType</span> := <span style="color: #000000;">1</span> <br />&nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bEditWhen</span> := <span style="color: #000000;">&#123;</span>|| oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Value</span> == <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #B900B9;">//Celda en col 3 es editable si valor celda en col 2 = 2</span><br />&nbsp; END<br /><br />&nbsp; oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; AEVAL<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span>,<span style="color: #000000;">&#123;</span>|o| o:<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">50</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:vfv5ovi8] Saludos.
¿Algún ejemplo del uso de xBrowse?
[quote="FranciscoA":1ijuoy2i]Hola. Mira, en \samples, Yunus.prg, especificamente function EditInvoice( oRec ). Saludos.[/quote:1ijuoy2i] Eso es precisamente lo que necesito. Es fundamental contar con ejemplos así de claros para quienes estamos iniciando o retomando la programación con FiveWin, y personas que amablemente comparten sus conocimientos y experiencias. Muchas gracias Francisco, Luis Antonio Curicó-Chile
¿Algún ejemplo del uso de xBrowse?
Francisco que barbaro!! justo lo que necesito muchas gracias !!
¿Algún ejemplo del uso de xBrowse?
Me alegra mucho que hayan resuelto. Saludos.
¿Aplicación Externa corriendo? - solucionado
Buenas noches, Perdón por el título del post, pero no sabía como resumir lo que necesito conseguir. Es que necesito saber, desde mi aplicación(ej. myapp.exe), si otra aplicación externa (ej. appexterna.exe) está siendo ejecutada en ese momento. Estuve buscando en los manuales de FWH pero no encontré una función para tal fin. Probé con la que figura ([b:2gjazfyp]IsExeRunning( <cExeName> ) --> lRunning[/b:2gjazfyp]), pero no funciona y no sé si porque uso win 7. ¿Existe?, ¿se puede lograr lo que necesito?. Gracias. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
¿Aplicación Externa corriendo? - solucionado
rolando, Puedes usar la TCapture Para lo que necesitas está excelente. En las utilidades debe estar. Sino con gusto la posteo.
¿Aplicación Externa corriendo? - solucionado
rolando, TE ahorre la busqueda, aqui está <!-- m --><a class="postlink" href="http://www.fivetechsoft.com/files/utilities/tcapture.zip">http://www.fivetechsoft.com/files/utili ... apture.zip</a><!-- m -->
¿Aplicación Externa corriendo? - solucionado
William, Gracias por responder. Bajé la clase y compilé el sample pero, no es lo que busco. Esta clase captura imágenes desde una webcam. Lo que necesito es saber si una aplicación externa está ejecutándose. Saludos. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
¿Aplicación Externa corriendo? - solucionado
Rolando, me confundi. es esta: [code=fw:10kvx6w7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// &nbsp;AUTOR.....: Manuel Exp¢sito Su rez &nbsp; &nbsp;Soft 4U '2001 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><br /><span style="color: #B900B9;">// &nbsp;e-Mail....: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><br /><span style="color: #B900B9;">// &nbsp;CLASE.....: TWCapture &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><br /><span style="color: #B900B9;">// &nbsp;FECHA MOD.: 18/08/2001 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">// &nbsp;VERSION...: 1.00 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">// &nbsp;PROPOSITO.: Captura una ventana abierta por nuestro programa o por otra &nbsp; //</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aplicacion para poder enviarle mensajes como si fuera una &nbsp; &nbsp; //</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ventana mas de nuestro programa. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// &nbsp;DATAS.....: * lCapture tiene un valor logico, .f. si la ventana no se &nbsp; &nbsp; //</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pudo capturar y .t. si si se hizo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">// &nbsp;METODOS...: * New( cTitle ) es el constructor, cTitle es el titulo de una //</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ventana, si se le pasa intentara capturarla y pondra .t. en &nbsp; //</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::lCapture &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* WCapture se encarga de buscar la ventana y asignarla a &nbsp; &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nuestro objeto TWindow. Si la captura podremos interactuar &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;como si fuera una ventana mas de nuestra aplicacion &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">// &nbsp;NOTAS.....: TWCapture esta heredada de TWindows por lo que tendremos a &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nuestra disposicion todas las datas y metodos de esta clase. &nbsp;//</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;No distingue entre mayusculas y minuscula pero si se tienen &nbsp; //</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;en cuenta los espacios &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Objects.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">CLASS</span> TWCapture <span style="color: #0000ff;">FROM</span> TWindow<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">DATA</span> lCaptured<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br />&nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> WCapture<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TWCapture<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_IsString<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">WCapture</span><span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">lCaptured</span> := .f. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> WCapture<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TWCapture<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hWnd := FindWindow<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, cTitle <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> := <span style="color: #000000;">&#40;</span> hWnd > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">hWnd</span> := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lCaptured</span>, hWnd, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lCaptured</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:10kvx6w7] Ejemplo: [code=fw:10kvx6w7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// TWCapture by Manu Exposito</span><br /><span style="color: #B900B9;">// Demo01 de la clase TWCapture</span><br /><span style="color: #B900B9;">// Pasando un titulo de ventana</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00D7D7;">#define</span> CRLF chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span> + chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cTitle := space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">40</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> MsgGet<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Entre titulo de una ventana abierta"</span>, <span style="color: #ff0000;">"Titulo:"</span>, @cTitle <span style="color: #000000;">&#41;</span> .and. !empty<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oWnd := TWCapture<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; Jugar<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No ha elegido ningun titulo de ventana"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Ejecuto el WorPad y capturamos la ventana"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; WinExec<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NotePad.exe Demo01.prg"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oWnd := TWCapture<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;">"demo01 - bloc de notas"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; Jugar<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> Jugar<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">local</span> cTitle := oWnd:<span style="color: #000000;">cTitle</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> oWnd:<span style="color: #000000;">lCaptured</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Muy bien, ya lo tenemos"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Hemos capturado la ventana con titulo: "</span> + cTitle + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CRLF + <span style="color: #ff0000;">"Ahora vamos a jugar con ella"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"La centramos"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #0000ff;">Center</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Pinto una linea"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">Line</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">500</span>, <span style="color: #000000;">500</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"La desplazo a la izquierda"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Ahora minimizo"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">Minimize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Ahora maximizo"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">Maximize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"La restauro"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Ahora cambio titulo"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TWCapture captura ventanas - by Manu Exposito 2001"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Ahora la oculto"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Ahora la muestro"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"y ahora termino"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se pudo capturar ninguna ventana"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd := <span style="color: #00C800;">nil</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><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 />&nbsp;</div>[/code:10kvx6w7]
¿Aplicación Externa corriendo? - solucionado
William, Muchas gracias. Esta clase parece que si va a servir para lo que necesito hacer y se me ocurren otros cuantos usos más. De nuevo gracias, a ti por buscarla y sugerirla. Y por supuesto, las gracias también al autor de la misma, Sr. Manuel Expósito. Saludos. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
¿Asi se trabaja con Procedimientos Almacedos SQL-Server?
Saludos a Todos Llevo varios dias intentando entrar en el mundo de SQl con FWH8.10(me alegra tenerlo) y xharbour y mi intencion es cargar el resultado obtenido por un store procedure en un recordset, he navegado tratando de encontrar la forma de hacerlo y aun no logro lo que deseo. la parte en concreto es la siguiente: // ---- Conexion al SQL ------- oConnection := TOleAuto():New( "ADODB.Connection" ) TRY oConnection:Open("Provider=SQLOLEDB.1;Password=;Persist Security Info=False;User ID=Martin;Initial Catalog=APPLOCAL;Data Source=PERLIM_SYS_LCH") CATCH oErr MsgAlert( "Error de CONEXION con la Base de Datos..." ) FreeLibrary(hRec) RETURN nil END TRY oRs := TOleAuto():New( "ADODB.Recordset" ) oRs:CursorType := adOpenDynamic oRs:CursorLocation := adUseClient oRs:LockType := adLockOptimistic oCmd:= TOleAuto():New( "ADODB.Command" ) oCmd:CommandType := adCmdStoredProc oCmd:CommandText:= "sp_Menu" oCmd:Activeconnection:=oConnection oRs:Open(oCmd:Execute()) MsgAlert(oRs:RecordCount()) y el resultado que me muestra la ultima linea es (-1) con lo cual concluyo que el store no se ejecuta, el store sp_Menu es algo simple y es como sigue: CREATE PROCEDURE sp_Menu AS SELECT * FROM MLC00 ORDER BY CNIV, COPC GO Agradecere me puedan apoyar indicando que estoy haciendo mal, y como debo trabajar Stores procedures y Recordset Saludos Luis
¿Bitmaps en ficheros o en recursos?
Pues ahí queda la cosa. Hace como 10 años que vengo usando los ficheros bmp para mostrar iconos, botones, barras, etc, etc ... y han ido creciendo exponencialmente. La pregunta es ¿qué es más aconsejable? ¿sigo usando ficheros bmp que cargo cuando los necesito o lo meto todo en un .rc y lo monto junto al ejecutable? Muchas gracias,
¿Bitmaps en ficheros o en recursos?
Y en DLL que opinion te merece? Saludos
¿Bitmaps en ficheros o en recursos?
Hola... Yo también los tiro todos dentro de una sola dll y listo! Un solo archivo con un .exe no tan pesado. Saludos,
¿Bitmaps en ficheros o en recursos?
Gracias amigos. Lo que realmente me interesa es en lo que respecta a uso de recursos, memoria, etc. ¿Qué es lo mejor, generar una DLL o seguir usando los ficheros bmp externos?
¿Bitmaps en ficheros o en recursos?
Yo tambien uso DLL desde siempre Quizas sea por el tema de no hacer los EXE tan pesados o que sean independientes del EXE por si he de realizar alguna personalizacion Saludos
¿Bitmaps en ficheros o en recursos?
Angel, Si el EXE y la DLL están en tu ordenador (es decir, no los mantienes en una unidad remota), no debería existir diferencia entre usar una DLL ó ficheros externos en relación al consumo de recursos y memoria. Windows no mantiene todos los bitmaps que lleva la DLL cargados en memoria, sino que los carga cuando son usados desde la propia DLL. En cuanto a la velocidad de acceder a los bitmaps, creo que debe ser muy similar. Nunca lo he medido (si alguien lo ha probado que lo comente) pero no creo que sea apreciable la diferencia entre acceder a una parte de la DLL (que puede estar en disco) ó a los ficheros de imágenes en el disco. En ambos casos Windows suele usar cache, por lo que de haber alguna diferencia seria inapreciable.
¿Bitmaps en ficheros o en recursos?
Gracias maestro! Entonces me quedo como estoy que así no tengo que retocar código.
¿Bitmaps en ficheros o en recursos?
Yo creo que en ese caso es cuestión de gustos y facilidad de manejo de los bitmaps, es decir, si los bitmaps están en algún directorio del disco, los mismos pueden ser borrados, y la Dll tiene el mismo problema, sólo que si borran un solo archivo dll se soluciona restaurando ese archivo, en cambio si borrar varios bitmaps, primero hay que analizar que bitmaps se borraron y cuales no luego ir restaurando los que faltan. Yo en lo personal, en ese caso me quedo con la Dll ya que está todo en un mismo archivo.
¿Bitmaps en ficheros o en recursos?
Eduardo, Coincido contigo en que es una cuestión más de "privacidad" y "seguridad" de los datos, para usuarios no avanzados.
¿Bitmaps en ficheros o en recursos?
Yo uso .RES y lo compilo con los .PRG y no hay necesidad de tener .DLL externo. Saludos, Adhemar
¿Bitmaps en ficheros o en recursos?
[quote="acuellar":wrfv8659]Yo uso .RES y lo compilo con los .PRG y no hay necesidad de tener .DLL externo. Saludos, Adhemar[/quote:wrfv8659] Son gustos... ¿Pero chequeaste la diferencia de tamaño entre el .exe con los bitmaps dentro del .RC que con los Bitmaps dentro de una .dll? Yo uso una ensalada de ambas cosas, sólo que en el .rc sólo tengo las ventanas y diálosgos. Todo lo que sea imágenes las tiro dentro de la .dll.
¿Bitmaps en ficheros o en recursos?
Mis .EXE no pasan de 4MB y con la tecnología actual son bastante rápidos. Saludos, Adhemar
¿COMO QUITAR LOS CODIGO OCULTOS DE EXCEL AL HACER COPI PEGA
Buenos dias un saludos una consulta, al pasar inforcion de excel a un GET mediante copi y pega se lleva los codigos ocultos y se guardan en la DB como se puede evitar recibirlos en el GET. Muchas Gracias
¿COMO QUITAR LOS CODIGO OCULTOS DE EXCEL AL HACER COPI PEGA
Antes de Grabar: [code=fw:13ydjqb9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> TIRA_ACENTUACAO<span style="color: #000000;">&#40;</span> cStr <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cStrNew := <span style="color: #ff0000;">""</span>, nX <br />&nbsp; *cAcentos := <span style="color: #000000;">&#123;</span> &nbsp;<span style="color: #ff0000;">"ã"</span> &nbsp; , &nbsp;<span style="color: #ff0000;">"à"</span> &nbsp; , &nbsp;<span style="color: #ff0000;">"ä"</span> &nbsp; , &nbsp;<span style="color: #ff0000;">"á"</span> &nbsp; , &nbsp;<span style="color: #ff0000;">"å"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"â"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"À"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Á"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Â"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Ã"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Ä"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Å"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"ç"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"è"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"é"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"ê"</span> &nbsp; , &nbsp; &nbsp;<span style="color: #ff0000;">"ë"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"í"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Í"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"É"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Ê"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"-"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"ó"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"õ"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"ô"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Ô"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Ó"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Õ"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"ú"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"û"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Ú"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Û"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"Ç"</span> &nbsp; , <span style="color: #ff0000;">"º"</span>, chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">239</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;cAcentos := <span style="color: #000000;">&#123;</span>Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">237</span><span style="color: #000000;">&#41;</span>,Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">224</span><span style="color: #000000;">&#41;</span>,Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">228</span><span style="color: #000000;">&#41;</span>,Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">225</span><span style="color: #000000;">&#41;</span>,Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">229</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">226</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">192</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">193</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">194</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">195</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">196</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">197</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">231</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">232</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">233</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">234</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">235</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">237</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">205</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">201</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">202</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">173</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">243</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">245</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">244</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">212</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">211</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">213</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">250</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">251</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">218</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">219</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">199</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"º"</span>, chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">239</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;cLetras &nbsp;:= <span style="color: #000000;">&#123;</span> &nbsp;<span style="color: #ff0000;">"a"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"a"</span> &nbsp;, &nbsp;<span style="color: #ff0000;">"a"</span> &nbsp; , &nbsp;<span style="color: #ff0000;">"a"</span> &nbsp; , &nbsp;<span style="color: #ff0000;">"a"</span> &nbsp; , &nbsp; &nbsp;<span style="color: #ff0000;">"a"</span> &nbsp;, &nbsp; <span style="color: #ff0000;">"A"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"A"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"A"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"A"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"A"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"A"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"c"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"e"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"e"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"e"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"e"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"i"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"I"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"E"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"E"</span> &nbsp; , &nbsp; &nbsp;<span style="color: #ff0000;">""</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"o"</span> &nbsp; , &nbsp; &nbsp;<span style="color: #ff0000;">"o"</span> &nbsp;, &nbsp; <span style="color: #ff0000;">"o"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"O"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"O"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"O"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"u"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"u"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"U"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"U"</span> &nbsp; , &nbsp; <span style="color: #ff0000;">"C"</span> &nbsp; , &nbsp;<span style="color: #ff0000;">""</span>, &nbsp; &nbsp;<span style="color: #ff0000;">""</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">For</span> nX := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span> cAcentos <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cStrNew := StrTran<span style="color: #000000;">&#40;</span> cStr, cAcentos<span style="color: #000000;">&#91;</span>nX<span style="color: #000000;">&#93;</span>, cLetras<span style="color: #000000;">&#91;</span>nX<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cStr := cStrNew<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Next</span> &nbsp;<br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> cStr<span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:13ydjqb9] Regards, saludos.
¿COMO SE HACE UN BOTON CON IMAGEN Y CAPTION?
Amigos: ¿Alguien me puede decir como se le agrega una imagen a un tbutton para que quede a la vista tanto el caption como la imagen? O alguna otra clase que lo soporte. Desde ya muchas gracias. Ricardo.-
¿COMO SE HACE UN BOTON CON IMAGEN Y CAPTION?
[quote="rbecares":1k1gji1w]Amigos: ¿Alguien me puede decir como se le agrega una imagen a un tbutton para que quede a la vista tanto el caption como la imagen? O alguna otra clase que lo soporte. Desde ya muchas gracias. Ricardo.-[/quote:1k1gji1w] [code:1k1gji1w] REDEFINE BTNBMP oBtn RESOURCE "DLG0_ACEPTAR" ; ID 301 OF oDlg UPDATE PROMPT "&Aceptar" [/code:1k1gji1w] Espero te sirva, tambien puedes usar TSButton, misma codificación
¿Como cambiar el cursor de edición?
¿como puedo cambiar el cursor de edición para que se muestre a la inversa, cuando sea insertar una barra y cuando sea sobre escribir un bloque?¿puedo poner otros cursores que no sean esos?
¿Como cambiar el cursor de edición?
Quique,Modifica los parámetros de llamada a CreateCaret() en la clase TGet en source\classes\TGet.prg
¿Como cambiar el cursor de edición?
Funcionó perfetamente, gracias
¿Como cambiar tamaño de un dialogo en tiempo de ejecucion?
Hola, Tengo de finido un Browse y cuatro botones en un dialogo y necesito expandirlo para ajustar a la resolucion de la pantalla y por supuesto mover los botones dentro del nuevo tamaño de la pantalla. ¿ Alguien sabe como hacerlo? Gracias por adelantado, Alfonso
¿Como cambiar tamaño de un dialogo en tiempo de ejecucion?
Alfonso, Puedes variar el tamaño con: oDialog:nWidth = ... oDialog:nHeight = ... igual para los botones y el browse. Y las posiciones de los botones con: oButton:nTop = ... oButton:nLeft = ...
¿Como cambiar tamaño de un dialogo en tiempo de ejecucion?
Hola Antonio, Gracias por la respuesta pero me queda un problema en el tintero. Estoy generando los dialogos con Resource Workshop y cuando redimensiono un dialogo los textos (literales) no se dimensionan. ¿ Hay alguna forma de hacer que tomen el nuevo tamaño junto con los controles del dialogo? Gracias por adelantado,
¿Como cambiar tamaño de un dialogo en tiempo de ejecucion?
Prueba con esta función en la cláusula INIT del ACTIVATE del diálogo: ***************************************** #Include "FiveWin.ch" /* Los parámetros recibidos son: lAutoresize: permite prescindir de la funcionalidad de esta función; permitiendo de esta manera que la aplicación pueda tener un flag que permita/deniegue el autoredimensionado de las pantallas. 03/03/2006. nWhatSize: permite forzar el redimensionamiento a unos valores concretos; permitiendo de esta manera que la aplicación pueda tener un valor al cual redimensionar las pantallas. 03/03/2006. oWnd: Objeto/ventana/diálogo/control a ser redimensionado. nResolution: Número que identifica que resolución tenía la pantalla en la cual se diseñó el objeto. Este valor puede ser negativo, hecho que se interpretará como que la ventana ya ha estado redimensionada previamente y se pretende redimensionarla a su valor original. Esta característica es útil para provocar que un control (o ventana/dialogo) concreto se le devuelva su tamaño original según su valor de diseño. 03/03/2006 lRepaint: Indicador de si debe repintarse el objeto una vez redimensionado. Esta función permitirá que una aplicación desarrolada en un PC con una resolución de pantalla de por ejemplo 1024 x 768 (nResolution valdría en este caso 3), se vea redimensionada proporcionalmente en un PC con una resolución diferente, ya sea mayor o menor. A falta de perfeccionar el código, se comprueba solamente la variación de la anchura de la resolución de la pantalla para aplicar la variación del tamaño, aunque cuando ello se realiza se hace tanto en la anchura como en la altura. Ahora se comprueba la altura. 09/12/2005. Esta función está orientada a ser utilizada en el evento ON INIT del ACTIVATE de las WINDOW y DIALOG con un valor fijo de lRepaint a .T. o sin él. Además también puede utilizarse directamente sobre un control definido posteriormente a la ACTIVACIÓN de su contenedor ya sea éste WINDOW o DIALOG, con la salvedad que lRepaint debe valer .T. para forzar su repintado. Ejemplos de uso: -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* Se redimensiona toda la ventana oWnd y sus controles. ACTIVATE oWnd ON INIT AutoResiz( .T., 0, oWnd, 3 ) -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* Se redimensiona todo el dialogo oDlg y sus controles. Además se fuerza que el control oMyMulGet se redimensione como si la resolución de pantalla fuera del tipo 2. ACTIVATE oDlg ON INIT AutoResiz( .T., 0, oWnd, 3 ) AutResiz( .T., 2, oMyMulGet, 0) -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* Se redimensiona el control oTabs. @ 185.50,8.00 TABS oTabs OF oWnd ITEMS "Tab1","Tab2","Venga a ordenarrrrr!!" ; PIXEL COLORS CLR_BLUE,CLR_HCYAN SIZE 288.00,9.00 MESSAGE "Mensaje del Tabs" AutoResiz( .T., 0, oTabs, 3, .T. ) -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* */ FUNCTION AutResiz( lAutoresize, nWhatSize, oWnd, nResolution, lRepaint ) // Resolución de la pantalla en el momento de definir los controles. Local nOriWidth, nOriHeight // Lo normal sería que fuera la resolución actual de la pantalla (nWhatSize=0). // Se permite forzar esta resolución mediante el valor de nWhatSize=1,2,3,4,5,6,7,.... Local nWidth, nHeight // Son la relación entre la resolución de pantalla y la resolución de diseño. Local nFactorWitdh, nFactorHeight Local nContador DEFAULT lRepaint := .T. nOriWidth := 0 nOriHeight := 0 nWidth := 0 nHeight := 0 nContador := 0 If ABS(nResolution) = 1 nOriWidth := 640 nOriHeight := 480 ElseIf ABS(nResolution) = 2 nOriWidth := 800 nOriHeight := 600 ElseIf ABS(nResolution) = 3 nOriWidth := 1024 nOriHeight := 768 ElseIf ABS(nResolution) = 4 nOriWidth := 1152 nOriHeight := 864 ElseIf ABS(nResolution) = 5 nOriWidth := 1280 nOriHeight := 800 ElseIf ABS(nResolution) = 6 nOriWidth := 1280 nOriHeight := 1024 ElseIf ABS(nResolution) = 7 nOriWidth := 1600 nOriHeight := 1200 ElseIf ABS(nResolution) = 8 nOriWidth := 768 nOriHeight := 1024 Else ScrResolution( @nOriWidth, @nOriHeight ) Endif //If nWhatSize = 0 // ScrResolution( @nWidth, @nHeight ) //ElseIf nWhatSize = 1 If nWhatSize = 1 nWidth := 640 nHeight := 480 ElseIf nWhatSize = 2 nWidth := 800 nHeight := 600 ElseIf nWhatSize = 3 nWidth := 1024 nHeight := 768 ElseIf nWhatSize = 4 nWidth := 1152 nHeight := 864 ElseIf nWhatSize = 5 nWidth := 1280 nHeight := 800 ElseIf nWhatSize = 6 nWidth := 1280 nHeight := 1024 ElseIf nWhatSize = 7 nWidth := 1600 nHeight := 1200 ElseIf nWhatSize = 8 nWidth := 768 nHeight := 1024 Else ScrResolution( @nWidth, @nHeight ) /* If oWnd:ClassName() = "TMDICHILD" nWidth := oWnd:oWnd:nRight - oWnd:oWnd:nLeft - 10 nHeight := oWnd:oWnd:nBottom - oWnd:oWnd:nTop - 0 ElseIf oWnd:oWnd:ClassName() = "TMDICHILD" nWidth := oWnd:oWnd:oWnd:nRight - oWnd:oWnd:oWnd:nLeft - 10 nHeight := oWnd:oWnd:oWnd:nBottom - oWnd:oWnd:oWnd:nTop - 0 Else ScrResolution( @nWidth, @nHeight ) EndIf //ScrResolution( @nWidth, @nHeight ) */ Endif //ScrResolution( @nWidth, @nHeight ) /* Traza( 1, "nOriWidth=", nOriWidth ) Traza( 1, "nOriHeight=", nOriHeight ) Traza( 1, "nWidth=", nWidth ) Traza( 1, "nHeight=", nHeight ) */ //Traza( 1, "oWnd:ClassName()=", oWnd:ClassName() ) //If nOriWidth != nWidth // .or. If lAutoresize .and. nOriHeight != nHeight /* Este será el caso habitual, en el cual se pretende redimensionar los controles a la resolución de la pantalla en la cual se estan viendo. 01/03/2006 */ If nResolution > 0 nFactorWitdh := nWidth / nOriWidth nFactorHeight := nHeight / nOriHeight /* Este será el caso en el cual se pretende deshacer el redimensionamiento de los controles realizado previamente. */ ElseIf nResolution < 0 nFactorWitdh := nOriWidth / nWidth nFactorHeight := nOriHeight / nHeight EndIf //oWnd:CoorsUpdate() If lRepaint oWnd:Hide() EndIf //If nFactorWitdh > 1 // .or. If nFactorHeight > 1 //Traza( 1, "Aumentando tamaño." ) If oWnd:ClassName() == "kalimeroquetequiero" ElseIf oWnd:ClassName() $ "/TJ02LISMN/TLISTBOX/" /* Traza( 1, "oWnd:nTop=", oWnd:nTop ) Traza( 1, "oWnd:nLeft=", oWnd:nLeft ) Traza( 1, "oWnd:nWidth=", oWnd:nWidth ) Traza( 1, "oWnd:nHeight=", oWnd:nHeight ) */ oWnd:Move( oWnd:nTop * nFactorHeight , ; oWnd:nLeft * nFactorWitdh, ; oWnd:nWidth * nFactorWitdh, ; oWnd:nHeight , ; .F. ) Else oWnd:Move( oWnd:nTop * nFactorHeight , ; oWnd:nLeft * nFactorWitdh, ; oWnd:nWidth * nFactorWitdh, ; oWnd:nHeight * nFactorHeight , ; .F. ) EndIf EndIf If oWnd:ClassName() == "TFOLDER" // Traza( 1, "ValType(oWnd:aDialogs)=", ValType(oWnd:aDialogs) ) If ValType( oWnd:aDialogs ) = "A" For nContador := 1 To Len( oWnd:aDialogs ) AutResiz( lAutoresize, nWhatSize, oWnd:aDialogs[nContador], nResolution, .F. ) EndFor EndIf Else // Traza( 1, "ValType(oWnd:aControls)=", ValType(oWnd:aControls) ) If ValType( oWnd:aControls ) = "A" For nContador := 1 To Len( oWnd:aControls ) AutResiz( lAutoresize, nWhatSize, oWnd:aControls[nContador], nResolution, .F. ) EndFor EndIf EndIf //If nFactorWitdh < 1 // .or. If nFactorHeight < 1 //Traza( 1, "Disminuyendo tamaño." ) If oWnd:ClassName() == "kalimeroquetequiero" ElseIf oWnd:ClassName() $ "/TJ02LISMN/TLISTBOX/" /* Traza( 1, "oWnd:nTop=", oWnd:nTop ) Traza( 1, "oWnd:nLeft=", oWnd:nLeft ) Traza( 1, "oWnd:nWidth=", oWnd:nWidth ) Traza( 1, "oWnd:nHeight=", oWnd:nHeight ) */ //Traza( 1, "oWnd:nRight=", oWnd:nRight ) //Traza( 1, "oWnd:nBottom=", oWnd:nBottom ) oWnd:Move( oWnd:nTop * nFactorHeight , ; oWnd:nLeft * nFactorWitdh, ; oWnd:nWidth * nFactorWitdh, ; oWnd:nHeight , ; .F. ) //oWnd:SetSize( oWnd:nWidth * nFactorWitdh, oWnd:nHeight * nFactorHeight, .T. ) /* Traza( 1, "oWnd:nTop=", oWnd:nTop ) Traza( 1, "oWnd:nLeft=", oWnd:nLeft ) Traza( 1, "oWnd:nWidth=", oWnd:nWidth ) Traza( 1, "oWnd:nHeight=", oWnd:nHeight ) */ Else oWnd:Move( oWnd:nTop * nFactorHeight , ; oWnd:nLeft * nFactorWitdh, ; oWnd:nWidth * nFactorWitdh, ; oWnd:nHeight * nFactorHeight , ; .F. ) EndIf EndIf If lRepaint oWnd:Show() EndIf EndIf Return Nil ***************************************** Saludos Carlos G.
¿Como cambiar tamaño de un dialogo en tiempo de ejecucion?
Garcias por tu respuesta. Pero todavia tengo algún problema con los dialogos, los literales o textos fijos en el dialogo no son dimensionados y la visualizacion en pantalla de estos textos desfiguran la visualizacion. ¿Como se pueden tratar los textos fijos o literales en un dialogo para que pueda redimensionarlos? Gracias por adelantado, Jose Alfonso
¿Como cambio los colores de las ventanas?
Eso. Quiero que no tome los colores del window sino supongamos que tome todo color negro. gracias.
¿Como creo menú dinámico?
¿Como puedo crear una opción en el menú del tipo "Archivos recientes"? O sea, los que usan los programas como el word, que abres un archivo y la siguiente vez que entras lo ves en la lista de archivos recientes, abres otro archivo, vuelves a ver en el menú y aparece ahi.
¿Como creo menú dinámico?
Quique, FWH proporciona objetos MRU ("most recently used") que automatizan ese proceso <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Busca por MRU en los PRGs de la carpeta samples. Aqui tienes un ejemplo usado en samples/fivedbu.prg: [code=fw:23a53l7r]<div class="fw" id="{CB}" style="font-family: monospace;">         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Recent files"</span><br />         <span style="color: #0000ff;">MENU</span><br />            MRU oMruDBFs ;<br />               FILENAME <span style="color: #ff0000;">".<span style="color: #000000;">\F</span>iveDBU.ini"</span> ;    <span style="color: #B900B9;">// .INI to manipulate. '\.' for local</span><br />               SECTION  <span style="color: #ff0000;">"Recent DBF files"</span> ; <span style="color: #B900B9;">// The name of the INI section</span><br />               <span style="color: #0000ff;">ACTION</span>   Open<span style="color: #000000;">&#40;</span> cMruItem <span style="color: #000000;">&#41;</span> ;   <span style="color: #B900B9;">// cMruItem is automatically provided</span><br />               <span style="color: #0000ff;">MESSAGE</span>  <span style="color: #ff0000;">"Open this file"</span> ;   <span style="color: #B900B9;">// The message for all of them</span><br />               <span style="color: #0000ff;">SIZE</span>     <span style="color: #000000;">10</span><br />         <span style="color: #0000ff;">ENDMENU</span></div>[/code:23a53l7r] Para salvar un nuevo elemento solo hay que hacer: oMruDBFs:Save( cFileName )
¿Como creo menú dinámico?
Gracias Antonio, no es exactamente lo que busco porque no uso archivos .ini, pero creo que me servirá de base, ademas, necesito que se modifique en tiempo de ejecución.
¿Como creo menú dinámico?
Los MRU se modifican en tiempo de ejecución, por lo que puede servirte de base para modificarlo segun tus necesidades
¿Como creo menú dinámico?
Gracias, me sirvió como base, aunque no utilicé la clase, trabajé directamente sobre el objeto devuelto en el comando menu oMenu
¿Como descomprimir archivo .zip?
Estoy buscando la manera de descomprimir (y comprimir) archivos .zip. He buscado en los archivos y no he llegado a encontrar una solución completa y funcional. Probablemente me falta la librería hbmzip.lib . Si es posible, me gustaría tener un ejemplo del código de implementación junto con la biblioteca. Gracias.
¿Como descomprimir archivo .zip?
Buenas; Aquí tienes un programa completo ( pBackup ) para comprimir y descomprimir ficheros ZIP, también incluye control de contraseñas, Incluye código fuente completo. [url:2dtattb3]http&#58;//javierlloris&#46;blogspot&#46;com&#46;es/p/programas-y-herramientas&#46;html[/url:2dtattb3] Un saludo JLL
¿Como descomprimir archivo .zip?
JLL, Tu aplicación es para FWPPC ?
¿Como deshabilitar el Task Bar de PocketPC?
Hola Antonio, Tal como hablamos por telefono, necesito esto ? ¿Como deshabilitar el Task Bar de PocketPC? Saludos,
¿Como deshabilitar el Task Bar de PocketPC?
Pablo, Aqui tienes un ejemplo que oculta todo. Puedes seleccionar facilmente lo que quieras dejar visible. Recuerda que has de hacer click para salir de la ventana <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [code=fw:12yeddvo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FWCE.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> SHFS_HIDETASKBAR    <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> SHFS_HIDESIPBUTTON  <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> SHFS_HIDESTARTICON <span style="color: #000000;">20</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> oWnd<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   <br />   ShFullScreen<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, SHFS_HIDETASKBAR <span style="color: #000000;">&#41;</span><br />   ShFullScreen<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, SHFS_HIDESTARTICON <span style="color: #000000;">&#41;</span><br />   ShFullScreen<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, SHFS_HIDESIPBUTTON <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> MoveWindow<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">300</span>, <span style="color: #000000;">320</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:12yeddvo]
¿Como digitalizo datos que no se pueden exportar?
Hola. Tengo un programa VIEJITO hecho un lenguaje que no conozco su nombre y que en su momento no se hablaba de exportar datos, lo unico que me imagino es tomar los datos que el programa larga como listado. [b:2u6krzar]Pregunta: [/b:2u6krzar] se puede tomar esos datos antes que se impriman y (por ejemplo) largarlo a un txt para poder despues tratarlo? Gracias.
¿Como digitalizo datos que no se pueden exportar?
No se muy bien a que te refieres, pero te voy a contestar a lo que yo te entiendo. Instala una impresora virtual por ejemplo una pdf, y luego la impresión de ese programa VIEJO la pones en esta impresora virtual y asi te genera un fichero con la salida de texto de tu programa. Espero que te sirva esto. un saludo.