topic
stringlengths
1
63
text
stringlengths
1
577k
ActiveX y actx con Fingerprint
Hola, buenas tardes estoy implementando un lector de Huella (con Fingerprint) pero al intentar compilar me di cuenta que no cuento con la clase TactiveX ni con la clase TactX, las cuales son necesarias, me puede orientar como las consigo? Trabajo con Xharbour De antemano Gracias
ActiveX: How to check/update version
I've been using RMChart OCX successfully and a new version has just come out. Here is the pseudo code of what I want to do:- ...... If the OCX is already registered If the OCX registered is an outdated version Unregister the old version Register the new version Endif Endif ...... Any suggestions re how I can do this? Thanks in advance. Colin Wisbey
ActiveX: How to check/update version
Colin, > If the OCX is already registered if IsActiveX( <cProgID> ) > If the OCX registered is an outdated version There should be a method to know the version. We need to know which one it is
Activex no funciona en Internet Explorer
Joao, qué raro, yo lo uso habitualmente Qué version de SO utilizas?
Activex no funciona en Internet Explorer
[url:29v1of36]http&#58;//fivewin&#46;com&#46;br/index&#46;php?/topic/27339-problema-na-busca-do-cnpj-site-da-receita/[/url:29v1of36] [code=fw:29v1of36]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oWnd, oActivex<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> oBar<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Google Action"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar _3D <span style="color: #0000ff;">OF</span> oWnd<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> Receita<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Google Action"</span> NOINSET CLOCK DATE KEYBOARD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">Function</span> Receita<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cPortal<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cEvents := <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> !IsInternet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; Msgalert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Não conectado a internet."</span>, <span style="color: #ff0000;">"Aviso!"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><br />&nbsp; &nbsp;MsgWait<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CONECTANDO AO PORTAL DA RECEITA "</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"AGUARDE... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>, <span style="color: #000000;">3.0</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">800</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Receita.GOV"</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// oActiveX = TActiveX():New( oWnd, "Shell.Explorer.2" ) &nbsp;// nao funciona no IE</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// nao funciona no IE</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> ACTIVEX oActiveX PROGID <span style="color: #ff0000;">"Shell.Explorer.2"</span> <span style="color: #0000ff;">OF</span> oWnd <br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oClient</span> = oActiveX<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// oActiveX&#058;GoHome()</span><br />&nbsp; &nbsp;oActivex&#<span style="color: #000000;">058</span>;Silent &nbsp; &nbsp; := .T.<br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;FullScreen := .T.<br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;Visible &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;ToolBar &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;StatusBar &nbsp;:= .T.<br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;MenuBar &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp;oActivex&#<span style="color: #000000;">058</span>;SetFocus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;Do<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Navigate2"</span>, <span style="color: #ff0000;">"https://www.receita.fazenda.gov.br/PessoaJuridica/CNPJ/cnpjreva/Cnpjreva_Solicitacao2.asp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;bOnEvent = <span style="color: #000000;">&#123;</span> | event, aParams, pParams | cEvents += EventInfo<span style="color: #000000;">&#40;</span> event, aParams, pParams, oActiveX <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> MemoEdit<span style="color: #000000;">&#40;</span> cEvents <span style="color: #000000;">&#41;</span>, .t. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// VALID( oActiveX&#058;End() )</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Com ShellExecute funciona perfeito no chrome.</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp;cPortal := "https://www.receita.fazenda.gov.br/PessoaJuridica/CNPJ/cnpjreva/Cnpjreva_Solicitacao2.asp"<br /><br />&nbsp; &nbsp;If !IsInternet()<br /><br />&nbsp; &nbsp; &nbsp; Msgalert("Não conectado a internet.", "Aviso!")<br /><br />&nbsp; &nbsp; &nbsp; Return nil<br /><br />&nbsp; &nbsp;Endif<br /><br />&nbsp; &nbsp;MsgWait( "CONECTANDO AO PORTAL DA SEFAZ...", ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "AGUARDE... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;", 3.0 )<br /><br />&nbsp; &nbsp;// Executa o navegador padrao... Google Chrome nao gosto do IE.<br />&nbsp; &nbsp;ShellExecute( GetActiveWindow(), "open", cPortal,,,9 )<br />&nbsp; &nbsp;*/</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> EventInfo<span style="color: #000000;">&#40;</span> event, aParams, pParams, oActiveX <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cMsg := <span style="color: #ff0000;">"Evento: "</span> + cValToChar<span style="color: #000000;">&#40;</span> event <span style="color: #000000;">&#41;</span> + CRLF<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;cMsg += <span style="color: #ff0000;">"Params: "</span> + CRLF<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aParams <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cMsg += cValToChar<span style="color: #000000;">&#40;</span> aParams<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + CRLF<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> event == <span style="color: #ff0000;">"BeforeNavigate2"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// MsgInfo( aParams[ 2 ] )</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// SetEventParam( pParams, 7, .t. ) // Comment this to allow navigation</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span> &nbsp; <br /><br /><span style="color: #00C800;">return</span> cMsg + CRLF<br />&nbsp;</div>[/code:29v1of36] Gracias, saludos.
Activex no funciona en Internet Explorer
Buenas master, creo que el problema sea que ahora el site pide um captcha y pide también um "no és robot?" Y para que aparezca el "no és robot?", solo se si usar un script tipo .Html, mas no tengo certezca también se és esto mismo. Con activex, el campo "No és Robot" no vién para se digitar el captcha de la página. Mira se comprendes, porfa: [url:3jbr5zwo]http&#58;//fivewin&#46;com&#46;br/index&#46;php?/topic/27339-problema-na-busca-do-cnpj-site-da-receita/[/url:3jbr5zwo] Como debria aparecer en el internet explorer usando ActiveX&#058; [url:3jbr5zwo]https&#58;//www&#46;receita&#46;fazenda&#46;gov&#46;br/pessoajuridica/cnpj/cnpjreva/cnpjreva_solicitacao2&#46;asp[/url:3jbr5zwo] Master no tengo certezca, mas creo que el código del Script sea este: [url]view-source:https://www.receita.fazenda.gov.br/pessoajuridica/cnpj/cnpjreva/cnpjreva_solicitacao2.asp[/url] Gracias, saludos.
Activex no funciona en Internet Explorer
Recientemente ( un mes mas o menos ) me ha pasado algo similar . Yo lo usaba con la pagina de Gmail , para ver los correos y ha dejado de funcionar correctamente , se quedaba congelado supongo por que no ejecutaba uno de los códigos internos de la página . mi solución paso por usar oIE := win_oleCreateObject( "InternetExplorer.Application" ) . Cualquier noticia nueva es bienvenida <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Activex no funciona en Internet Explorer
Ja expliquei uma vez aqui no forum. Nossos programas quando acessa o sistema WEBBROWSER do Windows tem como padrão executar emulando o internet explorer versão 8, mesmo que no computador esteja instalado a versão 11. Para dizer ao Windows que nossas aplicações queiram usar os recursos de outra versão é só executar a função [b:pzh49rpi][u:pzh49rpi]INTER_APP_WEB_CONFIG(f_cNameProg,f_nVersion_IE)[/u:pzh49rpi][/b:pzh49rpi] Ex: Se voce possui a versão 11 do internet explorer e queira acessar os recursos desta versão voce parametriza assim: [b:pzh49rpi]INTER_APP_WEB_CONFIG("YourProgram.exe",11001)[/b:pzh49rpi] Quando houver chamada de Activex de WebBrowser o Windows coloca a disposição os recursos da versão 11 do Internet Explorer. Qualquer duvida acesse: [url:pzh49rpi]https&#58;//msdn&#46;microsoft&#46;com/en-us/library/ee330730(v=vs&#46;85)&#46;aspx#browser_emulation[/url:pzh49rpi] [code=fw:pzh49rpi]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">///////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #00D7D7;">#define</span>  HKEY_LOCAL_MACHINE      <span style="color: #000000;">2147483650</span><br /><br /><span style="color: #00C800;">FUNCTION</span> INTER_APP_WEB_CONFIG<span style="color: #000000;">&#40;</span>f_cNameProg,f_nVersion_IE<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oRegKey, cRegProgGet, lDeleteKey := .f.<br />  <br />  <span style="color: #00C800;">Default</span> f_nVersion_IE := <span style="color: #000000;">11001</span><br /><br />  <span style="color: #00C800;">if</span> IsWow64<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />    <br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_BROWSER_EMULATION"</span> <span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,f_nVersion_IE,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_AJAX_CONNECTIONEVENTS"</span> <span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">0</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Padrão 0</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_ZONE_ELEVATION"</span> <span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">0</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Padrão 1</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_READ_ZONE_STRINGS_FROM_REGISTRY"</span> <span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Padrão 0</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>AIN<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_BEHAVIORS"</span> <span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_ENABLE_WEB_CONTROL_VISUALS"</span> <span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_SHOW_APP_PROTOCOL_WARN_DIALOG"</span> <span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Padrao 0</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_GPU_RENDERING"</span> <span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Padrao 0</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_NINPUT_LEGACYMODE"</span> <span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">0</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Padrao 1</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />  <span style="color: #00C800;">Else</span><br /><br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"Software<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_BROWSER_EMULATION"</span> <span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,f_nVersion_IE,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>AIN<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_BEHAVIORS"</span> <span style="color: #000000;">&#41;</span><br />    cRegProgGet := oRegKey:<span style="color: #000000;">GetBinary</span><span style="color: #000000;">&#40;</span>f_cNameProg<span style="color: #000000;">&#41;</span><br />    <span style="color: #B900B9;">//? cRegProgGet</span><br />    <span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span>cRegProgGet<span style="color: #000000;">&#41;</span><br />      oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">EndIf</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />         <span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>AIN<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_ENABLE_WEB_CONTROL_VISUALS"</span> <span style="color: #000000;">&#41;</span><br />      oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />    oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #00C800;">EndIf</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:pzh49rpi]
Activex no funciona en Internet Explorer
Perfect Giovany Vecchi, many thanks! [code=fw:1xva4hdw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> &nbsp;HKEY_LOCAL_MACHINE &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2147483650</span><br /><br /><span style="color: #00C800;">STATIC</span> oWnd, oActivex<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> oBar<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp;http://fivewin.com.br/index.php?/topic/27339-problema-na-busca-do-cnpj-site-da-receita/<br /><br />&nbsp; &nbsp;http://forums.fivetechsupport.com/viewtopic.php?f=6&t=34901<br />&nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;INTER_APP_WEB_CONFIG<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"TESTE2.exe"</span>,<span style="color: #000000;">11001</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Google Action"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar _3D <span style="color: #0000ff;">OF</span> oWnd<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> Receita<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Google Action"</span> NOINSET CLOCK DATE KEYBOARD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">Function</span> Receita<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cPortal<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cEvents := <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> !IsInternet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; Msgalert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Não conectado a internet."</span>, <span style="color: #ff0000;">"Aviso!"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><br />&nbsp; &nbsp;MsgWait<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CONECTANDO AO PORTAL DA RECEITA "</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"AGUARDE... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>, <span style="color: #000000;">3.0</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">800</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Receita.GOV"</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// oActiveX = TActiveX():New( oWnd, "Shell.Explorer.2" ) &nbsp;// nao funciona no IE</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// nao funciona no IE</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> ACTIVEX oActiveX PROGID <span style="color: #ff0000;">"Shell.Explorer.2"</span> <span style="color: #0000ff;">OF</span> oWnd <br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oClient</span> = oActiveX<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// oActiveX&#058;GoHome()</span><br />&nbsp; &nbsp;oActivex&#<span style="color: #000000;">058</span>;Silent &nbsp; &nbsp; := .T.<br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;FullScreen := .T.<br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;Visible &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;ToolBar &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;StatusBar &nbsp;:= .T.<br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;MenuBar &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp;oActivex&#<span style="color: #000000;">058</span>;SetFocus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;Do<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Navigate2"</span>, <span style="color: #ff0000;">"https://www.receita.fazenda.gov.br/PessoaJuridica/CNPJ/cnpjreva/Cnpjreva_Solicitacao2.asp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;bOnEvent = <span style="color: #000000;">&#123;</span> | event, aParams, pParams | cEvents += EventInfo<span style="color: #000000;">&#40;</span> event, aParams, pParams, oActiveX <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> MemoEdit<span style="color: #000000;">&#40;</span> cEvents <span style="color: #000000;">&#41;</span>, .t. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// VALID( oActiveX&#058;End() )</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Com ShellExecute funciona perfeito no chrome.</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp;cPortal := "https://www.receita.fazenda.gov.br/PessoaJuridica/CNPJ/cnpjreva/Cnpjreva_Solicitacao2.asp"<br /><br />&nbsp; &nbsp;If !IsInternet()<br /><br />&nbsp; &nbsp; &nbsp; Msgalert("Não conectado a internet.", "Aviso!")<br /><br />&nbsp; &nbsp; &nbsp; Return nil<br /><br />&nbsp; &nbsp;Endif<br /><br />&nbsp; &nbsp;MsgWait( "CONECTANDO AO PORTAL DA SEFAZ...", ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "AGUARDE... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;", 3.0 )<br /><br />&nbsp; &nbsp;// Executa o navegador padrao... Google Chrome nao gosto do IE.<br />&nbsp; &nbsp;ShellExecute( GetActiveWindow(), "open", cPortal,,,9 )<br />&nbsp; &nbsp;*/</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> EventInfo<span style="color: #000000;">&#40;</span> event, aParams, pParams, oActiveX <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cMsg := <span style="color: #ff0000;">"Evento: "</span> + cValToChar<span style="color: #000000;">&#40;</span> event <span style="color: #000000;">&#41;</span> + CRLF<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;cMsg += <span style="color: #ff0000;">"Params: "</span> + CRLF<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aParams <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cMsg += cValToChar<span style="color: #000000;">&#40;</span> aParams<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + CRLF<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> event == <span style="color: #ff0000;">"BeforeNavigate2"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// MsgInfo( aParams[ 2 ] )</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// SetEventParam( pParams, 7, .t. ) // Comment this to allow navigation</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span> &nbsp; <br /><br /><span style="color: #00C800;">return</span> cMsg + CRLF<br /><br /><span style="color: #B900B9;">/*<br />Parametrize seu programa com a versão do seu navegador atual.<br /><br />Ex: se seu navegador for iexplorer 11 coloque assim<br /><br />INTER_APP_WEB_CONFIG("SeuPrograma.exe",11001)<br />*/</span><br /><br /><span style="color: #00C800;">FUNCTION</span> INTER_APP_WEB_CONFIG<span style="color: #000000;">&#40;</span>f_cNameProg,f_nVersion_IE<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oRegKey, cRegProgGet, lDeleteKey := .f.<br />&nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">Default</span> f_nVersion_IE := <span style="color: #000000;">11001</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> IsWow64<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_BROWSER_EMULATION"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,f_nVersion_IE,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_AJAX_CONNECTIONEVENTS"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">0</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Padrão 0</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_ZONE_ELEVATION"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">0</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Padrão 1</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_READ_ZONE_STRINGS_FROM_REGISTRY"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Padrão 0</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>AIN<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_BEHAVIORS"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_ENABLE_WEB_CONTROL_VISUALS"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_SHOW_APP_PROTOCOL_WARN_DIALOG"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Padrao 0</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_GPU_RENDERING"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Padrao 0</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\W</span>ow6432Node<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_NINPUT_LEGACYMODE"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">0</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Padrao 1</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Else</span><br /><br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Software<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_BROWSER_EMULATION"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,f_nVersion_IE,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>AIN<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_BEHAVIORS"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cRegProgGet := oRegKey:<span style="color: #000000;">GetBinary</span><span style="color: #000000;">&#40;</span>f_cNameProg<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//? cRegProgGet</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span>cRegProgGet<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oRegKey := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOFTWARE<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>AIN<span style="color: #000000;">\F</span>eatureControl<span style="color: #000000;">\F</span>EATURE_ENABLE_WEB_CONTROL_VISUALS"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span>f_cNameProg,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRegKey:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><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 />&nbsp;</div>[/code:1xva4hdw] Regards, saludos.
Activex 'Shell.Explorer' control keyboard..???
Hi All. Does the keyboard direction height do to be how control. [code=fw:2m2xvift]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oWnd_h <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">768</span>, <span style="color: #000000;">1024</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, CLR_BLUE <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> WS_POPUP, WS_VISIBLE <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"KeyBoard CTRL"</span><br /><br />       html_h := <span style="color: #ff0000;">"http://test/index.php"</span><br />       @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> ACTIVEX oActiveX_h PROGID <span style="color: #ff0000;">"Shell.Explorer"</span> <span style="color: #0000ff;">OF</span> oWnd_h <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">512</span>, <span style="color: #000000;">384</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oWnd_h <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oActiveX_h:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Navigate"</span>, html_h <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//;</span><br />                                         <span style="color: #B900B9;">//VALID iif ( GetKeyState( 27 ), .f., .t. )</span><br /> </div>[/code:2m2xvift] Question -> Keyboard control method ? How control Key Arrow. right key, left key, up, down key, enter key .......?
Activex 'Shell.Explorer' control keyboard..???
You have to use the own events of the ActiveX. Please review FWH\samples\webexp.prg to see the way to manage the activex events
Activex / Flex com xHarbour
Olá a todos, Gostaria de saber se é possivel fazer uma integração com um arquivo flex com a minha aplicação, tenho um menu feito em flex com uma árvore, gostaria que quando o usuário clicar no nó da árvore fosse chamado uma nova window da minha aplicação. Estou utilizando este código. DEFINE WINDOW oWnd TITLE "Mensagens" OF oTelaPrincipal MDICHILD STYLE 1 SIZE FROM 0,0 TO nLinha,nColuna oActiveX = TActiveX():New( oWnd, "Shell.Explorer" ) oWnd:oClient = oActiveX oActiveX&#058;Do( "Navigate","file:///C:/ruby/projetos/menusintegra/bin/menusintegra.html" ) // "S:\Documentos\Entretenimento\Artigos\Feliz Ano Novo.htm") //"http://www.bytesoftware.com.br" ) ACTIVATE WINDOW oWnd Veja a imagem. [url:2q9wk0j7]http&#58;//www&#46;bytesoftware&#46;com&#46;br/news/imagens/[/url:2q9wk0j7] Obrigado Mário Saviotti Junior
Activex Help
Eseguo da fwh\samples\webexp.exe ma non accade nulla... non dovrebbe eseguire il webbrowserCiao
Activex Help
Sì, dovrebbe. Forse hai una versione di FWH troppo vecchia?EMG
Activex X Gifs
Boa Noite pessoal É possivel rodar Gifs animados em dialog com Activex ?? Sé é possivel como fazer Obrigado..
Activex X Gifs
Luiz, Por favor revisa FWH\samples\TestGif.prg
Activex and enumerators
is it possibile to use string enumrators with fw activex? I don't know how to find the correspondent numeric of a string enumerator. Regards, Roberto Parisi
Activex and enumerators
Roberto, Could you please post a little sample of what you need ? thanks,
Activex and enumerators
oObj := TActiveX():New(...) oObj:SetProp("Alignment", taRight) taRight is a numeric enumerator, but I don't know what number is, how to get it? I hope you understand my bad english. Regards, Roberto
Activex and enumerators
Roberto, I see what you mean, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> taRight is a constant value that may be defined in a header file. Anyhow, you may try with 0, 1, 2, 3, etc.
Activex and enumerators
Many thx Antonio. Ok... my problem is that with complex activex with tens of enumrations i don't know what number I must use. Is there a way to get a list (like an array) of enumrations? Reading many commercial activex docs I see they give for an activex the following groups: - Properties - Methods - Events - Enumrations I get properties, methods and events lists, but I don't know how to get enumerations list. Thx in advance, Roberto
Activex and enumerators
Roberto, No, sorry, we don't know how to get those enumerations values yet. You may review the OCX with Microsoft OleView tool to get all its info. What OCX are you using ?
Activex con Adobe Reader
Personas, esto funciona perfecto, mas estoy con una duda: El preview del Adobe Reader, con este ejemplo, muetra los botones del Adobe, Como hago, para muestrar el MENU PRINCIPAL del ADOBE READER, para que el Usuário pueda ver la Opción <Salir> del menu? Óu el Botón <Salir>? [code=fw:2gb1w0lr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> ShowPDF_READER<span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// usando o ADOBE READER - 25/11/2013</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWndPdf, oPdf, cTmp<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWndPdf <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FiveWin ActiveX Support - Visualizar/Imprimir o *.PDF Usando o Adobe Reader"</span><br /><br />&nbsp; &nbsp;oPdf := TActiveX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWndPdf, <span style="color: #ff0000;">"AcroPDF.PDF.1"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oWndPdf:<span style="color: #000000;">oClient</span> := oPdf<br /><br />&nbsp; &nbsp;oPdf : <span style="color: #000000;">src</span> = CurDrive<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":<span style="color: #000000;">\"</span> + CurDir() + "</span>\fwintro.pdf<span style="color: #ff0000;">"<br /><br />&nbsp; &nbsp;// Mostra Preview Pequeno no lado esquedo da tela...<br />&nbsp; &nbsp;// oPdf:Do( "</span>SetPageMode<span style="color: #ff0000;">", "</span>thumbnail and pages<span style="color: #ff0000;">" )<br /><br />&nbsp; &nbsp;oPdf:SetProp( "</span>Src<span style="color: #ff0000;">", cTmp )<br /><br />&nbsp; &nbsp;oPdf:Do( "</span>LoadFile<span style="color: #ff0000;">", Lfn2Sfn(cTmp) )<br /><br />&nbsp; &nbsp;oPdf:Do( "</span>GetVersions<span style="color: #ff0000;">" )<br /><br />&nbsp; &nbsp;oPdf:Do( "</span>SetCurrentPage<span style="color: #ff0000;">", 1 )<br /><br />&nbsp; &nbsp;// oPdf:Print() // Nao funciona direto na impressora..<br /><br />&nbsp; &nbsp;// Mostra a Barra de Botoes do ADOBE READER<br />&nbsp; &nbsp;oPdf:Do( "</span>SetShowToolbar<span style="color: #ff0000;">", .T. )<br /><br />&nbsp; &nbsp;ACTIVATE WINDOW oWndPdf MAXIMIZED<br /><br />RETURN NIL<br /></span></div>[/code:2gb1w0lr] Gracias, salu2.
Activex con Adobe Reader
UP
Activex de viscomsoft
Holas, alguien esta utilizando el ActiveX de viscomsoft [url:rylebbgc]http&#58;//www&#46;viscomsoft&#46;com/products/scanner/index&#46;html[/url:rylebbgc] la cosa funciona hasta por ahi, mi problema incial no lo puedo poner en un dialogo el metodo save para salvar lo capturado en un archivo grafico hace que se cuelgue la aplicación alguna experiencia? estoy probando en win7 saludos Marcelo
Activex de viscomsoft
Hola Pues yo no lo e usado ni conocia Pero a la mejor esto te puede interesar [url:3pz63gvz]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=16808&p=87145&hilit=scan#p87145[/url:3pz63gvz] Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Activex de viscomsoft
Aida, gracias por responder, pero lo que necesito es este activeX, simplemente por las caracteristicas adicionales a la de solo captura, ojala alguien haya tenido experiencia con el saludos Marcelo
Activex difference between FWH/XHB
Antonio This piece of code works ok in Xhb.com Comando:=Chr(2) + Chr(1) Ef:AddDataField(Comando) Extension:=VtArrayWrapper(VT_UI1,(CHR(0) + CHR(0) + CHR(0) + CHR(0))) Ef:AddDataField( Extension ) Ef:SendCommand() It sends 13 bits to com1, like the OCX is intended to do.. --> Length 13: 02 D5 1B 02 01 1C 00 00 03 30 31 31 34 But.... Comando:=Chr(2) + Chr(1) Ef:DO("AddDataField",COMANDO) Extension:=VtArrayWrapper(VT_UI1,(CHR(0) + CHR(0) + CHR(0) + CHR(0))) Ef:DO("AddDataField", Extension) Ef:Do("SendCommand") ... sends only 11 --> Length 11: 02 D5 1B 02 01 1C 03 30 31 31 34 My definition of the Activex is like this... Ef:=TActiveX():New( , "EpsonFPHostControlX.EpsonFPHostControl") Ef:nWidth = 0 Ef:nHeight = 0 Ef:Do("OpenPort") Quite simple, in Xhb Works Ok but I can't make it work in FWH only... Any help will be appreciated.
Activex difference between FWH/XHB
Adolfo, Where are these bytes defined ? > 02 D5 1B 02 01 1C 00 00 03 30 31 31 34 It looks as the two in between zeros are the missing ones.
Activex difference between FWH/XHB
Antonio. This is just an example, because in the real string, the last 3 groups of bytes are the validation bytes, which change with each string sent to the port. --> Length 13: 02 D5 1B 02 01 1C -> 00 00 <- 03 30 31 31 34 --> Length 11: 02 D5 1B 02 01 1C -> <- 03 30 31 31 34 Is the problem a diferent way in which xhb and FWH send the parameters to the Method inside the activex class ? All the other properties, errors messages are recovered without problems, and the only one which is still bothering me is this one. Next step is to control the Events, but I've seen some examples which I'm gonna look at. Thanks in advance
Activex difference between FWH/XHB
Adolfo, Please try this code: MsgInfo( Len( WideToAnsi( AnsiToWide( <cData> ) ) ) == Len( <cData> ) ) where <cData> is the bytes string you send.
Activex difference between FWH/XHB
[quote="Antonio Linares":2d4c2bz9]Adolfo, Please try this code: MsgInfo( Len( WideToAnsi( AnsiToWide( <cData> ) ) ) == Len( <cData> ) ) where <cData> is the bytes string you send.[/quote:2d4c2bz9] With this code Comando:=chr(2) + Chr(1) lRes:=Ef:DO("AddDataField",Comando) MsgInfo( Len( WideToAnsi( AnsiToWide( Comando ) ) ) == Len( Comando ) ) ........ The result is .T. Extension:=VtArrayWrapper(VT_UI1,(CHR(0) + CHR(0) + CHR(0) + CHR(0))) Ef:DO("AddDataField", Extension) Ef:Do("SendCommand") MsgInfo( Len( WideToAnsi( AnsiToWide( Extension ) ) ) == Len( Extension ) ) ............. I get this error.. Unrecoverable error 9023 hb_xgrab requested to allocate zero bytes What does it mean ?
Activex difference between FWH/XHB
Adolfo, Where are the docs or samples for VtArrayWrapper() ?
Activex difference between FWH/XHB
[quote="Antonio Linares":26gkgeje]Adolfo, Where are the docs or samples for VtArrayWrapper() ?[/quote:26gkgeje] Antonio This is what I found in the "what's New" of Xharbour.com February Release # Renamed class VT to VTWrapper, and VTArray to VTArrayWrapper. # Added [] and "FOR EACH" operator overloading for VTArrayWrapper(). # Added auto wrapping of non VT_VARIANT arrays with VTarrayWrapper() class. Nevertheless, If I don't Use VtArrayWrapper(), and try to do this... in FWH Extension:=Chr(0) + Chr(0) Ef:DO("AddDataField",Extension) I get the same problem... no Bytes added to the string sent to the Com port Thanks..
Activex difference between FWH/XHB
Adolfo, Please try this again without using VT... : MsgInfo( Len( WideToAnsi( AnsiToWide( Extension ) ) ) == Len( Extension ) )
Activex difference between FWH/XHB
[quote="Antonio Linares":hc8n0wff]Adolfo, Please try this again without using VT... : MsgInfo( Len( WideToAnsi( AnsiToWide( Extension ) ) ) == Len( Extension ) )[/quote:hc8n0wff] Here is my code and the results Extension:=CHR(0) + CHR(0) Alert(len(Extension)) -> 2 Alert(Len(AnsiToWide( Extension ))) -> 1 MsgInfo( Len( WideToAnsi(AnsiToWide(Extension))) == Len(Extension)) -> .F. Now loking in some other stuff I have to do with the OCX I realize that I'll need to use CHR(0) + Chr(3), not only Zeroes but mixed with values between 1-15 The problem is that I need It to use with Both xHarbour Compilers, for 2 very big and different projects, that's why the solution found in xHb.com is not suitable for xHarbour.org, so I need it to be done with FWH. Thanks again for your time
Activex difference between FWH/XHB
Adolfo, Thats what I was thinking, that FWH AnsiToWide() is not properly managing the zeroes: Extension:=CHR(0) + CHR(0) Alert(len(Extension)) -> 2 Alert(Len(AnsiToWide( Extension ))) -> 1 We are going to review it.
Activex difference between FWH/XHB
Adolfo, We are emailing you a modified FiveHC.lib. Please try it. Thanks,
Activex difference between FWH/XHB
Antonio Thanks a lot... I'm Gonna try it, I'll send you any result I'll get Adolfo
Activex difference between FWH/XHB
Antonio... I replace Fivehc.lib with the one you sent me. Please Try This..... Either with xHarbour/xHarbour.com //----------------------------------------------------------------------------------- Function Main() Local Extension Extension:=chr(2) + Chr(1) MsgStop(len(Extension),"Extension 1 Len()") MsgStop(Len(AnsiToWide( Extension )),"Extension 1 Len(AnsiToWide)") MsgInfo( Len( WideToAnsi(AnsiToWide(Extension))) == Len(Extension)) Extension:=chr(0) + Chr(1) MsgStop(len(Extension),"Extension 2 Len()") MsgStop(Len(AnsiToWide( Extension )),"Extension 2 Len(AnsiToWide)") MsgInfo( Len( WideToAnsi(AnsiToWide(Extension))) == Len(Extension)) Extension:=Chr(0) + Chr(0) MsgStop(len(Extension),"Extension 3 Len()") MsgStop(Len(AnsiToWide( Extension )),"Extension 3 Len(AnsiToWide)" ) MsgInfo( Len( WideToAnsi(AnsiToWide(Extension))) == Len(Extension)) Return Nil //---------------------------------------------------- My results for Chr(2) + Chr(1) Len() -> 2 Len(AnsiToWide(ext)) -> 5 = .T. My results for Chr(0) + Chr(1) Len() -> 2 Len(AnsiToWide(ext)) -> 1 = .F. My results for Chr(0) + Chr(0) Len() -> 2 Len(AnsiToWide(ext)) -> 1 = .F. The Problems still remains with Chr(0) <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
Activex difference between FWH/XHB
Adolfo, Please try it with Harbour (not xHarbour) as xharbour provides another AnsiToWide() that probably is getting used instead of FWH's one.
Activex feature
Dear fwh's I want test the new TActivex class but i don't know where found the cProgId and the "Do" possibility for the selected Activex! FE (from TOOO test): [code:2sn5hr5y]&#46;&#46;&#46; DEFINE Window oWnd oWnd&#58;SetText&#40; "Vemos el PDF desde nuestra app" &#41; // oActiveX = TActiveX&#40;&#41;&#58;New&#40; oWnd, "PDF&#46;PdfCtrl&#46;5" &#41; // oActiveX = TActiveX&#40;&#41;&#58;New&#40; oWnd, "PDF&#46;PdfCtrl&#46;6" &#41; oActiveX = TActiveX&#40;&#41;&#58;New&#40; oWnd, "AcroPDF&#46;PDF&#46;1" &#41; AcroRead 7&#46;0 oWnd&#58;oClient = oActiveX oActiveX&#58;Do&#40; "LoadFile", "c&#58;\oskar&#46;pdf" &#41; oActiveX&#58;Do&#40; "SetCurrentPage", 1 &#41; ACTIVATE WINDOW oWnd ; ON INIT oActiveX&#58;Do&#40; "Show" &#41; [/code:2sn5hr5y] And "oActiveX&#058;Do( "Show" )" return error: Descrizione: Error BASE/1004 No exported method: Show Args: Stack Calls =========== Called from: => ACTXINVOKE(0) Called from: ACTIVEX.prg => TACTIVEX&#058;DO(87) Called from: Main.prg => (b)MAIN(112) Called from: WINDOW.prg => TWINDOW:ACTIVATE(879) Called from: Main.prg => MAIN(112) Thanks in advance.
Activex feature
Ugo, You may use Microsoft free OleView to inspect the ActiveX that you have installed on your computer: <!-- m --><a class="postlink" href="http://hyperupload.com/download/02b7308587/oleview.zip.html">http://hyperupload.com/download/02b7308 ... w.zip.html</a><!-- m --> From that application you can also inspect the available properties and methods. Besides that, you may google for info about a specific ActiveX and read some docs and samples about it.
Activex feature
Antonio, thank you.
Activex feature
Antonio, [quote:129umlxn]... From that application you can also inspect the available properties and methods ...[/quote:129umlxn] With OleView I find Acrobat ActiveX (i think <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> ) but I don't found the methods and properties. Can you help me? Thanks, in advance.
Activex feature
Ugo, Right click on the name of the activex and select "View Type Information": [url=http&#58;//imageshack&#46;us:2rx7eslb][img:2rx7eslb]http&#58;//img228&#46;imageshack&#46;us/img228/9395/adobeip0&#46;png[/img:2rx7eslb][/url:2rx7eslb] Anyhow, I recommend you to google for docs and samples about it. Search for its ProgID.
Activex feature
Antonio, thank you, With [code:3cfeubl4]&#46;&#46;&#46; ACTIVATE WINDOW oWnd ; ON INIT oActiveX&#58;Do&#40; "gotoFirstPage" &#41; [/code:3cfeubl4] work very well!!! [/code]
Activex in Dialog
Hi to all!.I cannot make an Activex application run o a dialog.It runs only in a window. Am i missing something ?TIAEuclides
Activex in Dialog
Euclides,You have a working sample in:fwh\samples\gmapd.prg and gmapd.rc
Activex in Dialog
You may also review:fwh\samples\webexp2.prg and webexp2.rcModify this line this way: ACTIVATE DIALOG oDlg CENTERED ; ON INIT oActiveX&#058;Do( "Navigate2", "http://www.google.com" )
Activex in Dialog
Thanks Antonio.There are so many samples and I inserted more. Is getting hard to follow all of them.Regards,Euclides
Activex in Dialog
Euclides,We don't remember all FWH examples contents, but we use a file manager (Total commander) that lets you search for file extension and a text, so we search "REDEFINE ACTIVEX" in *.prg and find all ocurrences <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->That way we can easily locate an example we are looking for <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Activex probem with xhb
I'm tryng webexp example with xhb but always take a protection error. I just tried with or without activex.lib dummy file in xhb\lib dir. My fwh version: FWHX 2.7 March 2006 My xhb version: Enterprice October 2006 What I'm doing wrong? Thank in advance.
Activex probem with xhb
Gianni, It looks as you need an updated FWH. You are mixing march and october builds. Both xHarbour and Harbour change quite often, and it is required a modified FWH libs.
Activex y Do( )
local cCadena := space( 10000 )oActiveX&#058;Do("Extract", nImagen, 300, @cCadena ) @cCadena entra y sale con el mismo valor.La clase activex puede regresarme un valor por referencia ??GraciasUso FWH 805
Activex y Do( )
Fernando,Cual es el prototipo original de ese método del ActiveX ? Me refiero a que parámetros necesita y que devuelve. Gracias,
Activex y tWord problemas
Hola, desde hace muchos años vengo utilizando la clase de tWord que funciona fenomenal en las versiones antiguas de fwh. Concretamente la versión de compilación que me funciona perfectamente es la Fivewin 2.0 de Abril de 1999. Ahora la compilo con la última versión que tengo la FWHX 10.8 descargada directamente de fivetech y me genera el ejecutable sin errores pero cuando voy a ejecutar el TWord me manda el error "Demasiadas llamadas recursivas al controlador de errores" Error irrecuperable 9003. Ese mismo código funciona perfecto en la versión anterior mencionada. Mi pregunta es si alguien le ha ocurrido algo por el estilo y lo ha podido solucionar. El tema del Activex ahora depende de fivewin o del (x)Harbour? Alguien tiene una versión actualizada del tWord que funcione con las versiones modernas tanto de harbour como del Fivewin? Saludos y grácias de antemano.
Activex y tWord problemas
Andres Podrias enviarme la clase a <!-- e --><a href="mailto:danielgarciagil@gmail.com">danielgarciagil@gmail.com</a><!-- e -->, para ver si puedo ayudarte a adaptarla a versiones mas recientes y que les puede servir a otros tambien debo decir que nunca he visto ni usado la clase :S
Activex y tWord problemas
Ok Daniel, ya veo que es un problema con alguna de las partes de la clase. He logrado aislar alguna de las cosas que me fallan. Te mando el trozo de código y la clase. Ahora si quito el cambio de fuente, los margenes, la justificación y el tema de la vista me lo muestra.
Activex y tWord problemas
Andres He estado viendo la clase, podrias publicar un ejemplo que pueda construir para probar la clase Gracias
Activex Bug ?
Ao alterar em duas Janelas com ALT + TAB me danifica a pantalha. Pantalha com Problema : [img:35lamzwc]http&#58;//www&#46;bytesoftware&#46;com&#46;br/teste/imagem1&#46;jpg[/img:35lamzwc] Pantalha correta : [img:35lamzwc]http&#58;//www&#46;bytesoftware&#46;com&#46;br/teste/imagem2&#46;jpg[/img:35lamzwc] Código está assim : DEFINE WINDOW oSistema:oWndMenu OF oTelaPrincipal MDICHILD PIXEL STYLE 1 SIZE FROM 0,0 TO nLinha,nColuna NOBORDER NOSYSMENU //oTelaPrincipal:nWidth-50,oTelaPrincipal:nHeight-150 oSistema:oActiveX = TActiveX():New( oSistema:oWndMenu, "Shell.Explorer" ) oSistema:oWndMenu:oClient := oSistema:oActiveX aUrl := "file:///" aUrl += CurDrive() + ":\" + ALLTRIM(CurDir()) aUrl += "\menusintegra.html" aUrl := strtran (aUrl,"\","/") oSistema:oActivex&#058;Do("Navigate",aUrl ) ACTIVATE WINDOW oSistema:oWndMenu valid oSistema:Finalizou DEFINE WINDOW oSistema:oWnd OF oTelaPrincipal MDICHILD STYLE 1 PIXEL SIZE FROM 0,nColuna + .1 TO nLinha,oTelaPrincipal:nWidth NOBORDER NOSYSMENU oSistema:oActiveXWnd := TActiveX():New( oSistema:oWnd, "Shell.Explorer" ) oSistema:oWnd:oClient := oSistema:oActiveXWnd aUrl := "file:///" aUrl += CurDrive() + ":\" + ALLTRIM(CurDir()) aUrl += "\SintegraAuntentica.html" aUrl := strtran (aUrl,"\","/") oSistema:oActiveXWnd:Do("Navigate",aUrl ) ACTIVATE WINDOW oSistema:oWnd valid oSistema:Finalizou ON INIT oSistema:oWnd:Disable () Seria um bug da classe Activex ? alguma solucion para resolver el problema ? Gracias Mário [/img]
Activex Bug ?
Mario, Prueba esto: oSistema:bGotFocus = { || oSistema:oActiveXWnd:Refresh() }
Activex Bug ?
Antonio, Gracias pela resposta, mas al colocar oSistema:oWndMenu:bGotFocus = { || oSistema:oActiveX&#058;Refresh() } me salta este erro : [img:1a50kfwe]http&#58;//www&#46;bytesoftware&#46;com&#46;br/teste/imagem3&#46;jpg[/img:1a50kfwe] Mário
Activex Bug ?
Mario, Prueba así: oSistema:oWndMenu:bGotFocus = { || InvalidateRect( oSistema:oActiveX&#058;hWnd, .T. ) }
Activex Bug ?
Antonio, Gracias, mas ainda não foi desta vez, já fiz várias tentativas : nFocou := 0 oTelaPrincipal:bGotFocus := {|| iif (oSistema:oActiveX != nil, (oTelaPrincipal:cTitle := "focou " + str(nfocou++,06) , oSistema:oWndMenu:Refresh (),InvalidateRect( oSistema:oActivex&#058;:hWnd,.t. ) ) , sysrefresh () ) } Veja : [img:2ieug4us]http&#58;//www&#46;bytesoftware&#46;com&#46;br/teste/imagem4&#46;jpg[/img:2ieug4us] [img:2ieug4us]http&#58;//www&#46;bytesoftware&#46;com&#46;br/teste/imagem5&#46;jpg[/img:2ieug4us]
Activex Bug ?
Sr. Antonio Como corrigir el problema, não posso entregar a aplicação desta forma ? Gracias. Mário
Activex Bug ?
Alguém poderia me ajudar com este problema, o projeto está pronto para entrega, dependendo apenas deste bug. Gracias. Mário
Activex Bug ?
Mario, La clase TActiveX usa pintado a doble buffer. Podrías probar a quitarle el pintado a doble buffer y ver si así se soluciona el problema. La forma de quitar el doble buffer, es eliminar estas líneas: // METHOD Display() INLINE ::BeginPaint(), ::Paint(), ::EndPaint(), 0 // METHOD EraseBkGnd( hDC ) INLINE 1
Activex Bug ?
Antonio, Utilizo xHB Comercial e tenho linkado com C:\xHB\lib\ActiveX.lib se lo saco, acontece el seguinte erro : xLINK: error: Unresolved external symbol '_HB_FUN_OLEGETPROPERTY'. xLINK: error: Unresolved external symbol '_HB_FUN_OLESETPROPERTY'. xLINK: error: Unresolved external symbol '_HB_FUN_OLEINVOKE'. xLINK: error: Unresolved external symbol '??2@YAPAXI@Z'. xLINK: error: Unresolved external symbol '??3@YAXPAX@Z'. xLINK: fatal error: 5 unresolved external(s). Se coloco ACTIVEX.PRG de Fivewin dentro do projeto acontece el seguinte erro : xLINK: error: Unresolved external symbol '_HB_FUN_ACTXGETPROPERTY'. xLINK: error: Unresolved external symbol '_HB_FUN_ACTXSETPROPERTY'. xLINK: error: Unresolved external symbol '_HB_FUN_ACTXSTRING'. xLINK: error: Unresolved external symbol '_HB_FUN_ACTXINVOKE'. xLINK: error: Unresolved external symbol '_HB_FUN_ACTXEVENTS'. xLINK: error: Unresolved external symbol '??2@YAPAXI@Z'. xLINK: error: Unresolved external symbol '??3@YAXPAX@Z'. xLINK: fatal error: 7 unresolved external(s). Parece que está havendo algum conflito em ACTIVEX de fivewin com ACTIVEX de xHB Comercial. Poderia verificar por favor, Gracias. Mário
Activex Bug ?
Mario, Que versión de FWH estás usando ?
Activex Bug ?
FWH 2.6
Activex Bug ?
Mario, Que versión de xHB comercial usas ?
Activex Bug ?
xHarbour 0.99.51 Simplex ( Comercial )
Activex Bug ?
Mario, Por favor enlaza este OBJ en tu aplicación: <!-- m --><a class="postlink" href="http://rapidshare.com/files/31521032/xhb.obj.html">http://rapidshare.com/files/31521032/xhb.obj.html</a><!-- m -->
Activex Bug ?
Enlace el .obj e não solucionou el problema. Tentei enlaçar xhb.obj + activex.prg e ocorre os mesmos erros arriba. Notei que ocorre principalmente al Minimizar e Maximizar el window que contén el activex. Gracias Mário
Activex Bug ?
Mario, Con ese OBJ deberían desaparecer estos errores: xLINK: error: Unresolved external symbol '??2@YAPAXI@Z'. xLINK: error: Unresolved external symbol '??3@YAXPAX@Z'. De todas formas, la versión actual de FWH 7.04 es compatible con xHB, pero no podemos solucionarlo para la versión 2.6 (ya que hay cambios en el pcode y en la estructura interna de xharbour)
Activex Bug ?
Vou atualizar para FWH 7.04 e ver se el problema desaparece. Gracias, Mário
Activex Bug ?
Antonio, Acabo de efetuar a compra, se puderes enviar com urgência, ficarei grato. Mário
Activex Bug ?
Mario, Te hemos enviado un email,
Activex Bug ?
Antonio, Já consegui efetuar a migração para FWH 7.05 + xHB 99.70, graças a teu suporte, agora continuo com o erro el Activex que não me refresca la pantalha como demonstrado arriba. Já quitei estas linhas em activex.prg e não resolveu // METHOD Display() INLINE ::BeginPaint(), ::Paint(), ::EndPaint(), 0 // METHOD EraseBkGnd( hDC ) INLINE 1 Poderia me ajudar a resolver isto por favor. Gracias. Mário
Activex Bug ?
Mário, Si haces un oActiveX&#058;Refresh() se repinta todo el control correctamente ?
Activex Bug ?
Antonio, Já utilizei e não funciona : oTelaPrincipal:bGotFocus := {|| oSistema:oActivex&#058;Refresh () } oTelaPrincipal:bGotFocus := {|| oSistema:oActivex&#058;Paint () } oTelaPrincipal:bGotFocus := {|| oSistema:oActivex&#058;Display () } O Unico que realmente refaz a tela é : oTelaPrincipal:bGotFocus := {|| Do("Navigate",oSistema:aUrl ) } Mas não me serve. Tem outra saida ? Gracias, Mário
Activex Bug ?
Mario, LLama directamente a oSistema:oActivex&#058;Refresh() desde la acción de un botón, ó desde un menuitem y comprueba si repinta el activex
Activex Bug ?
Antonio, Coloquei um botão para refresh e não repinta, então linkey junto com a aplicação C:\XBH\LIB\ACTIVEX.LIB e já repinta, mas o refresh () carrega todo Activex novamente, perdendo lá posição del menu, pois o mesmo é feito em Flex, sabe se teria outro evento que não recarregue o componente e sim mostre como estava. Gracias, Mário
Activex apariencia y uso de teclas vs iexplore
Saludos al foro, sigo haciendo pruebas con webexp.prg y se notan 2 detalles: 1. La apariencia es diferente a la ventana del iexplore, revisando la clase no encuentro nada que me permita cambiar la apariencia, estoy usando WinXP 2. En webexp no tiene efecto CTRL-V, SHIFT-INS, tampoco permite usar la tecla DEL para borrar algo seleccionado, en la ventana del iexplore si funcionan, Alguna otra persona tiene este mismo efecto?, anexo las imágenes, gracias anticipadas [url=http&#58;//img228&#46;imageshack&#46;us/i/webexp&#46;jpg/:oobij1gm][img:oobij1gm]http&#58;//img228&#46;imageshack&#46;us/img228/7755/webexp&#46;jpg[/img:oobij1gm][/url:oobij1gm]
Activex appearance and keys vs iexplore
Hi Everybody, I use fwh\samples\webexp and found two problems: 1. the appearance is different (style get border) vs iexplore 2. in webexp has not effect CTRL-V, SHIFT-INS, DEL keys (inside get), on iexplore is ok. Anybody has this problem?, see images Thanks in advance. [url=http&#58;//img228&#46;imageshack&#46;us/i/webexp&#46;jpg/:3oe9g5hl][img:3oe9g5hl]http&#58;//img228&#46;imageshack&#46;us/img228/7755/webexp&#46;jpg[/img:3oe9g5hl][/url:3oe9g5hl]
Activex appearance and keys vs iexplore
Did you try adding the manifest file to the EXE's sample? EMG
Activex appearance and keys vs iexplore
Hi Enrico, the sample webexp.prg has not use rc. How i add the manifest ?
Activex appearance and keys vs iexplore
Just create a file with the manifest data, name it "nameofyourexe.manifest" and put it in the same folder of your exe. EMG
Activex appearance and keys vs iexplore
Enrico, thank for your reply but dont solve the problem. Could you please test it using FWH 10.8 ? thanks (fwh\samples\webexp.prg)
Activex appearance and keys vs iexplore
I just tried webexp.prg. It looks fine for me. Can you provide a sample showing the problem? EMG
Activex appearance and keys vs iexplore
H-i Enrico, the sample is the original "fwh\samples\webexp.prg", only change is "hotmail.com" Fwh 10.8 xharbour1.2.1 bcc582 [code=fw:23in6xr7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><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, oActiveX<br />   <span style="color: #00C800;">local</span> cEvents := <span style="color: #ff0000;">""</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FiveWin ActiveX Support"</span><br /><br />   oActiveX = TActiveX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"Shell.Explorer"</span> <span style="color: #000000;">&#41;</span><br /><br />   oWnd:<span style="color: #000000;">oClient</span> = oActiveX <span style="color: #B900B9;">// To fill the entire window surface</span><br /><br />   <span style="color: #B900B9;">// oActiveX&#058;GoHome()</span><br />   oActiveX&#<span style="color: #000000;">058</span>;Navigate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://www.hotmail.com"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// oActiveX&#058;StatusBar = .t.</span><br />   <span style="color: #B900B9;">// MsgInfo( oActiveX&#058;StatusBar )</span><br /><br />   oActiveX&#<span style="color: #000000;">058</span>;bOnEvent = <span style="color: #000000;">&#123;</span> | event, aParams, pParams | cEvents += EventInfo<span style="color: #000000;">&#40;</span> event, aParams, pParams, oActiveX <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />      <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> MemoEdit<span style="color: #000000;">&#40;</span> cEvents <span style="color: #000000;">&#41;</span>, .t. <span style="color: #000000;">&#41;</span><br />      <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> EventInfo<span style="color: #000000;">&#40;</span> event, aParams, pParams, oActiveX <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> cMsg := <span style="color: #ff0000;">"Event: "</span> + cValToChar<span style="color: #000000;">&#40;</span> event <span style="color: #000000;">&#41;</span> + CRLF<br />   <span style="color: #00C800;">local</span> n<br />   <br />   cMsg += <span style="color: #ff0000;">"Params: "</span> + CRLF<br />   <br />   <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aParams <span style="color: #000000;">&#41;</span><br />      cMsg += cValToChar<span style="color: #000000;">&#40;</span> aParams<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + CRLF<br />   <span style="color: #00C800;">next</span><br />   <br />   <span style="color: #00C800;">if</span> event == <span style="color: #ff0000;">"BeforeNavigate2"</span><br />      <span style="color: #B900B9;">// MsgInfo( aParams[ 2 ] )</span><br />      <span style="color: #B900B9;">// SetEventParam( pParams, 7, .t. ) // Comment this to allow navigation</span><br />   <span style="color: #00C800;">endif</span>   <br /><br /><span style="color: #00C800;">return</span> cMsg + CRLF<br /> </div>[/code:23in6xr7] buildx.bat: [code=fw:23in6xr7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ECHO OFF<br />CLS<br />ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<br />ECHO ³ FiveWin <span style="color: #00C800;">for</span> xHarbour <span style="color: #000000;">10.8</span> - Aug. <span style="color: #000000;">2010</span>           xHarbour development <span style="color: #0000ff;">power</span> ³Ü<br />ECHO ³ <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> FiveTech, <span style="color: #000000;">1993</span><span style="color: #000000;">-2010</span>     <span style="color: #00C800;">for</span> Microsoft Windows 9X/NT/200X/ME/XP/Vista/<span style="color: #000000;">7</span> ³Û<br />ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ<br />ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß<br /><br /><span style="color: #00C800;">if</span> A%<span style="color: #000000;">1</span> == A GOTO :<span style="color: #000000;">SINTAX</span><br /><span style="color: #00C800;">if</span> NOT EXIST %<span style="color: #000000;">1</span>.prg GOTO :<span style="color: #000000;">NOEXIST</span><br /><br />ECHO Compiling...<br /><br />set GT=gtgui<br />set hdir=c:\xharbour121<br />set hdirl=c:\xharbour121\lib<br />set bcdir=c:\bcc582<br />set fwh=c:\fwh10<br /><br />%hdir%\bin\harbour %<span style="color: #000000;">1</span> /n /i%fwh%\include;%hdir%\include /w /p %<span style="color: #000000;">2</span> %<span style="color: #000000;">3</span> > comp.log<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO COMPILEERRORS<br />@type comp.log<br /><br />echo -O2 -e%<span style="color: #000000;">1</span>.exe -I%hdir%\include -I%bcdir%\include %<span style="color: #000000;">1</span>.c > b32.bc<br />%bcdir%\bin\bcc32 -M -c -v @b32.bc<br />:<span style="color: #000000;">ENDCOMPILE</span><br /><br /><span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.rc %bcdir%\bin\brc32 -r -I%bcdir%\include %<span style="color: #000000;">1</span><br /><br />echo %bcdir%\lib\c0w32.obj + > b32.bc<br />echo %<span style="color: #000000;">1</span>.obj, + >> b32.bc<br />echo %<span style="color: #000000;">1</span>.exe, + >> b32.bc<br />echo %<span style="color: #000000;">1</span>.map, + >> b32.bc<br />echo %fwh%\lib\Fivehx.lib %fwh%\lib\FiveHC.lib + >> b32.bc<br />echo %hdirl%\rtl.lib + >> b32.bc<br />echo %hdirl%\vm.lib + >> b32.bc<br />echo %hdirl%\%GT%.lib + >> b32.bc<br />echo %hdirl%\lang.lib + >> b32.bc<br />echo %hdirl%\macro.lib + >> b32.bc<br />echo %hdirl%\rdd.lib + >> b32.bc<br />echo %hdirl%\dbfntx.lib + >> b32.bc<br />echo %hdirl%\dbfcdx.lib + >> b32.bc<br />echo %hdirl%\dbffpt.lib + >> b32.bc<br />echo %hdirl%\hbsix.lib + >> b32.bc<br />echo %hdirl%\debug.lib + >> b32.bc<br />echo %hdirl%\common.lib + >> b32.bc<br />echo %hdirl%\pp.lib + >> b32.bc<br />echo %hdirl%\pcrepos.lib + >> b32.bc<br />echo %hdirl%\ct.lib + >> b32.bc<br />echo %hdirl%\zlib.lib + >> b32.bc<br />echo %hdirl%\hbzip.lib + >> b32.bc<br /><br />rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br />rem echo %hdir%\lib\rddads.lib + >> b32.bc<br />rem echo %hdir%\lib\Ace32.lib + >> b32.bc<br /><br />echo %bcdir%\lib\cw32.lib + >> b32.bc<br />echo %bcdir%\lib\import32.lib + >> b32.bc<br />echo %bcdir%\lib\uuid.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\iphlpapi.lib, >> b32.bc<br /><br /><span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.res echo %<span style="color: #000000;">1</span>.res >> b32.bc<br /><br />rem uncomment this line <span style="color: #0000ff;">to</span> use the debugger and comment the following one<br /><span style="color: #00C800;">if</span> %GT% == gtwin %bcdir%\bin\ilink32 -Gn -Tpe -s -v @b32.bc<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br /><span style="color: #00C800;">if</span> %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br />ECHO * Application successfully built *<br />%<span style="color: #000000;">1</span><br />GOTO EXIT<br />ECHO<br /><br />rem delete temporary files<br />@del %<span style="color: #000000;">1</span>.c<br /><br />:<span style="color: #000000;">COMPILEERRORS</span><br />@type comp.log<br />ECHO * Compile errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">LINKERROR</span><br />ECHO * Linking errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">SINTAX</span><br />ECHO    SYNTAX: <span style="color: #000000;">Build</span> <span style="color: #000000;">&#91;</span>Program<span style="color: #000000;">&#93;</span>     <span style="color: #000000;">&#123;</span>-- No especifiques la extensi¢n PRG<br />ECHO                                <span style="color: #000000;">&#123;</span>-- Don<span style="color: #ff0000;">'t specify .PRG extension<br />GOTO EXIT<br /><br />:NOEXIST<br />ECHO The specified PRG %1 does not exist<br /><br />:EXIT<br /><br /></span></div>[/code:23in6xr7]
Activex appearance and keys vs iexplore
You're right, it doesn't work. I don't know why, sorry. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
Activex problema ejemplo webexp en version 10.8 SOLUCIONADO
Saludos al Foro, recién estoy instalando la actualización 10.8 y revisando algunos ejemplos y encuentro que webexp.prg no funciona, no abre el navegador ni muestra ningún mensaje, en mi anterior versión 8.09 si funcionaba y otros ejemplos de la 10.8 también funcionan. Podría alguien verificar este ejemplo en la versión 10.8 para descartar algún error en la configuración del buildx.bat, gracias anticipadas.
Activex problema ejemplo webexp en version 10.8 SOLUCIONADO
Hola yo ya compile usando buildx.bat el ejemplo WEBEXP.PRG y funciona super bien con la 10.8 Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Activex problema ejemplo webexp en version 10.8 SOLUCIONADO
Alvaro, Acabamos de probar en FWH\samples: buildh.bat webexp y se construye y funciona correctamente: [img:23cphxdc]http&#58;//img714&#46;imageshack&#46;us/img714/9664/captureave&#46;jpg[/img:23cphxdc]
Activex problema ejemplo webexp en version 10.8 SOLUCIONADO
Aida y Antonio, muchas gracias por responder, yo uso borland 5.5.1 y veo que antonio usa 5.82, será esto?, podrian por favor verificar mi build.bat para ver si falta alguna libreria?, Gracias nuevamente ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ECHO ³ FiveWin for xHarbour 10.8 - Aug. 2010 xHarbour development power ³Ü ECHO ³ (c) FiveTech, 1993-2010 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7 ³Û ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß if A%1 == A GOTO :SINTAX if NOT EXIST %1.prg GOTO :NOEXIST ECHO Compiling... set FWDIR=c:\fwh10 set XHDIR=c:\xharbour121 rem if "%2" == "/b" set GT=gtwin rem if not "%2" == "/b" set GT=gtgui set GT=gtgui set hdir=%XHDIR% set hdirl=%hdir%\lib set bcdir=c:\bcc55 rem set bcdir=c:\bcc582 set fwh=%FWDIR% %hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log IF ERRORLEVEL 1 GOTO COMPILEERRORS @type comp.log echo -O2 -e%1.exe -I%hdir%\include -I%bcdir%\include %1.c > b32.bc %bcdir%\bin\bcc32 -M -c -v @b32.bc :ENDCOMPILE IF EXIST %1.rc %bcdir%\bin\brc32 -r -I%bcdir%\include %1 echo %bcdir%\lib\c0w32.obj + > b32.bc echo %1.obj, + >> b32.bc echo %1.exe, + >> b32.bc echo %1.map, + >> b32.bc echo %fwh%\lib\Fivehx.lib %fwh%\lib\FiveHC.lib + >> b32.bc echo %hdirl%\rtl.lib + >> b32.bc echo %hdirl%\vm.lib + >> b32.bc echo %hdirl%\%GT%.lib + >> b32.bc echo %hdirl%\lang.lib + >> b32.bc echo %hdirl%\macro.lib + >> b32.bc echo %hdirl%\rdd.lib + >> b32.bc echo %hdirl%\dbfntx.lib + >> b32.bc echo %hdirl%\dbfcdx.lib + >> b32.bc echo %hdirl%\dbffpt.lib + >> b32.bc echo %hdirl%\hbsix.lib + >> b32.bc echo %hdirl%\debug.lib + >> b32.bc echo %hdirl%\common.lib + >> b32.bc echo %hdirl%\pp.lib + >> b32.bc echo %hdirl%\pcrepos.lib + >> b32.bc echo %hdirl%\ct.lib + >> b32.bc echo %hdirl%\zlib.lib + >> b32.bc echo %hdirl%\hbzip.lib + >> b32.bc rem Uncomment these two lines to use Advantage RDD rem echo %hdir%\lib\rddads.lib + >> b32.bc rem echo %hdir%\lib\Ace32.lib + >> b32.bc echo %bcdir%\lib\cw32.lib + >> b32.bc echo %bcdir%\lib\import32.lib + >> b32.bc echo %bcdir%\lib\uuid.lib + >> b32.bc echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc echo %bcdir%\lib\psdk\iphlpapi.lib, >> b32.bc IF EXIST %1.res echo %1.res >> b32.bc rem uncomment this line to use the debugger and comment the following one if %GT% == gtwin %bcdir%\bin\ilink32 -Gn -Tpe -s -v @b32.bc IF ERRORLEVEL 1 GOTO LINKERROR if %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc IF ERRORLEVEL 1 GOTO LINKERROR ECHO * Application successfully built * %1 GOTO EXIT ECHO rem delete temporary files @del %1.c :COMPILEERRORS @type comp.log ECHO * Compile errors * GOTO EXIT :LINKERROR ECHO * Linking errors * GOTO EXIT :SINTAX ECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n PRG ECHO {-- Don't specify .PRG extension GOTO EXIT :NOEXIST ECHO The specified PRG %1 does not exist :EXIT 
Activex problema ejemplo webexp en version 10.8 SOLUCIONADO
Alvaro, FWH 10.8 está construido con Borland BCC 5.82 y no debe usarse con el 5.5 Puedes descargarlo desde: <!-- m --><a class="postlink" href="http://www.fivetechsoft.com/files/software/bcc582.zip">http://www.fivetechsoft.com/files/software/bcc582.zip</a><!-- m -->
Activex problema ejemplo webexp en version 10.8 SOLUCIONADO
Gracias Antonio, ese era el problema, la version de Borland.
Activex problema ejemplo webexp en version 10.8 SOLUCIONADO
Alvaro, Bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->