topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
para Daniel clase TTitle | Hola Daniel,
En samples\invoices.prg nos gustaría tener los titles totalmente planos, como el nuevo Look 2013 de Office.
He estado probando a poner oTitle:nShadowIntensity = 0 pero nada.
Una manita por favor!!!.
Muy agradecida. |
para Daniel clase TTitle | Elvira,
Puedes mostrar una captura de como se ven los nuevos ? gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
para Daniel clase TTitle | Hola
usa la clausula NOSHADOW
Ej.
[code=fw:5ks7bqbj]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">015</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">TITLE</span> oTitle1 <span style="color: #0000ff;">size</span> <span style="color: #000000;">460</span>, <span style="color: #000000;">60</span> <span style="color: #0000ff;">of</span> oWnd SHADOW NOSHADOW</div>[/code:5ks7bqbj] |
para Daniel/Antonio: Ajuste Ribbon | Hola,
La Ribbon en el stylo 2013 sigue sin parecerse.
Os adjunto una captura con las diferencias, arriba está la del Word 2013:
[img:1nbjiufr]http://i44.tinypic.com/oi9o2s.png[/img:1nbjiufr]
Muchas gracias. |
para Daniel/Antonio: Ajuste Ribbon | Lucas
podrias colocar una pequeña imagen comparativa, realmente no logro entender lo que tratas de mostrar... |
para Daniel/Antonio: Ajuste Ribbon | Daniel,
Compara cómo se ve INSERTAR de la ribbon de Word 2013 y abajo la de FWH.
Por si sirve de ayuda, aquí dejo un link del ISO para probar Office 2013:
<!-- m --><a class="postlink" href="http://azcdn01.digitalrivercontent.net/office2010/X18-65214.iso">http://azcdn01.digitalrivercontent.net/ ... -65214.iso</a><!-- m -->
Muchas gracias- |
para Daniel/Antonio: Ajuste Ribbon | Lucas,
No pretendemos que sea una copia exacta. Se parece y mantiene un buen parecido <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Si quieres modificarle algo, proporcionamos su código fuente. Por si deseas tener un clon exacto. |
para Daniel/Antonio: Ajuste Ribbon | Antonio,
El tema fundamental son los colores.
Al menos, INICIO del ejemplo de FWH debería ser del mismo [u:v7x51pm6]blanco [/u:v7x51pm6]que ARCHIVO en la captura de Word 2013. El color actual de FWH no se ve bien.
Su corrección evita tener que estar parcheando permanentemente la librería <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->.
Muchas gracias. |
para Daniel/Antonio: Ajuste Ribbon | Fuera de tema:
podrían respodner esta consulta:
[url:5zckfvs0]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=27083[/url:5zckfvs0]
gracias |
para Daniel/Antonio: Ajuste Ribbon | Mario,
Te he contestado a tu mensaje, gracias |
para Daniel/Antonio: Ajuste Ribbon | Implementado el blanco intenso y un gris mas oscuro:
[img:2c0lke5f]http://img9.imageshack.us/img9/6029/5eg3.png[/img:2c0lke5f] |
para Francisco Gamboa | Por favor, estoy intentando conectar contigo. Mi dirección de correo es <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
Un saludo |
para Francisco Gamboa | tambien puedes contactar con mi messenger
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> |
para Rene Flores | Buen dia.
Me puedes dar el precio del fwh xharbour, y cual es el precio de la capacitacion???
De antemano muchas gracias. |
para Rene Flores | Gerardo,
El precio de FWH está indicado en <!-- w --><a class="postlink" href="http://www.fivetechsoft.com">www.fivetechsoft.com</a><!-- w --> sección "pedidos" |
para Viktor | hola viktor vi en un post que tienes un manual de xbrowse pero al dar click al link no funciona,
<!-- m --><a class="postlink" href="http://vikthor.com.mx/fivewin">http://vikthor.com.mx/fivewin</a><!-- m -->
habra manera de obtener el manual?
gracias.
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
un saludo |
para antonio | Buenas Tardes.
Estoy trabajando en el sistema de Ricardo Becares y nos surgio este error: en los comprobantes para cargar los articulos usamos una dbf que vamos visualizando con un browse, cuando pasamos los 40 articulos aproximadamente (registros en la tabla) nos aparece un mensaje con el siguiente error:
ENDDIALOG(0) Error no recuperable 650: Fallo en la pila del procesador
En otra oportunidad habiamos tenido problemas con la cantidad de gets que teniamos sobre una dialog y nos aconsejaron ustedes cambiar la compilacion con los siguientes parametros:
BLINKER EXECUTABLE NODELETE
BLINKER EXECUTABLE CLIPPER F255
BLINKER INCREMENTAL OFF
BLINKER PROCEDURE DEPTH 100
BLINKER CLIPPER SYMBOL ON
PACKCODE
PACKDATA
DEFBEGIN
name FiveWin
description 'Clipper for Windows library'
exetype Windows 3.1
code moveable discardable
data preload moveable
stacksize 9500
heapsize 3048
segment 'PLANKTON_TEXT' nondiscardable
segment 'EXTEND_TEXT' nondiscardable
segment 'OM_TEXT' nondiscardable
segment 'OSMEM_TEXT' nondiscardable
segment 'SORTOF_TEXT' nondiscardable
segment 'STACK_TEXT' nondiscardable
DEFEND
SEARCH d:\fw\lib\Five, d:\fw\lib\FiveC, d:\fw\lib\Objects
y demas lib
La pregunta es: El error que estamos teniendo tiene algo que ver con alguno de estos parametros, nos falta algo mas para compilar. Sino me gustaria que me tiren una pista o idea de que puede ser.
Gracias.
Leonor.
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> |
para antonio | Leonor,
> ENDDIALOG(0) Error no recuperable 650: Fallo en la pila del procesador
Puedes mostrar toda la lista de llamadas que aparecen en el fichero error.log previas a ENDDIALOG(0) ?
Normalmente el error 650 se produce por un error recursivo, de ahi que sea necesario revisar desde donde se origina el error |
para antonio | Antonio: volvemos con un viejo tema mientras estamos preparando la migracion a harbour:Siguiendo este topic, adjunto el error que sigue aun hoy ocurriendo al ejecutar el sistema, no entendemos bien si es recursivididad lo que esta ocurriendo, te pido que sigas la secuencia y nos des tu opinión:Desde ya mil gracias.TGETL:COLORS (0) Error no recuperable 650: Fallo en la pila del procesadorTGETL:COLORS 0000TGETL:HANDLEEVEN 0000SENDMESSAG 0000(b)TWINDOW 0000TDIALOGL:CTLCOLOR 0000TDIALOGL:HANDLEEVEN 0000CALLWINDOW 0000TGETL:PAINT 0000(b)TGET 0000TGETL:GOTFOCUS 0049TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TGETL:GOTFOCUS 0059TGETL:HANDLEEVEN 0000SETFOCUS 0000TDIALOGL:GONEXTCTRL 0000TDIALOGL:COMMAND 0000TDIALOGL:HANDLEEVEN 0000DIALOGBOXI 0000TDIALOGL:ACTIVATE 0000EXECFORM 2616FORM 2076(b)EXECMFORM 0000HANDLER 0977(b)EXECMFORM 0420TWBROWSE:KEYDOWN 0000TWBROWSE:KEYDOWN 0000TWBROWSE:KEYDOWN 0000TWBROWSE:HANDLEEVEN 0000DIALOGBOXI 0000TDIALOGL:ACTIVATE 0000EXECMFORM 0479MULTIFORM 0073(b)MOVIM 0000MOVIM 0710(b)ULTIMAACCI 0000ULTIMAACCI 0851(b)BARPPALICO 0715TBTNBMPL:CLICK 0000TBTNBMPL:LBUTTONUP 0000TBTNBMPL:LBUTTONDOW 0000TBTNBMPL:HANDLEEVEN 0000WINRUN 0000TWINDOW:ACTIVATE 0000SYSTEMINIT 0636INICIO 0158 |
para antonio | Ricardo,Esta secuencia es la que se repite una y otra vez hasta tirar la aplicacion:[quote:3734h49k]
TDIALOGL:GONEXTCTRL 0000
TGETL:GOTFOCUS 0059
TGETL:HANDLEEVEN 0000
SETFOCUS 0000
[/quote:3734h49k]Parece que saltais al siguiente control (GoNextCtrl()) cuando un TGetL toma el foco (GotFocus()), y vuelve a ocurrir lo mismo de nuevo, repitiendose el proceso, hasta agotar el "stack". |
para antonio archimo .make | Antonio.
Como hago en este script para que el .exe que se genere se mueva al directorio bin, por ejemplo
bin\test01.exe
[quote:2gmwur9r]PROJECT : test01.exe
test01.exe : $(OBJS)
...
...
[/quote:2gmwur9r]
Gracias. |
para antonio archimo .make | Puedes hacer:
PROJECT : bin\test01.exe
bin\test01.exe : $(OBJS)
ó llamar a copy test01.exe bin\test01.exe desde el propio make despues de enlazarlo |
para antonio archimo .make | Gracias!
Antes de preguntarte hice eso que me decias, pero al compilar me tira que no encuentra el test01.exe en bin...
voy a reintentarlo a aver que pasa.
gracias. |
para antonio archimo .make | [quote="Antonio Linares":3w4m436i]Puedes hacer:
PROJECT : bin\test01.exe
bin\test01.exe : $(OBJS)
ó llamar a copy test01.exe bin\test01.exe desde el propio make despues de enlazarlo[/quote:3w4m436i]
Estaba faltandome esto:
[quote:3w4m436i]bin\test01.exe : $(OBJS)
echo off
echo $(BCDIR)\lib\c0w32.obj + > b32.bc
echo OBJ\INGRESO.obj + >> b32.bc
echo OBJ\DEBUG.obj + >> b32.bc
echo OBJ\TERRORES.obj + >> b32.bc
echo OBJ\TLOGUEO.obj + >> b32.bc
echo OBJ\TCONEXION.obj, + >> b32.bc
echo bin\test01.exe, + >> b32.bc <------------------------------
echo bin\test01.map, + >> b32.bc <------------------------------[/quote:3w4m436i] |
para antonio linares | antonio como bajo lo que ponen en l siguiente liga:
solo aparece el nombre y la descripcion asi como su tamaño del archivo en cuestion pero no hay una liga donde hacer click para bajar el archivo..
al menos ami me parece eso..
<!-- m --><a class="postlink" href="http://hyperupload.com/download/0186065f14/prev32sp.dll.html">http://hyperupload.com/download/0186065 ... p.dll.html</a><!-- m -->
File: prev32sp.dll
File size: 60Kb
Description: Preview 32 bits en Español
me aparece asi:
sorry pero no encuentro donde bajarlos..
saludos |
para antonio linares | perdon. disculpa.. ya .. perdon..
arnulfo |
para antonio linares | bien <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
para antonio linares | antonio , en la clase printer
oPRN:SetSize (nancho, nalto), nAncho es en cm, ml pulgadas, o en que??
ya le puse numero ahi y nomas no hace lo que quiero.
necesito imprimir en fichas de deposito impresas en 3 al paso, es decir son 3 fichas en una hoja 8.5 x 11 inches.
si hago lo siguiente tampoco me respeta el tamanio
nancho := 24 //24centimeros
nalto := 9.3 //cms..
oPrn:Cmtr2Pix(@nancho, @nalto)
oPRN:SetSize (nancho, nalto)
no sale nada porque segun no cabe...
pero si incremento nancho a 43 si sale la ficha completa pero al dar el salto de pagina lo hace mas grande que la ficha..
en que medida esta esto?...
saludos
arnulfo V |
para antonio linares | Arnulfo,
Las medidas van especificadas en décimas de milímetros
<!-- m --><a class="postlink" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_8nle.asp">http://msdn.microsoft.com/library/defau ... l_8nle.asp</a><!-- m --> |
para antonio linares | Ok Gracias antonio.
saludos
Arnulfo V. |
para antonio lineares | Saludos Antonio
una pregunta en que parte del codigo de la classe toolbar debo modificar para poner un tooltip tipo ballon, lo he intentado pero no me sale, que debo modificar dentro del codigo he visto que si se puede y que ya lo implementaro, pero como
gracias |
para antonio lineares | windows.prg
search:
hWnd = CreateToolTip( Self:hWnd, cToolTip,.t. ) // , .t. ) for ballon tooltips ! |
para antonio lineares | gracias por responder
ya hice este cambio, me hace los tooltip en forma de ballon, pero no los del toolbar, estos los deja igual, que tengo que hacer para modificarlos
gracias |
para antonio lineares | Usa la claúsula BALLOON:
DEFINE TOOLBAR oToolBar OF oWnd SIZE 50, 58 ;
IMAGELIST oImageList BALLOON // tooltips balloon style |
para antonio lineares | gracias por la clarasion antonio
no existe la BALLOON en fivewin.ch que puedo hacer |
para antonio lineares | Actualizarte a una versión más reciente de FWH. |
para antonio lineares | gracias por tu sugerencia Antonio.
investigando más pude realizar este cambio, me dices que actualiza, pero tan estable esta la version nueva de fivewin, en lo particular reconozco el esfuerzo que hacen para llevarnos más alla de lo que fue clipper, me imagino las personas que se compraron fw 1.9 la evolucion que este herramienta ha venido trallendo, es como cambiar de carro cada año, o cuando sale algo nuevo, aunque que nuevo hay, detodos modos tenemos que investigar para sacar adelante esto.
Saludos A todos |
para la atención de mis amigos Cristobal y Antonio Linares | Querido Cristóbal,
Tengo que copiar algunos archivos de la tableta LENOVO MIIX320 a la computadora normal
He hablado de este problema con Antonio y Rao en un hotel en Sillian un día por la tarde cuando usted y sus amigos latinos ya se han ido porque nosotros (yo, antonio y Rao) estuvimos dos días a Sillian.
Tanto Antonio como Rao me dijeron que usara una conexión usb y copiara los archivos de la tableta a la PC de una manera sencilla
cuando enchufo el cable de la tableta al pc nada sucede que él recarga solamente la batería
Para copiar los archivos estoy usando el procedimiento copyfiles que podemos encontrar en la carpeta de ejemplo fwh.
Normalmente uso este procedimiento y funciona.
Lo uso cuando creo un año de ejercicio y lo copio en la carpeta del año para dar ejemplo. \ 2013 todos los archivos que necesito para trabajar
la aplicación que estoy creando en la tableta sirve un conductor de autobús a los billetes de autobús de carga a los clientes. cada final de la vuelta, el conductor puede imprimir el boleto.
Cuando el conductor cierra el giro automáticamente el procedimiento crea un archivo comprimido donde inserta todos los archivos
el archivo comprimido se crea en la carpeta. \ 2013 \ zip con el nombre del día y la vuelta y la placa del autobús
p.ej. 20092013_ZA105PJ_1.ZIP (DIA - AUTOBÚS DE LA PLACA - TURNO)
al final del día es posible que haya dos o tres archivos con cremallera en la tableta uno por cada turno
1 mañana 2 tarde 3 noche
al final del día el conductor lleva la tableta a la agencia por el secretario
el controlador debe conectar el cable USB y con el programa que se encuentra dentro de la computadora la agencia debe cargar los archivos en el PC desde la tableta
Pensé que usaría el mismo procedimiento (copyfiles) pero cuando da vuelta, nada sucede:
También se insertó la opción para configurar la unidad donde copiar porque a menudo no es el mismo
escriba: H: \ o G: \
y por ahora hay tres tabletas para cada autobús
En forun hubo alguien que me dijo que usara programas externos pero quiero obtener la solución con funcs / procedures dentro de la aplicación fwh porque quien trabaja en la oficina no puede hacerlo y sólo tiene que seleccionar el ítem del menú "Upload from tableta "fácilmente
¿Cómo puedo solucionar este problema? |
para la atención de mis amigos Cristobal y Antonio Linares | Más fácil:
Un botón en el tablet para subir los archivos a un .ftp y desde allí descargar al pc. |
para la atención de mis amigos Cristobal y Antonio Linares | la tableta no tiene conexión wifi o lan, pero sólo puede utilizar conexión de cable bluetooth o usb |
para la atención de mis amigos Cristobal y Antonio Linares | <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->
<!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
[quote="Silvio.Falconi":2iebg6l3]la tableta no tiene conexión wifi o lan, pero sólo puede utilizar conexión de cable bluetooth o usb[/quote:2iebg6l3] |
para la atención de mis amigos Cristobal y Antonio Linares | Silvo
There are lots of very affordable USB wireless adapters that make your tablet internet capable .. from Amazon ..
Rick Lipkin
[img:1f99xyl5]http://i68.tinypic.com/k37jpy.jpg[/img:1f99xyl5] |
para la atención de mis amigos Cristobal y Antonio Linares | Hola Silvio (caro amico) para hacerlo via usb tienes que activar el traspaso de ficheros con la tableta que me supongo que es Android, yo nunca he tenido problemas, busca en internet. Otras soluciones como te han dicho traspaso via FTP, e-mail, Wifi, bluetooth para un tio tan listo como tu no debe suponer un problema.
[url:2aenb813]https://www.androidpit.es/tutorial-pasar-archivos-android-pc[/url:2aenb813] |
para la atención de mis amigos Cristobal y Antonio Linares | Perhaps someone not understood my problem
I have the new[b:cyzriu2c] LENOVO miix 320[/b:cyzriu2c] with windows 10 pro
here the link to web site of lenovo ---> ( [url:cyzriu2c]http://www3.lenovo.com/it/it/laptops/ideapad/miix-series/Lenovo-MIIX-320-10ICR/p/88IPMX30837[/url:cyzriu2c] )
it have hdmi port , 2 usb port , one usb port type C, wifi, bluetooth and it can have also the telephon sim into
i wish create a function from fwh applicatio to transfer dbfs into my pc ( Asus pc)
[b:cyzriu2c]System[/b:cyzriu2c]
the pc asus have windows seven 64 bit home
MIIX 320 have windows 10 PRO
[b:cyzriu2c] bluetooth[/b:cyzriu2c]
I tried with the bluetooth port, I shared the folder. \ 2013 \ zip
the asus computer sees the tablet but can not enter the folder
[b:cyzriu2c]Problem [/b:cyzriu2c]
I have to transfer the archives from the tablet to the pc but I do not want to use external programs. in the office there is a secretary who does not know the PC well and wants to download the archives directly from the office program pc (asus)
[b:cyzriu2c]wifi[/b:cyzriu2c]
on the office I have a wifi but I wish not use wifi I prefer use another method |
para la atención de mis amigos Cristobal y Antonio Linares | [b:1hw6d215]I RESOLVED WITH WIFI LAN[/b:1hw6d215]
I linked my pc and tablet to[b:1hw6d215] THE SAME wifi[/b:1hw6d215] and now I see the file zip from my pc ASUS
[b:1hw6d215]THE PROBLEM [/b:1hw6d215]: there was on window share system a checkbox where I can I shared documents without user and password
[b:1hw6d215]now from my application I can see the tablet and take the file zip [/b:1hw6d215]
[size=200:1hw6d215]I AM HAPPY [/size:1hw6d215] |
para manuramos clase tgsay | Hola manu..
creo que hay un bug en tu clase.. no se refrescan los controles cuando se utiliza el metodo refresh ejemplo..
REDEFINE GSAY ::aSayGet[ 8] VAR ::aVarsTpv[ 8] ID 770 OF ::oDlgMain PICTURE '99,999,999.99' RIGHT;
FONT ::oFontTot BOX;
COLOR RGB( 0, 215, 0 ), RGB( 0, 0, 0 )
Si actualizo la variable ::aVarsTpv[8]:= "001" y despues el objeto ::aSayGet[8]:refresh(), no toma el nuevo valor..
en cambio con los gets normales de FWH funciona ok..
Saludos
GABO |
para softruz | hola softruz, cuanto vale el sistema patricia de control odontologico, gracias |
para xBrowse nMarqueeStyle look Windows 8 | Sería estupendo por favor.
Muchas gracias. |
para xBrowse nMarqueeStyle look Windows 8 | Lucas,
Como debería verse ? Puedes mostrar alguna pantalla ? gracias |
para xBrowse nMarqueeStyle look Windows 8 | Claro, encantado:
[img:ql2xq9yc]http://i42.tinypic.com/2v9aiiw.png[/img:ql2xq9yc]
Se parece mucho el marquee style nº 4, cambia un pelín el azul a más suave.
Muchas gracias. |
parameter function as structure | I want to use function LBTRSLN from ThermalServiceLibrary.dll,
def function
int LBTRSLN(
tLBTRSLN_PARAMS * aLBTRSLN_ParamsPtr
);
and
aLBTRSLN_ParamsPtr
address stucture tLBTRSLN_PARAMS
tLBTRSLN_PARAMS
typedef struct
{
BYTE Pi;
BYTE Pr;
char * Name;
tEXTERNAL_NUMERIC Quantity;
char Vat;
tEXTERNAL_NUMERIC Price;
tEXTERNAL_NUMERIC Gross;
tEXTERNAL_NUMERIC Discount;
} tLBTRSLN_PARAMS;
how may I relay parameters to this functions
best regards
kajot |
parameter function as structure | Kajot,
You may build a C function that receives an array with all the structure values and then from C you build the structure from the array and call the original function <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
parameter function as structure | [code=fw:2umgbhag]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP <br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> LBTRSLN <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> tLBTRSLN_PARAMS aLBTRSLN_Params;<br /><br /> aLBTRSLN_Params.Pi = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> aLBTRSLN_Params.Pr = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>;<br /> aLBTRSLN_Params.<span style="color: #0000ff;">Name</span> = hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>;<br /> aLBTRSLN_Params.Quantity = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span>;<br /> aLBTRSLN_Params.Vat = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">)</span>;<br /> aLBTRSLN_Params.Price = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">)</span>;<br /> aLBTRSLN_Params.Gross = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">7</span> <span style="color: #000000;">)</span>;<br /> aLBTRSLN_Params.Discount = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">8</span> <span style="color: #000000;">)</span>;<br /><br /> hb_retnl<span style="color: #000000;">(</span> LBTRSLN<span style="color: #000000;">(</span> &aLBTRSLN_Params <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:2umgbhag]
From PRG you do:
[code=fw:2umgbhag]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> LBTRSLN<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, ... <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> </div>[/code:2umgbhag]
You may need to use a define or a header file for tEXTERNAL_NUMERIC as that is not a standard Windows type. I have assumed that it is equivalent to a 32 bits number. |
parameter function as structure | thanks for it
and one question yet
how define in
DLL32 Function LBTRSLN( ??? ) As INT PASCAL LIB "ThermalStructureLibrary.dll"
best redards
kajot |
parameter function as structure | Kajot,
In this case you should not use the command DLL FUNCTION ...
Instead of it, create an import library from the DLL and link it to your EXE:
implib.exe ThermalStructureLibrary.lib ThermalStructureLibrary.dll |
parameter function as structure | I created ThermalServiceLibrary.Lib / by implib.exe/
I go during linking error
Type: C >>>xhb.exe -o"t.c" -m -n -p -q -gc0 -I"D:\xHB.112\include" -I"D:\xHB.112\include\w32" "t.prg"<<<
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6633)
Copyright 1999-2009, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Generating object output to 't.obj'...
t.prg(20): error: Undeclared identifier 'tLBTRSLN_PARAMS'.
t.prg(20): error: Syntax error; found 'aLBTRSLN_Params' expecting ';'.
t.prg(20): error: Undeclared identifier 'aLBTRSLN_Params'.
t.prg(21): error: Left operand of . has incompatible type 'int'.
t.prg(22): error: Left operand of . has incompatible type 'int'.
t.prg(23): error: Left operand of . has incompatible type 'int'.
t.prg(23): warning: Conversion from 'char *' to 'int' is undefined.
t.prg(24): error: Left operand of . has incompatible type 'int'.
t.prg(25): error: Left operand of . has incompatible type 'int'.
t.prg(26): error: Left operand of . has incompatible type 'int'.
t.prg(27): error: Left operand of . has incompatible type 'int'.
t.prg(28): error: Left operand of . has incompatible type 'int'.
t.prg(29): warning: Missing prototype for 'LBTRSLN'.
Type: C >>>Couldn't build: t.obj<<<
Type: C >>>TMAKEOBJECT<<<
Type: C >>>TMAKEOBJECT:REFRESH<<<
Type: N >>> 1423<<<
my source:
==================================
#include "wintypes.ch"
#Include "cstruct.ch"
#include "hbdll.ch"
*****************************************************************************
procedure t
setmode(25,80)
cls
LBTRSLN({ 1, 1, 1, "Mleko", "2", "A", "10.5", "21", "0", ""})
return
#pragma BEGINDUMP
HB_FUNC( LBTRSLN )
{
tLBTRSLN_PARAMS aLBTRSLN_Params;
aLBTRSLN_Params.Pi = hb_parnl( 1, 1 );
aLBTRSLN_Params.Pr = hb_parnl( 1, 2 );
aLBTRSLN_Params.Name = hb_parc( 1, 3 );
aLBTRSLN_Params.Quantity = hb_parnl( 1, 4 );
aLBTRSLN_Params.Vat = hb_parnl( 1, 5 );
aLBTRSLN_Params.Price = hb_parnl( 1, 6 );
aLBTRSLN_Params.Gross = hb_parnl( 1, 7 );
aLBTRSLN_Params.Discount = hb_parnl( 1, 8 );
hb_retnl( LBTRSLN( &aLBTRSLN_Params ) );
}
#pragma ENDDUMP
best regards
kajot |
parameter function as structure | Kajot,
Include this after #pragma BEGINDUMP
#define BYTE unsigned char
#define tEXTERNAL_NUMERIC unsigned long
typedef struct
{
BYTE Pi;
BYTE Pr;
char * Name;
tEXTERNAL_NUMERIC Quantity;
char Vat;
tEXTERNAL_NUMERIC Price;
tEXTERNAL_NUMERIC Gross;
tEXTERNAL_NUMERIC Discount;
} tLBTRSLN_PARAMS; |
parameter function as structure | sorry yet one error
Type: C >>>xhb.exe -o"t.c" -m -n -p -q -gc0 -I"D:\xHB.112\include" -I"D:\xHB.112\include\w32" "t.prg"<<<
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6633)
Copyright 1999-2009, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Generating object output to 't.obj'...
t.prg(36): warning: Missing prototype for 'LBTRSLN'.
Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:console -LIBPATH:"D:\xHB.112\lib" -LIBPATH:"D:\xHB.112\c_lib" -LIBPATH:"D:\xHB.112\c_lib\win" "t.obj" "cdll.obj" "R:\lib\WinApi.lib" "R:\lib\ThermalServiceLibrary.lib" "xhb.lib" "dbf.lib" "nsx.lib" "ntx.lib" "cdx.lib" "rmdbfcdx.lib" "ct3comm.lib" crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib msimg32.lib mpr.lib -out:"t.exe"<<<
Creating object: t.EXP
Creating library: t.LIB
xLINK: error: Unresolved external symbol '_LBTRSLN referenced from (t.obj)'.
xLINK: fatal error: 1 unresolved external(s).
Type: C >>>Couldn't build: t.exe<<<
Type: C >>>TMAKEPROJECT<<<
Type: C >>>TMAKEPROJECT:REFRESH<<<
Type: N >>> 1423<<<
my source:
#include "wintypes.ch"
#Include "cstruct.ch"
#include "hbdll.ch"
*****************************************************************************
#pragma BEGINDUMP
#define BYTE unsigned char
#define tEXTERNAL_NUMERIC unsigned long
typedef struct
{
BYTE Pi;
BYTE Pr;
char * Name;
tEXTERNAL_NUMERIC Quantity;
char Vat;
tEXTERNAL_NUMERIC Price;
tEXTERNAL_NUMERIC Gross;
tEXTERNAL_NUMERIC Discount;
} tLBTRSLN_PARAMS;
HB_FUNC( LBTRSLN )
{
tLBTRSLN_PARAMS aLBTRSLN_Params;
aLBTRSLN_Params.Pi = hb_parnl( 1, 1 );
aLBTRSLN_Params.Pr = hb_parnl( 1, 2 );
aLBTRSLN_Params.Name = hb_parc( 1, 3 );
aLBTRSLN_Params.Quantity = hb_parnl( 1, 4 );
aLBTRSLN_Params.Vat = hb_parnl( 1, 5 );
aLBTRSLN_Params.Price = hb_parnl( 1, 6 );
aLBTRSLN_Params.Gross = hb_parnl( 1, 7 );
aLBTRSLN_Params.Discount = hb_parnl( 1, 8 );
hb_retnl( LBTRSLN( &aLBTRSLN_Params ) );
}
#pragma ENDDUMP
procedure t
setmode(25,80)
cls
// OpenPort("Com4")
// 'nag?ówek
// LBTRSHDR({0, 0, "Ala ma kota", "", ""})
// '2 linie z towarami
LBTRSLN({ 1, 1, 1, "Mleko", "2", "A", "10.5", "21", "0", ""})
// LBTRSLN({ 1, 1, 1, "Chleb", "10", "A", "1.49", "14.9", "0", ""})
// 'podsumowanie
// LBTRXEND1({ 1, 1, 1, "0", "35.9", "40", "4.1", "", ""})
// ClosePort()
return |
parameter function as structure | Kajot,
Please add
#include <hbapi.h>
after:
#pragma BEGINDUMP |
parameter in function working in (x)harbour | hi, i have an old code, using @ in parameters in functions, like:
test(x, y, @z)
this works fine in 16bits, but in (x)harbour generate an error, how to skirt this situation?
this @ is used to change vars in functions called.
thanks |
parameter in function working in (x)harbour | This has always been working for me in xharbour and i am extensively using it. |
parameter in function working in (x)harbour | [quote="norberto":1wpdsykm]this works fine in 16bits, but in (x)harbour generate an error, how to skirt this situation?[/quote:1wpdsykm]
I confirm it is working for me in xHarbour.
Regards |
parameter in function working in (x)harbour | Norberto,
What error do you get ? |
parameters to build (x)harbour and fwh from cvs updated | Hi to all, someone has an updated .mak to build fwh from cvs? and
parameters, i use this :
SET CFLAGS = -tWM -a8 -O2 -OS -5 -6 -D__HARBOUR__ -D__WIN32__ -DHB_FM_STATISTICS_OFF -DHB_NO_PROFILER
-DHB_COMPAT_C53 -DHB_GUI -DHB_WIN32_IO -DHB_NO_TRACE -DHB_API_MACROS -DHB_INCLUDE_WINEXCHANDLER
-DADS_REQUIRE_VERSION=5
this is all need ???
thanks |
parameters to build (x)harbour and fwh from cvs updated | To build Harbour from CVS we do:
buildb32.bat:
SET CFLAGS=-D__EXPORT__ -DHB_GUI -tWM -DHB_FM_STATISTICS_OFF -DHB_INCLUDE_WINEXCHANDLER -d -a8 -OS -O2 -5 -6
make_b32.bat |
parameters to build (x)harbour and fwh from cvs updated | Antonio, thanks, fwh is the same ok? |
parameters to build (x)harbour and fwh from cvs updated | bcc32 -c -D__HARBOUR__ -D__FLAT__ -TP ... |
parameters to build (x)harbour and fwh from cvs updated | Antonio, thanks, only to confirme and to another users too:
(x)harbour :
-D__EXPORT__ -DHB_GUI -tWM -DHB_FM_STATISTICS_OFF -DHB_INCLUDE_WINEXCHANDLER -d -a8 -OS -O2 -5 -6 -DADS_REQUIRE_VERSION=5 <<< this last is for me too, i use ads 5
FWH
-c -D__HARBOUR__ -D__FLAT__ -TP -D__EXPORT__ -DHB_GUI -tWM -DHB_FM_STATISTICS_OFF -DHB_INCLUDE_WINEXCHANDLER -d -a8 -OS -O2 -5 -6 -DADS_REQUIRE_VERSION=5 <<< read above
And to build my application i use above too??? or is not need?
thanks again |
parameters to build (x)harbour and fwh from cvs updated | Antonio, only more this, to xharbour and harbour, the parameters is the same????
thanks |
parameters to build (x)harbour and fwh from cvs updated | yes |
parameters to build (x)harbour and fwh from cvs updated | Antonio, thanks, and to harbour i use:
-n -m -w -es2 -gc0
this is correct? missing something??
thanks for your support... this is very handefull to me , and i guess to another users too. |
parameters to build (x)harbour and fwh from cvs updated | /L /N /W is enough |
parametrs in dll | How may I call out function _OWERSJA form WINIP.dll where p1,p2 there are names of files (p1 - file in, p2 - file out) p1:="OWERSJA.IN" p2:="OWERSJA.OUT" err:=_OWersja(p1,p2) declare DLL_TYPE_BYTE _OWersja(DLL_TYPE_LPTSTR cFile1, DLL_TYPE_LPTSTR cFile2) in winip.dll |
parametrs in dll | Try this:DLL FUNCTION _OWERSJA( cFile1 AS LPSTR, cFile2 AS LPSTR ) AS LONG PASCAL LIB "winip.dll" |
parametrs in dll | in Cunsigned char __declspec(dllimport) _cdecl _OWersja(char* in, char* out);my source:#include "FiveWin.ch"//---------------------------------------------------------------------------//function Main() p1:="OWERSJA.IN" p2:="OWERSJA.OUT" err:=_OWersja( p1, p2 ) msginfo(err)return nil //---------------------------------------------------------------------------//DLL FUNCTION _OWERSJA( cFile1 AS LPSTR, cFile2 AS LPSTR ) AS BYTE PASCAL LIB "WinIP.dll"/ |
parse error at '@' ? | Hola, foro:Tras mucho tiempo alejado de esto, he retomado el tema de pasar una aplicación de 16 bits hecha con Fivewin a otra de 32 bits utilizando Fivewin Harbour, pero, de entrada, me salen una serie de errores que no acabo de entender.Por ejemplo: al compilar el código (utilizo Verce 4.3), me sale el siguiente error:E:\WINCAP(CODIGO32)\creandx.prg(965) Error E0030 Syntax error: "parse error at '@'"E:\WINCAP(CODIGO32)\creandx.prg(975) Error E0030 Syntax error: "parse error at '@'"Las líneas en cuestión son las siguientes:@70,10 SAY " Seleccionar impresora" of oDlg SIZE 80,10 FONT oFont1 ACTION printersetup()@90,10 SAY "Entradas" of oDLG SIZE 50,10 PIXEL FONT oFont1 action finentradas(Pathdata)¿Dónde está el fallo si con Fivewin 2.0 no me daba error?He buscado en el foro, pero no aparece nada ( además, la página de búsqueda caduca enseguida)FWH/FWHX 2.7 March/2006, Verce 4.3 |
parse error at '@' ? | 1) Verifica si tienes el siguiente texto:#include "fivewin.ch" |
parse error at '@' ? | Armando, gracias por contestar.Y sí, sí que tiene #include FiveWin.ch" |
parse error at '@' ? | En la respuesta a Armando, me he comido las comillas. Quería decir#include "FiveWin.ch" |
parse error at '@' ? | Comprueba si el error está en las líneas inmediatamente anterior (la 964 y 974 respectivamente). Tal vez has dejado un punto y coma (;) al final. |
parse error at '@' ? | Hola, Manuel:No hay nada. He copiao el código de la función en un prg aparte, ya que el prg principal es muy extenso, y lo he vuelto a compilarlo. Los errores que da son los siguientes:E:\WINCAP(CODIGO32)\menucrw.prg(31) Error E0030 Syntax error: "parse error at '@'"E:\WINCAP(CODIGO32)\menucrw.prg(33) Error E0030 Syntax error: "parse error at '@'"E:\WINCAP(CODIGO32)\menucrw.prg(36) Error E0030 Syntax error: "parse error at '@'"El código completo del prg es el siguiente:#include "FiveWin.ch"#include "Report.ch"#include "btnget.ch"#include "ssay.ch"//-------------------------------------------------FUNCTION MenuCrw()local oBmplocal oFont1, oFont2 LOCAL oDlg, oBtn LOCAL lSalir := .F. LOCAL oDlg44, cserver, PathData local cTitle := OemToAnsi("Justificantes de cuentas")* wInstalado := "\WINCAP\TEMP\" PathData := "\WINCAP\TEMP\" DEFINE BITMAP oBmp FILE "\wincap\bitmaps\just.bmp" DEFINE FONT oFont1 NAME "Arial" SIZE 0, -13 DEFINE FONT oFont2 NAME "Arial" SIZE 0, -16 DEFINE dialog odlg FROM 1, 1 TO 300, 500 PIXEL ; COLOR CLR_WHITE, CLR_WHITE ; TITLE cTitle oDlg:nStyle:=nAnd(oDlg:nStyle, nNOt(WS_SYSMENU))@70,10 SAY " Seleccionar impresora" of oDlg SIZE 80,10 FONT oFont1 ACTION printersetup()@90,10 SAY "Entradas" of oDLG SIZE 50,10 PIXEL FONT oFont1 action finentradas(Pathdata)@110, 10 SAY Chr(149 )+OemToAnsi("Salidas") SIZE 50,10 PIXEL OF oDlg; FONT oFont1 action finsalidas(Pathdata) @ 120, 100 BUTTON OBTn PROMPT "Salir" SIZE 40,10 PIXEL OF oDlg; FONT oFont1 ACTION (lsalir:=.t., oDlg:End()) ACTIVATE DIALOG oDlg centered; valid lsalir; ON PAINT ( oDlg:SayBitmap( 1, 1, ObMP) )if lsalir RELEASE BITMAP oBmp RELEASE FONT oFont1, oFont2dbCloseAll()sysrefresh()endifRETURN( .T. )function finentradas(pathdata)local obtn1, obtn2, oFontlocal odlg, ofin, dfindfin:=ctod(space(8))DEFINE FONT oFont NAME "Arial" SIZE 0, -10DEFINE DIALOG oDlg TITLE "Justificantes de cuentas. Fecha cierre"; FROM 5, 5 TO 15, 40 font oFont @7, 10 SAY OemToAnsi("Seleccione fecha de cierre")+CRLF+; oEmToAnsi("para emisi¢n de justicantes:") OF oDlg PIXEL @30, 40 GET ofin VAR dfin OF oDlg SIZE 40, 10 ; VALID ! empty(dfin) pixel @53, 20 BTNBMP oBtn1 FILENAME "\WINCAP\BITMAPS\Btnok.bmp"; OF oDlg SIZE 30, 15; action (lista(Pathdata, dfin), odlg:end() ) @53, 70 BTNBMP oBtn2 FILENAME "\WINCAP\BITMAPS\Btncanc.bmp"; OF oDlg SIZE 30, 15 ACTION oDlg:End()ACTIVATE DIALOG OdLG CENTEREDobtn1:end()obtn2:end()oFont:end()return nil//-------Justificantes de salidas.function finsalidas(pathdata)local obtn1, obtn2, oFontlocal odlg, ofin, dfindfin:=ctod(space(8))DEFINE FONT oFont NAME "Arial" SIZE 0, -10DEFINE DIALOG oDlg TITLE "Justificantes de cuentas. Fecha cierre"; FROM 5, 5 TO 15, 40 font oFont @7, 10 SAY OemToAnsi("Seleccione fecha de cierre")+CRLF+; oEmToAnsi("para emisi¢n de justicantes:") OF oDlg PIXEL @30, 40 GET ofin VAR dfin OF oDlg SIZE 40, 10 ; VALID ! empty(dfin) pixel @53, 20 BTNBMP oBtn1 FILENAME "\WINCAP\BITMAPS\Btnok.bmp"; OF oDlg SIZE 30, 15; action (listb(Pathdata, dfin), odlg:end() ) @53, 70 BTNBMP oBtn2 FILENAME "\WINCAP\BITMAPS\Btncanc.bmp"; OF oDlg SIZE 30, 15 ACTION oDlg:End()ACTIVATE DIALOG OdLG CENTEREDobtn1:end()obtn2:end()oFont:end()return nilFUNCTION LISTa(PathData, dfin)LOCAL nCont, oDbf, nsum, i, ntotal, creg, oreg*local odlg, ofin, dfinlocal name:="TEMPENT.DBF"local cdx:="TEMPENT.cdx"local rutadbf, rutacdxrutadbf:=pathdata+"\"+namerutacdx:=pathdata+"\"+cdxMsgRun( "Por favor, espere.... Generando justificantes de entrada...")USE \WINCAP\data\ENTRADA NEW DATABASE ODBFCOPY TO (rutadbf)USE (RUTAdbf) NEWindex on tempent->articulo to (rutacdx)Use (rutadbf) NEW While !(rutadbf)->(Eof()) nSum = recno() (rutadbf)->(DbSkip(1)) EndDo MsgRun("") DbCloseall()Use \WINCAP\TEMP\CONTROL NEWZAPAPPEND BLANKREPLACE CONTROL->FECHAJUSTI WITH DFINShellexecute(GetActiveWindow(), 'Open',"\WINCAP\TEMP\justenva.EXE",,,1)DBcloseall()sYSREFRESH()RETURN NILFUNCTION LISTb(PathData, dfin)LOCAL nCont, oDbf, nsum, i, ntotal, creg, oreglocal name:="TEMPSAL.DBF"local cdx:="TEMPSAL.cdx"local rutadbf, rutacdxrutadbf:=pathdata+"\"+namerutacdx:=pathdata+"\"+cdxMsgRun( "Por favor, espere.... Generando justificantes de salida...")USE \WINCAP\data\SALIDA NEW DATABASE ODBFCOPY TO (rutadbf)USE (RUTAdbf) NEWindex on tempsal->articulo to (rutacdx)Use (rutadbf) NEW While !(rutadbf)->(Eof()) nSum = recno() (rutadbf)->(DbSkip(1)) EndDoDbCloseall() MsgRun("") Use \WINCAP\TEMP\CONTROL NEWZAPAPPEND BLANKREPLACE CONTROL->FECHAJUSTI WITH DFINShellexecute(GetActiveWindow(), 'Open',"\WINCAP\TEMP\justsava.exe",,,1)DBcloseall()sYSREFRESH()RETURN NILFunction MsgRun( cCaption, cTitle, bAction )*------------------------------------------- Msg_Run( cCaption, cTitle, bAction ) // Evans' function (see below) Return NILFunction Msg_Run( cCaption )*--------------------------- STATIC isOn := .F. STATIC oDlgWt, nWidth, oFont14 if empty(cCaption) if !empty(oDlgWt) isOn := .T. endif * msginfo('cCaption is empty. Must close the box') endif if isOn * msginfo('Closing the MSG_RUN') oDlgWt:End() oFont14:End() isOn := .F. sysrefresh() Return NIL endif DEFAULT cCaption := "Please, wait..." ***oFont14 := TFont():New( "Courier New", 8, -12 ) // was 8, 10 DEFINE FONT oFont14 NAME "Arial" SIZE 8,-12 cCaption := Alltrim(cCaption) DEFINE DIALOG oDlgWt ; FROM 0,0 TO 3, Len( cCaption ) + 4 ; STYLE nOr( DS_MODALFRAME, WS_POPUP ) ; FONT oFont14 COLOR CLR_YELLOW, CLR_BLUE // You can use your favorite colors here! oDlgWt:cMsg := cCaption nWidth := (oDlgWt:nRight - oDlgWt:nLeft) ACTIVATE DIALOG oDlgWt CENTERED NOWAIT ; ON INIT (isOn := .T.) ; ON PAINT oDlgWt:Say( 1, 2.0, ( oDlgWt:cMsg ) ) syswait(.1) Return nil |
parse error at '@' ? | [quote="Ramón J.":fd23jwyt]@70,10 SAY " Seleccionar impresora" of oDlg SIZE 80,10 FONT oFont1 ACTION printersetup()
[/quote:fd23jwyt]La fila 70 es "demasiado". ¿No le faltará la claúsula PIXEL? |
parse error at '@' ? | Ramón,Los SAYs nunca han soportado la claúsula ACTION ...Quítales el ACTION ... y verás como tu código compila bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->Por ejemplo:@70,10 SAY " Seleccionar impresora" of oDlg SIZE 80,10 FONT oFont1 |
parse error at '@' ? | Gracias, Antonio. Tenías razón. Antes, el código en FW 2.0 era el siguiente:@ 70, 10 SENSITIVE SAY Chr(149)+OemToAnsi (" Seleccionar impresora") SIZE 80,10 PIXEL OF oDlg; FONT oFont1 COLOR CLR_BLUE COLOROVER CLR_RED; TRANSPARENT; ACTION printersetup()Y, como verás, funcionaba porque utilizaba la clase Ssay de Ramón Avendaño, creo recordar. Realmente las dos únicas clases que he utilizado en toda la programación en FW 20 han sido ésa de Avendaño y la de Btnget, de Ricardo Ramirez, clases de las que estoy teniendo problemas no para conseguirlas, sino para hacerlas funcionar. Por eso, al ver que no funcionaban con FWH he ído quitando las claúsulas que daban error, pero no he caido en la cuenta que la SAY nunca ha tenido propiedad ACTION. Gracias |
parse error at '@' ? | Ramon...Solo para complementar.. puedes usar SAY de FHW y hacer "algo" cuando le das click al mismo.[code:jgcckyuw]
REDEFINE SAY oSay PROMPT "Entidade" ID 1001 OF oDlg ;
COLOR RGB(230,139,44)
oSay:WantClick = .t.
oSay:bLClicked = { || ""} // aqui el bloque de codigo
oSay:oCursor = oHand //y aqui pones un cursor definido antes que l puntero del rato se vea mas bonito :)
[/code:jgcckyuw]
Saludos[/code] |
parse error at '@' ? | Gracias, Ricardo, también funciona.Por cierto, no sé si procede hacerlo aquí o abrir una nuevo tema, pero estoy ahora probando la clase Btnget, que, si no me equivoco, es tuya y estoy encontrando bastantes dificultades en hacela funcionar. Me he bajado el archivo:<!-- m --><a class="postlink" href="http://www.box.net/shared/lck9effuyn#2:6315754">http://www.box.net/shared/lck9effuyn#2:6315754</a><!-- m -->Pero he observado que es para xHarbour y además incopora librerías de las que no dispongo, ya que al compilarlo con Verce 4.3 me reporta el error:Fatal: Unable to open file 'C5CALEN.LIB'¿No hay otro ejemplo que funcione sin necesidad de tener esas librerías?Uso FWH/FWHX 2.7 March/2006 y Verce 4.3 |
parse error at '@' ? | Creo que he metido la pata preguntando sobre una cosa que requería abrir un nueva consulta en el foro, ya que no tiene nada que ver con el que he abierto este tema y que ya está solucionado.En fin, lo hecho hecho está. |
parámetros de compilación y enlazado MSVC 2019 | Hola:
Para aquellos que lo usáis, ¿qué parámetros estáis usando?
Gracias. |
parámetros de compilación y enlazado MSVC 2019 | A ver si te sirve
[img:2kbtik7l]https://i.postimg.cc/4dTp7g6t/FE-VSC2019.png[/img:2kbtik7l] |
pasando de xharbour a harbour (SOLUCIONADO) | Estimados, ya tengo mi aplicacion en un 90% listo funcionando en harbour <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
pero los modulos que utilizan la clase tsbrowse sale error en el programa, al parecer el la funcion en c tsdrawsel
si alguien me pudiera enviar la clase tsbrowse9 para harbour
[quote:2l9w5kvb]Harbour Build Info
---------------------------
Version: Harbour 3.2.0dev (r1307082134)
Compiler: Borland C++ 5.8.2 (32-bit)
Platform: Windows 7 6.1.7601 Service Pack 1
PCode version: 0.3
ChangeLog last entry: 2013-07-08 23:34 UTC+0200 Prz
czta.onet.pl)
ChangeLog ID: 61aabc50cda41ba5c64d55b6452fd45345baf
Built on: Jul 16 2013 16:00:54
Build options: (Clipper 5.3b) (Clipper 5.x undoc)
[/quote:2l9w5kvb]
[code=fw:2l9w5kvb]<div class="fw" id="{CB}" style="font-family: monospace;">Error irrecuperable <span style="color: #000000;">6005</span>: <span style="color: #000000;">Exception</span> error:<br /><br /> Exception Code:<span style="color: #000000;">C0000005</span><br /> Exception Address:0043BDDB<br /> EAX:0000001B EBX:<span style="color: #000000;">00000000</span> ECX:0000001A EDX:003501DC<br /> ESI:<span style="color: #000000;">00000000</span> EDI:0012E550 EBP:<span style="color: #000000;">00000001</span><br /> CS:<span style="color: #000000;">EIP</span>:001B:0043BDDB SS:<span style="color: #000000;">ESP</span>:<span style="color: #000000;">0023</span>:0012E498<br /> DS:<span style="color: #000000;">0023</span> ES:<span style="color: #000000;">0023</span> FS:003B GS:<span style="color: #000000;">0000</span><br /> Flags:<span style="color: #000000;">00210202</span><br /> CS:<span style="color: #000000;">EIP</span>: <span style="color: #000000;">F6</span> <span style="color: #000000;">00</span> <span style="color: #000000;">80</span> <span style="color: #000000;">74</span> <span style="color: #000000;">11</span> 6A 1B E8 4D D5 <span style="color: #000000;">05</span> <span style="color: #000000;">00</span> <span style="color: #000000;">59</span> <span style="color: #000000;">83</span> F8 <span style="color: #000000;">01</span><br /> SS:<span style="color: #000000;">ESP</span>: 001A063C <span style="color: #000000;">00000006</span> <span style="color: #000000;">00000000</span> 0000002A <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 470A131E 0000000F <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000002</span> 0000001D 0000000F<br /><br /> C stack:<br /> EIP: EBP: Frame: <span style="color: #000000;">OldEBP</span>, RetAddr, Params...<br /><br />Modules:<br />0x00400000 0x0067F000 C:\unidad_d\apl\PRGS\OCARANZALS\dbf\wcta.exe<br />0x77680000 0x0013C000 C:\Windows\SYSTEM32\ntdll.dll<br />0x76C50000 0x000D4000 C:\Windows\system32\kernel32.dll<br />0x759A0000 0x0004B000 C:\Windows\system32\KERNELBASE.dll<br />0x12170000 0x00163000 C:\unidad_d\apl\PRGS\OCARANZALS\dbf\ACE32.DLL<br />0x74B50000 0x00009000 C:\Windows\system32\VERSION.dll<br />0x75B50000 0x000AC000 C:\Windows\system32\msvcrt.dll<br />0x6FB50000 0x00012000 C:\Windows\system32\MPR.dll<br />0x718F0000 0x00007000 C:\Windows\system32\WSOCK32.dll<br />0x772D0000 0x00035000 C:\Windows\system32\WS2_32.dll<br />0x77170000 0x000A2000 C:\Windows\system32\RPCRT4.dll<br />0x777C0000 0x00006000 C:\Windows\system32\NSI.dll<br />0x777E0000 0x000C9000 C:\Windows\system32\USER32.dll<br />0x77630000 0x0004E000 C:\Windows\system32\GDI32.dll<br />0x77220000 0x0000A000 C:\Windows\system32\LPK.dll<br />0x75A60000 0x0009D000 C:\Windows\system32\USP10.dll<br />0x75C00000 0x000A0000 C:\Windows\system32\ADVAPI32.dll<br />0x75FD0000 0x00019000 C:\Windows\SYSTEM32\sechost.dll<br />0x6FAE0000 0x00051000 C:\Windows\system32\WINSPOOL.DRV<br />0x745B0000 0x0019E000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6<span style="color: #000000;">.0</span><span style="color: #000000;">.7601</span>.17514_none_41e6975e2bd6f2b2\COMCTL32.DLL<br />0x76F50000 0x00057000 C:\Windows\system32\SHLWAPI.dll<br />0x77250000 0x0007B000 C:\Windows\system32\COMDLG32.DLL<br />0x75FF0000 0x00C4A000 C:\Windows\system32\SHELL32.dll<br />0x74450000 0x00005000 C:\Windows\system32\MSIMG32.DLL<br />0x74410000 0x00032000 C:\Windows\system32\WINMM.DLL<br />0x75CA0000 0x0015C000 C:\Windows\system32\OLE32.DLL<br />0x77310000 0x0008F000 C:\Windows\system32\OLEAUT32.DLL<br />0x66D30000 0x0001C000 C:\Windows\system32\OLEDLG.DLL<br />0x77230000 0x0001F000 C:\Windows\system32\IMM32.DLL<br />0x773A0000 0x000CC000 C:\Windows\system32\MSCTF.dll<br />0x74F90000 0x00044000 C:\Windows\system32\DNSAPI.dll<br />0x731C0000 0x0001C000 C:\Windows\system32\IPHLPAPI.DLL<br />0x731B0000 0x00007000 C:\Windows\system32\WINNSI.DLL<br />0x6F340000 0x00006000 C:\Windows\system32\rasadhlp.dll<br />0x74360000 0x00040000 C:\Windows\system32\uxtheme.dll<br />0x73F70000 0x00013000 C:\Windows\system32\dwmapi.dll<br />0x75620000 0x0000C000 C:\Windows\system32\CRYPTBASE.dll<br />0x75580000 0x0001B000 C:\Windows\system32\SspiCli.dll<br />0x1E940000 0x001B4000 C:\unidad_d\apl\PRGS\OCARANZALS\dbf\adsloc32.dll<br />0x10000000 0x00104000 C:\unidad_d\apl\PRGS\OCARANZALS\dbf\freeimage.dll<br /><br />Called <span style="color: #0000ff;">from</span> TSDRAWCELL<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> TSBROWSE:<span style="color: #000000;">DRAWHEADERS</span><span style="color: #000000;">(</span><span style="color: #000000;">2492</span><span style="color: #000000;">)</span> in ..\Source\Classes\TSBrowse.prg<br />Called <span style="color: #0000ff;">from</span> <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>TSBROWSE<span style="color: #000000;">(</span><span style="color: #000000;">328</span><span style="color: #000000;">)</span> in ..\Source\Classes\TSBrowse.prg<br />Called <span style="color: #0000ff;">from</span> TSBROWSE:<span style="color: #000000;">DRAWFOOTERS</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span> in ..\Source\Classes\TSBrowse.prg<br /> </div>[/code:2l9w5kvb] |
pasando de xharbour a harbour (SOLUCIONADO) | Patricio,
Que código hay en Called from TSDRAWCELL(0) ? |
pasando de xharbour a harbour (SOLUCIONADO) | Hola Antonio gracias por responder
lo he solucionado gracias Juan(jcaro) que me envio la ultima clase, pero solo un percanse al compilar
la funcion en C
esta instruccion
[quote:1vxdrbbk]HB_FUNC( CHANGESYSCOLORS ) // ( PARAMS ) ( nItems, aItems, aColors )
{
int iEle, iItems = hb_parni( 1 ) ;
int aiElemen[ 28 ] ;
COLORREF alColors[ 28 ] ;
for( iEle = 0 ; iEle <= ( iItems - 1 ) ; iEle++ )
{
aiElemen[ iEle ] = hb_parni( 2, ( iEle + 1 ) ) ;
alColors[ iEle ] = hb_parnl( 3, ( iEle + 1 ) ) ;
}
SetSysColors( iItems, aiElemen, alColors ) ;
}
[/quote:1vxdrbbk]
Aparece este error
[quote:1vxdrbbk]
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
..\source\function\TSBFUNCS.C:
Error E2227 ..\source\function\TSBFUNCS.C 317: Extra parameter in call to hb_parni in function HB_FUN_CHANGESYSCOLORS
Error E2227 ..\source\function\TSBFUNCS.C 318: Extra parameter in call to hb_parnl in function HB_FUN_CHANGESYSCOLORS
*** 2 errors in Compile ***
[/quote:1vxdrbbk]
al parecer segun entiendo que tiene un parametro adicional si que se lo ha sacado y funciona, pero no se en que puede afectar
[quote:1vxdrbbk] aiElemen[ iEle ] = hb_parni( 2 ); // ( iEle + 1 ) ) ;
alColors[ iEle ] = hb_parnl( 3 );// ( iEle + 1 ) ) ;[/quote:1vxdrbbk] |
pasando de xharbour a harbour (SOLUCIONADO) | Patricio,
Cambia esas líneas asi:
aiElemen[ iEle ] = hb_parvni( 2, ( iEle + 1 ) ) ;
alColors[ iEle ] = hb_parvnl( 3, ( iEle + 1 ) ) ;
No puedes quitar el segundo parámetro ó no hará lo mismo. En Harbour es preciso llamar a esas funciones cuando hay que suministrarles un segundo parámetro. La "v" precisamente viene de parámetros "v"ariables <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
pasando de xharbour a harbour (SOLUCIONADO) | gracias antonio
ahora compila sin ningun error |
pasar a el próximo GET usando FGET.PRG | Si hago asi,
[code=fw:1yqm99ur]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> FORMAT <span style="color: #0000ff;">GET</span> oFGet1 <span style="color: #0000ff;">VAR</span> cText1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, CLR_YELLOW ;<br /> <span style="color: #0000ff;">FONT</span> oFont<br /> </div>[/code:1yqm99ur]
No puedo pasar a el próximo GET con <Enter>, como salir de este enredo?
No puedo utilizar el TAB.
Gracias.
Abrazos. |
pasar a el próximo GET usando FGET.PRG | Hola: Ya que no puedes usar la tecla Tab para salir (con enter estas dentro de la edicion y no te va a funcionar),
quizas con un boton "Salir de Edición" y hagas un oGetELQUESEA:SetFocus().
La tecla tab es lo mas natural para salir del fget, pero si no lo puedes usar habra que buscar algo...
Saludos
Ruben Fernandez |
pasar a el próximo GET usando FGET.PRG | Gracias Ruben.
Y usando GET MULTILINE con WHEN( .F. ), como hago para que el mismo ajuste?
Best regards, Saludos. |
pasar codigo de RPG a Harbour se podra? | Hola alguien sabe que tan complicado sera pasar un programa en RPG a Harbour con
Fivewin <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> |
pasar codigo de RPG a Harbour se podra? | Aida,
Es muy extenso el código a portar ?
Puedes copiarlo aqui ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
pasar codigo de RPG a Harbour se podra? | Hola
Están por darme el código es un programa muy grande y confidencial de una empresa que fabrica X producto tiene desde inventarios cuentas por pagar, estadísticas etc por lo que me dicen es un programa muy grande a un no lo veo funcionando, corre en maquinitas antiguas con win 98 con un emulador, el código esta en RPG baby me comentan que funciona muy bien pero ya quieren otra plataforma sobre todo para acceso remoto por Internet.
quiero quedar bien y a si le cierro la boca al del Delphi <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.