FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Windows 7 64bits y fhw32
Posts: 652
Joined: Wed Oct 19, 2005 12:03 PM
Windows 7 64bits y fhw32
Posted: Fri Dec 12, 2014 09:02 AM

Hola compañeros cambiamos una pc y el sistema operativo es de Win7 64 bits, y el programa de fwh es de 32bits, funciona bastante bien salvo que no puedo hacer los preview ya que me pide la prev64.dll la cual está en el mismo directorio del ejecutable, ¿por que no me lo reconoce?
Ademas en algunos puntos del programa por unos segundos el mismo queda como "no responde" y luego retoma el curso del mismo sin inconvenientes.

Me podrían indicar si hay alguna solución.

Luis

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Windows 7 64bits y fhw32
Posted: Fri Dec 12, 2014 11:46 AM

Pregunta:

RPREVIEW.PRG és de la misma versión del Fivewin que usas?

saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Windows 7 64bits y fhw32
Posted: Fri Dec 12, 2014 01:59 PM
busca en el foro unos post relativo a esto, ya hace un buen tiempo se reviso el error en tpreview la cual equivocadamente llamaba a prev64.dll
http://forums.fivetechsupport.com/viewtopic.php?f=16&t=23183&p=124403&hilit=prev64.dll#p124403
http://forums.fivetechsupport.com/viewtopic.php?p=123942#p123942
Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 652
Joined: Wed Oct 19, 2005 12:03 PM
Re: Windows 7 64bits y fhw32
Posted: Fri Dec 12, 2014 02:32 PM
Carlos al agregar

Code (fw): Select all Collapse
if ! IsWin64()
      if ! File( "prev32.dll" )
         MsgAlert( "prev32.dll not found", "Error" )
         SetResources( ::hOldRes )
         return nil
      else   
         SET RESOURCES to "prev32.dll"
      endif   
   else   
      if ! File( "prev64.dll" )
         MsgAlert( "prev64.dll not found", "Error" )
         SetResources( ::hOldRes )
         return nil
      else   
         SET RESOURCES to "prev64.dll"
      endif   
   endif


Me pisa e inutiliza mis recursos y me muestra solamente la pantalla principal con el menú pero sin botones que defino en la barra y luego da error al llamar algo del menú que necesita mis recursos

Yo compilo con una archivo res.

Luis
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Windows 7 64bits y fhw32
Posted: Fri Dec 12, 2014 02:57 PM
Code (fw): Select all Collapse
function RPreview( oDevice )

     local aFiles := oDevice:aMeta
     local hOldRes := GetResources()
     local oSay
     local nFor
     local oWndMain := WndMain(), oIcon, oCursor, oMenu, oBrush, oFont
     local l97Look  := oWndMain != nil .and. oWndMain:oBar != nil .and. ;
                       Len( oWndMain:oBar:aControls ) > 0 .and. ;
                       oWndMain:oBar:aControls[ 1 ]:l97Look
     local lExit := .F.
     local oHand, cPageNum, oImageList, oReBar

     #ifdef __CLIPPER__
        cResFile := "Preview.dll"
     #else
        if ! IsWin64()
           cResFile := "Prev32.dll"
        else
           cResFile = "Prev64.dll"
        endif      
     #endif

     if SetResources(cResFile) < 32
          MsgStop(cResFile + " not found, imposible to continue",;
                  "FiveWin Printing Error")
          RETU nil
     endif
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 652
Joined: Wed Oct 19, 2005 12:03 PM
Re: Windows 7 64bits y fhw32
Posted: Fri Dec 12, 2014 03:56 PM

Gracias Kharina, pero lamentablemente me sigue diciendo que no encuentra el archivo prev64.dll. El archivo lo tengo alojado en el mismo lugar que en el ejecutable. Hice una llamada en dónde se invoca a iswin64() y me la muestra.

Porque no me lee el prev64.dll

Gracias

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Windows 7 64bits y fhw32
Posted: Sat Dec 13, 2014 08:29 AM

Luis,

FWH ya no necesita la DLL prevxx.dll :-)

Que versión de FWH usas ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 652
Joined: Wed Oct 19, 2005 12:03 PM
Re: Windows 7 64bits y fhw32
Posted: Sat Dec 13, 2014 11:11 AM

Antonio la versión es la 13.12

Luis

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Windows 7 64bits y fhw32
Posted: Sat Dec 13, 2014 12:17 PM

Luis,

El eliminar el uso de prev...DLL se implementó en FWH 13.07

Prueba a no tenerla en donde tienes el EXE, te debería funcionar :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 652
Joined: Wed Oct 19, 2005 12:03 PM
Re: Windows 7 64bits y fhw32
Posted: Tue Dec 16, 2014 11:35 PM

Antonio desactive un rpreview que estaba usando y deje el nativo de Fwh y ahora funciona.

Gracias por tu ayuda

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Windows 7 64bits y fhw32
Posted: Wed Dec 17, 2014 05:48 AM

muy bien :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion