FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour DLL & FUNCTION LEPESO.DLL NO FIVEWIN
Posts: 28
Joined: Sun Jan 08, 2012 06:17 PM
DLL & FUNCTION LEPESO.DLL NO FIVEWIN
Posted: Mon Jan 05, 2015 04:25 PM
Amigos, Feliz A帽o Nuevo. Todo ayuda como para resolver un problema en la declaraci贸n de LePeso.dll de Urano DLL.
Declaraci贸n:
Code (fw): Select all Collapse
dll function AbrePortaUrano(Porta AS STRING) 聽 聽聽 聽 聽 聽AS LONG PASCAL 聽FROM "_AbrePortaSerial" 聽 聽 聽 聽 LIB "lepeso.dll"
dll function FechaPortaUrano() 聽聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽AS LONG pascal 聽FROM "_FechaPortaSerial" 聽 聽聽 聽 LIB "lepeso.dll"
dll function LePeso() 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽AS STRING pascal 聽 聽FROM "_LePeso" 聽聽 聽 聽 聽 LIB "lepeso.dll"
dll function ModeloBalancaUrano(Modelo as _INT) 聽 聽 AS LONG pascal 聽FROM "_AlteraModeloBalanca" 聽 聽 LIB "lepeso.dll"
dll function ModoOperacaoUrano(Modo as _INT) 聽 聽聽 聽 AS LONG pascal 聽FROM "_AlteraModoOperacao" 聽LIB "lepeso.dll"


Funci贸n:

Code (fw): Select all Collapse
function testefuncurano()
priv aaa:=3
priv Porta:='COM1'

aaa:=abreportaurano(Porta)
? aaa
return .t.


Cuando ejecuto la aplicaci贸n se bloquea (Crash). No devolver el valor de 'AAA'
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: DLL & FUNCTION LEPESO.DLL NO FIVEWIN
Posted: Mon Jan 05, 2015 05:17 PM
Jo茫o Santos - S茫o Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 28
Joined: Sun Jan 08, 2012 06:17 PM
Re: DLL & FUNCTION LEPESO.DLL NO FIVEWIN
Posted: Mon Jan 05, 2015 09:12 PM
karinha wrote:http://fivewin.com.br/index.php?/topic/19905-lendo-peso-balanca-urano-em-c-for-xharbour/?hl=urano

http://fivewin.com.br/index.php?/topic/21933-leitura-mf-urano/?hl=urano



Essa funcoes s茫o em C para Xharbour. N茫o Sei como Manipula-las, preciso montar de um jeito que eu possa usar meu configurador para mudar sem dispor direto no codigo. Eu queria Na Verdade Entender porque nas declara莽oes diretas da DLL em Fivewin n茫o esta funcionando.

En espa帽ol:

Estas funciones est谩n en C para xHarbour. No s茅 c贸mo se las maneja, debe montar de manera que puedo usar mi configurador a cambios sin eliminaci贸n directa en c贸digo. Quer铆a Sobre verdad Entender por qu茅 las declaraciones directas de la DLL en Fivewin este no funciona.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: DLL & FUNCTION LEPESO.DLL NO FIVEWIN
Posted: Mon Jan 05, 2015 10:37 PM

Nixbeau,

Prueba a quitar la cla煤sula PASCAL y prueba nuevamente, gracias

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 28
Joined: Sun Jan 08, 2012 06:17 PM
Re: DLL & FUNCTION LEPESO.DLL NO FIVEWIN
Posted: Sun Jan 11, 2015 09:13 PM
Antonio Linares wrote:Nixbeau,

Prueba a quitar la cla煤sula PASCAL y prueba nuevamente, gracias


Eso Es Perfecto !!! Funcion贸 !!! Debido a la eliminaci贸n de la cl谩usula de Pascua comenz贸 a funcionar?
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: DLL & FUNCTION LEPESO.DLL NO FIVEWIN
Posted: Mon Jan 12, 2015 05:09 PM

Muy bien :-)

Las funciones declaradas como Pascal no usan un subrayado delante (el compilador las genera en may煤sculas y sin subrayado), asi que al ver los subrayados deduje que no eran PASCAL :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion