topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Pues no, no es una cadena "wide" porque este código tambien falla:
[code=fw:21cpn7a0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> LPSTR WideToAnsi<span style="color: #000000;">(</span> LPWSTR cWide <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> WORD wLen;<br /> LPSTR cString = <span style="color: #00C800;">NULL</span>;<br /><br /> wLen = WideCharToMultiByte<span style="color: #000000;">(</span> CP_ACP, <span style="color: #000000;">0</span>, cWide, <span style="color: #000000;">-1</span>, cString, <span style="color: #000000;">0</span>, <span style="color: #00C800;">NULL</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span>;<br /><br /> cString = <span style="color: #000000;">(</span> LPSTR <span style="color: #000000;">)</span> hb_xgrab<span style="color: #000000;">(</span> wLen <span style="color: #000000;">)</span>;<br /> WideCharToMultiByte<span style="color: #000000;">(</span> CP_ACP, <span style="color: #000000;">0</span>, cWide, <span style="color: #000000;">-1</span>, cString, wLen, <span style="color: #00C800;">NULL</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">return</span> cString;<br /><span style="color: #000000;">}</span><br /> <br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> MISTEXT <span style="color: #000000;">)</span> <span style="color: #B900B9;">// pItemStruct --> cPrompt</span><br /><span style="color: #000000;">{</span><br /> #ifdef _WIN64<br /> LPDRAWITEMSTRUCT lpdis = <span style="color: #000000;">(</span> LPDRAWITEMSTRUCT <span style="color: #000000;">)</span> hb_parnll<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>; <br /> #else<br /> LPDRAWITEMSTRUCT lpdis = <span style="color: #000000;">(</span> LPDRAWITEMSTRUCT <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>; <br /> #endif<br /> LPSTR pText;<br /> <br /> MENUITEMINFO mi;<br /> BYTE buffer<span style="color: #000000;">[</span> <span style="color: #000000;">100</span> <span style="color: #000000;">]</span>;<br /><br /> memset<span style="color: #000000;">(</span> &mi, <span style="color: #000000;">0</span>, sizeof<span style="color: #000000;">(</span> mi <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <br /> mi.cbSize = sizeof<span style="color: #000000;">(</span> MENUITEMINFO <span style="color: #000000;">)</span>;<br /> mi.fMask = MIIM_STRING;<br /> mi.dwTypeData = <span style="color: #000000;">(</span> LPSTR <span style="color: #000000;">)</span> buffer; <br /> GetMenuItemInfo<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> HMENU <span style="color: #000000;">)</span> lpdis->hwndItem, lpdis->itemID, <span style="color: #00C800;">FALSE</span>, &mi <span style="color: #000000;">)</span>;<br /> <br /> pText = WideToAnsi<span style="color: #000000;">(</span> buffer <span style="color: #000000;">)</span>;<br /> hb_retc<span style="color: #000000;">(</span> pText <span style="color: #000000;">)</span>;<br /> hb_xfree<span style="color: #000000;">(</span> pText <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span></div>[/code:21cpn7a0]
que puede ser ?
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
GetMenuItemInfo() devuelve un valor lógico, verdadero si todo ha ido bien.
Lo primero que se me ha ocurrido es que la estructura MENUITEMINFO mi; no este "limpia", asi que he añadido estas líneas:
[code=fw:adxvb1ik]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> MISTEXT <span style="color: #000000;">)</span> <span style="color: #B900B9;">// pItemStruct --> cPrompt</span><br /><span style="color: #000000;">{</span><br /> #ifdef _WIN64<br /> LPDRAWITEMSTRUCT lpdis = <span style="color: #000000;">(</span> LPDRAWITEMSTRUCT <span style="color: #000000;">)</span> hb_parnll<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>; <br /> #else<br /> LPDRAWITEMSTRUCT lpdis = <span style="color: #000000;">(</span> LPDRAWITEMSTRUCT <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>; <br /> #endif<br /> <br /> MENUITEMINFO mi;<br /> BYTE buffer<span style="color: #000000;">[</span> <span style="color: #000000;">100</span> <span style="color: #000000;">]</span>;<br /><br /> memset<span style="color: #000000;">(</span> &mi, <span style="color: #000000;">0</span>, sizeof<span style="color: #000000;">(</span> mi <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <br /> mi.cbSize = sizeof<span style="color: #000000;">(</span> MENUITEMINFO <span style="color: #000000;">)</span>;<br /> mi.fMask = MIIM_STRING;<br /> mi.dwTypeData = <span style="color: #000000;">(</span> LPSTR <span style="color: #000000;">)</span> buffer; <br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> ! GetMenuItemInfo<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> HMENU <span style="color: #000000;">)</span> lpdis->hwndItem, lpdis->itemID, <span style="color: #00C800;">FALSE</span>, &mi <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> strcpy<span style="color: #000000;">(</span> buffer, <span style="color: #ff0000;">"here"</span> <span style="color: #000000;">)</span>; <br /> <br /> hb_retc<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> char * <span style="color: #000000;">)</span> buffer <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span> </div>[/code:adxvb1ik]
Pero aún asi sigue fallando y el caso es que no se añade "here" al texto del menuitem, luego GetMenuItemInfo() está devolviendo verdadero.
Y si devuelve verdadero, por qué lo que copia en buffer esta mal ?
sigo...
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Se me ocurre que tal vez este copiando una cadena "wide" y no "ansi"...
sigo... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Pruebo a concatenarle algo al final para ver que hay en buffer, y muestra un solo caracter "raro" + "here":
[code=fw:1phtmpnq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> MISTEXT <span style="color: #000000;">)</span> <span style="color: #B900B9;">// pItemStruct --> cPrompt</span><br /><span style="color: #000000;">{</span><br /> #ifdef _WIN64<br /> LPDRAWITEMSTRUCT lpdis = <span style="color: #000000;">(</span> LPDRAWITEMSTRUCT <span style="color: #000000;">)</span> hb_parnll<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>; <br /> #else<br /> LPDRAWITEMSTRUCT lpdis = <span style="color: #000000;">(</span> LPDRAWITEMSTRUCT <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>; <br /> #endif<br /> LPSTR pText;<br /> <br /> MENUITEMINFO mi;<br /> BYTE buffer<span style="color: #000000;">[</span> <span style="color: #000000;">100</span> <span style="color: #000000;">]</span>;<br /><br /> memset<span style="color: #000000;">(</span> &mi, <span style="color: #000000;">0</span>, sizeof<span style="color: #000000;">(</span> mi <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <br /> mi.cbSize = sizeof<span style="color: #000000;">(</span> MENUITEMINFO <span style="color: #000000;">)</span>;<br /> mi.fMask = MIIM_STRING;<br /> mi.dwTypeData = <span style="color: #000000;">(</span> LPSTR <span style="color: #000000;">)</span> buffer; <br /> GetMenuItemInfo<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> HMENU <span style="color: #000000;">)</span> lpdis->hwndItem, lpdis->itemID, <span style="color: #00C800;">FALSE</span>, &mi <span style="color: #000000;">)</span>;<br /> <br /> strcat<span style="color: #000000;">(</span> buffer, <span style="color: #ff0000;">"here"</span> <span style="color: #000000;">)</span>;<br /> <br /> hb_retc<span style="color: #000000;">(</span> buffer <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span> </div>[/code:1phtmpnq]
No puedo creer que GetMenuItemInfo() falle, porque además devuelve verdadero...
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Ahora he probado ese código con Borland y falla tambien...
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Revisando la estructura MENUITEMINFO:
[url:3ut7k1qx]http://msdn.microsoft.com/en-us/library/windows/desktop/ms647578(v=vs.85).aspx[/url:3ut7k1qx]
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Creo que aqui está la clave:
[quote:y68ba58c]dwTypeData
Type: LPTSTR
The contents of the menu item. The meaning of this member depends on the value of fType and is used only if the MIIM_TYPE flag is set in the fMask member.
To retrieve a menu item of type MFT_STRING, first find the size of the string by setting the dwTypeData member of MENUITEMINFO to NULL and then calling GetMenuItemInfo. The value of cch+1 is the size needed. Then allocate a buffer of this size, place the pointer to the buffer in dwTypeData, increment cch, and call GetMenuItemInfo once again to fill the buffer with the string. If the retrieved menu item is of some other type, then GetMenuItemInfo sets the dwTypeData member to a value whose type is specified by the fType member.
When using with the SetMenuItemInfo function, this member should contain a value whose type is specified by the fType member.
dwTypeData is used only if the MIIM_STRING flag is set in the fMask member[/quote:y68ba58c]
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Solucionado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Este es el código correcto. Un bug menos <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
[code=fw:qdpf8u89]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> MISTEXT <span style="color: #000000;">)</span> <span style="color: #B900B9;">// pItemStruct --> cPrompt</span><br /><span style="color: #000000;">{</span><br /> #ifdef _WIN64<br /> LPDRAWITEMSTRUCT lpdis = <span style="color: #000000;">(</span> LPDRAWITEMSTRUCT <span style="color: #000000;">)</span> hb_parnll<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>; <br /> #else<br /> LPDRAWITEMSTRUCT lpdis = <span style="color: #000000;">(</span> LPDRAWITEMSTRUCT <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>; <br /> #endif<br /> <br /> MENUITEMINFO mi;<br /> BYTE buffer<span style="color: #000000;">[</span> <span style="color: #000000;">100</span> <span style="color: #000000;">]</span>;<br /><br /> memset<span style="color: #000000;">(</span> &mi, <span style="color: #000000;">0</span>, sizeof<span style="color: #000000;">(</span> mi <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <br /> mi.cbSize = sizeof<span style="color: #000000;">(</span> MENUITEMINFO <span style="color: #000000;">)</span>;<br /> mi.fMask = MIIM_STRING;<br /><br /> mi.dwTypeData = <span style="color: #00C800;">NULL</span>; <br /> GetMenuItemInfo<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> HMENU <span style="color: #000000;">)</span> lpdis->hwndItem, lpdis->itemID, <span style="color: #00C800;">FALSE</span>, &mi <span style="color: #000000;">)</span>;<br /><br /> mi.dwTypeData = <span style="color: #000000;">(</span> LPSTR <span style="color: #000000;">)</span> buffer; <br /> mi.cch++;<br /> GetMenuItemInfo<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> HMENU <span style="color: #000000;">)</span> lpdis->hwndItem, lpdis->itemID, <span style="color: #00C800;">FALSE</span>, &mi <span style="color: #000000;">)</span>;<br /> <br /> hb_retc<span style="color: #000000;">(</span> buffer <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span> </div>[/code:qdpf8u89]
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Fernando,
Se me quedó un MessageBox() usado de traza en el código.
Te la vuelvo a enviar, gracias!
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Fernando,
te envio la librería modificada por email para que la pruebes <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
gracias!
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio,
Muchisimas, pero que muchisimas, gracias por tu tiempo.
Con la librería que me has enviado funciona bien, aunque al linkar aparece el mensaje:
[code=fw:2k6iwig9]<div class="fw" id="{CB}" style="font-family: monospace;">LINK : <span style="color: #000000;">warning</span> LNK4098: <span style="color: #000000;">la</span> biblioteca predeterminada<span style="color: #ff0000;">'MSVCRT'</span> entra en conflicto con otras bibliotecas; use la biblioteca /NODEFAULTLIB:<span style="color: #000000;">biblioteca</span><br /> </div>[/code:2k6iwig9]
El sistema se genera correctamente.
He probado a usar la librería anterior, incluyendo el código de la función MISTEXT que indicas. También funciona bien, aunque he tenido cambiar la línea porque sino no me compilaba
[code=fw:2k6iwig9]<div class="fw" id="{CB}" style="font-family: monospace;">BYTE buffer<span style="color: #000000;">[</span> <span style="color: #000000;">100</span> <span style="color: #000000;">]</span>;</div>[/code:2k6iwig9]
por
[code=fw:2k6iwig9]<div class="fw" id="{CB}" style="font-family: monospace;">CHAR buffer<span style="color: #000000;">[</span> <span style="color: #000000;">100</span> <span style="color: #000000;">]</span>;</div>[/code:2k6iwig9]
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Fernando,
Añade este flag al enlazador: /NODEFAULTLIB:MSVCRT
Tu cambio está bien aunque sería más correcto "unsigned char" que es lo que en realidad es BYTE.
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio,
Muchas gracias,
Mis conocimientos de C se quedan bastante cortos.
El motivo de cambiarlo a CHAR es porque al compilar muestra un error de que hb_retc(---) no puede convertir el valor
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Fernando,
si, tienes razón, en ese caso mejor CHAR <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio,
¿Tienes previsto publicar una nueva build de la librería?.
Gracias.
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Lucas,
Esperaremos unos dias más, por si apareciese algún otro bug, y no hay inconveniente en publicar una versión revisada <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
No podemos publicar un build nuevo por cada bug que aparezca, porque esto sería un trabajo enorme y además en el software [b:3hfevl10]siempre[/b:3hfevl10] hay bugs. Esto pasa en todos los proyectos. Es algo con lo que tenemos que estar mentalizados.
Recuerdo, no hace mucho, que se solucionó un bug en el kernel de Linux que había estado ahi años! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio,
Muchas gracias, el problema que este bug y el del Preview hacen que el programa no sea usable.
Es decir, no son bugs ocultos, sino bugs que afectan a la propia usabilidad de la aplicación.
Mel de whosaway en xHarbour tiene montado un sistema de scripts para compilar xHarbour diariamente bajo diversos compiladores (5 o 6 al menos) y subirlo a su sitio web. Quizás él te pueda dar más detalles de su script, aunque supongo que consistirá incluso en un .prg que llama a un bat para compilar los fuentes y generar la librería, comprimirla en un .zip y subirla por fin por FTP a Internet.
Quiero aprovechar la oferta de FWH64 a ver si me sale un trabajo particular.
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Lucas,
Publicaremos un nuevo build cuando lo estimemos conveniente (lo antes posible), no es sólo mi decisión, sino la de todo el equipo que ayuda en el desarrollo de FWH.
Mientras tanto si algún usuario de la versión 14.06 quiere librerías actualizadas solo tiene que contactarme por email y le atenderé con mucho gusto como siempre hacemos. Por ejemplo hace unos dias se le envió a Fernando Diez la librería modificada con el bug que reportó, el mismo día que lo hizo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
FiveTech es una empresa "chiquita" pero como suelo decir "en nuestra debilidad está nuestra fuerza". Mira la de años que llevamos existiendo. Hemos dejado en el camino a Visual FoxPro, Visual dBase, Visual Basic, etc. y nosotros seguimos adelante. Recuerdo no hace mucho un email que recibí de USA en el que sinceramente nos felicitaban admirados por la enorme vida que ha conseguido FWH (que otra librería de Clipper sigue adelante despues de todos estos años ?). Para hacer muchas cosas de las que nos pedis tendriamos que ser una empresa más grande pero eso nos debilitaría, porque recordemos que en el panorama global del software, todos nosotros solo somos un pequeño nicho de mercado. Pero un nicho invencible (hasta la fecha) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio,
Entendido. Por favor me avisas cuando esté listo y cómo acogerme y proceder con la compra de FWH64 bits.
Gracias.
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Lucas,
Puedes adquirir FWH 64 desde <!-- w --><a class="postlink" href="http://www.fivetechsoft.com">www.fivetechsoft.com</a><!-- w --> sección pedidos, gracias.
La oferta promocional ya terminó y aún asi la extendimos bastante para que todo el que quisiera se beneficiase de la oferta.
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio,
¿Ya no está disponible?. La semana pasada se la mantuviste a un usuario.
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Lucas,
Ya extendimos el periodo de oferta bastante, pero no podemos mantener dicha oferta de por vida <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Las ofertas duran un tiempo solamente. De hecho si te fijas, esa conversación ya esta cerrada en estos foros.
Hay que estar atentos y saber aprovecharlas <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
[quote="Antonio Linares":22ft5jcr]Lucas,
Publicaremos un nuevo build cuando lo estimemos conveniente (lo antes posible), no es sólo mi decisión, sino la de todo el equipo que ayuda en el desarrollo de FWH.
Mientras tanto si algún usuario de la versión 14.06 quiere librerías actualizadas solo tiene que contactarme por email y le atenderé con mucho gusto como siempre hacemos. Por ejemplo hace unos dias se le envió a Fernando Diez la librería modificada con el bug que reportó, el mismo día que lo hizo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
FiveTech es una empresa "chiquita" pero como suelo decir "en nuestra debilidad está nuestra fuerza". Mira la de años que llevamos existiendo. Hemos dejado en el camino a Visual FoxPro, Visual dBase, Visual Basic, etc. y nosotros seguimos adelante. Recuerdo no hace mucho un email que recibí de USA en el que sinceramente nos felicitaban admirados por la enorme vida que ha conseguido FWH (que otra librería de Clipper sigue adelante despues de todos estos años ?). Para hacer muchas cosas de las que nos pedis tendriamos que ser una empresa más grande pero eso nos debilitaría, porque recordemos que en el panorama global del software, todos nosotros solo somos un pequeño nicho de mercado. Pero un nicho invencible (hasta la fecha) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:22ft5jcr]
otra antonio que se quedo fue "cabo" y buenas noches a todos
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Totalmente de acuerdo (CAVO: CA-Visual Objects). Pero, menudo regalazo no hizo CA con los errores que cometieron <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Ahora "Clipper" es "nuestro", y no pagamos ni un céntimo por él <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Determinados errores cometidos por "grandes empresas" han sido piezas fundamentales de FiveWin:
Hace muchos años, cayó en mis manos una versión alfa de Visual dbase ("Cayenne"). Me la regaló un empleado de Borland en Madrid. Aun la conservo, y en ella había ideas estupendas que estan hoy en dia en FiveWin <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Luego Borland fué bastante estúpido y tiro a la basura esa versión y se fué al modelo IDE (igual que Visual FoxPro, etc) desperdiciando auténticas joyas de ideas que existían en esa version <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> La versión inicial iba a ser un compilador al estilo Clipper, pero perdieron el rumbo con los "cantos de sirenas" de los IDEs <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Tambien hay conceptos de FoxPro en FiveWin. Yo tenía una pequeña guía de bolsillo de los comandos de FoxPro. "DEFINE WINDOW", etc. muchos de ellos son conceptos de FoxPro <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
El famoso MsgInfo(), etc. son ideas originales que encontré en una versión beta de Paradox de Borland. Paradox significa "Paradoja". Paradojas de la vida: ¿ donde está hoy en dia "Paradox" ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Estando atentos, siempre aparecen grandes oportunidades. Hasta en los basureros se pueden encontrar auténticos "tesoros" <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Las grandes empresas tambien cometen errores. Normalmente se creen que por ser grandes no se pueden equivocar, pero la realidad es que al ser grandes se hunden más rápido (como el Titanic). Sus movimientos son lentos y torpes, no tienen la capacidad de reacción de las mini-empresas <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Asi que nunca penseis que por ser pequeños no podeis vencer a una gran empresa. David venció a Goliat! Aprender de sus debilidades y errores es la clave para no cometer las mismas estupideces.
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Y puestos a contar batallitas, ¿ en que me inspiré para construir Harbour ? En Linux, por supuesto.
Cuando ví el milagro que había hecho Linus Torvals entendí que era aplicable a un Clipper moderno y de ahi nace Harbour <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Y de unos añitos que me pasé aprendiendo "Lex y Yacc", en concreto aprendí de este libro:
[url:le9ech6q]http://shop.oreilly.com/product/9781565920002.do[/url:le9ech6q]
[img:le9ech6q]https://bitbucket.org/fivetech/screenshots/downloads/lex_y_yacc.jpg[/img:le9ech6q]
El resto ? bueno, ya lo sabeis, el compilador que todos usamos <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio
Con la version Fwh1406, obtengo este error
[quote:18fbmrpw]
Compiling...
Harbour 3.2.0dev (r1406271520)
Copyright (c) 1999-2014, <!-- m --><a class="postlink" href="http://harbour-project.org/">http://harbour-project.org/</a><!-- m -->
Compiling 'prog01.prg' and generating preprocessed output to 'prog01.ppo'...
Lines 6145, Functions/Procedures 11
Generating C source output to 'prog01.c'... Done.
Compilador de optimización de C/C++ de Microsoft (R) versión 18.00.30501 para x86
(C) Microsoft Corporation. Reservados todos los derechos.
prog01.c
xhb.lib(xhbole.obj) : warning LNK4006: _HB_FUN_OLEDEFAULTARG ya se definió en FiveH32.lib(OLEFUNCS.obj); segunda definic
ión omitida
Creando biblioteca prog01.lib y objeto prog01.exp
FiveHC32.lib(MSGS.obj) : warning LNK4217: se importó el símbolo _strchr definido localmente en la función _LToStr
FiveHC32.lib(FWPNG.obj) : warning LNK4217: se importó el símbolo _fclose definido localmente en la función _save_png_to_
file
FiveHC32.lib(FWPNG.obj) : warning LNK4217: se importó el símbolo _fopen definido localmente en la función _save_png_to_f
ile
FiveHC32.lib(FWPNG.obj) : warning LNK4217: se importó el símbolo _longjmp definido localmente en la función _ReadPng
FiveHC32.lib(LISTVIEW.obj) : warning LNK4217: se importó el símbolo _wcslen definido localmente en la función _HB_FUN_LV
INSERTGROUP
FiveHC32.lib(FWARRAY.obj) : warning LNK4217: se importó el símbolo _memmove definido localmente en la función _fwArrayDe
l
FiveHC32.lib(MSGS.obj) : error LNK2019: símbolo externo __imp__sprintf sin resolver al que se hace referencia en la func
ión _LToStr
FiveHC32.lib(FWBMP.obj) : error LNK2019: símbolo externo __imp__strstr sin resolver al que se hace referencia en la func
ión _HB_FUN_PALBTNPAINT
prog01.exe : fatal error LNK1120: 2 externos sin resolver
* Linking errors *
[/quote:18fbmrpw]
Mi configuracion es
[quote:18fbmrpw]
if exist "%ProgramFiles%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" call "%ProgramFiles%\Microsoft
Visual Studio 12.0\VC\vcvarsall.bat"
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" call "%ProgramFiles(x86)%
\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
rem if "%FWDIR%" == "" set FWDIR=.\..
set FWDIR=c:\fwh\fwh1406
rem if "%HBDIR%" == "" set HBDIR=c:\harbour
set HBDIR=C:\Harbour\harbvc20142906
[/quote:18fbmrpw]
Ocurre igual con harbvc20131007
Resumiendo:
- Fwh1402 con harbvc20131007 genera el exe OK y funciona OK
- Fwh1402 con harbvc20142906 genera el exe OK y funciona OK
- Fwh1404 con harbvc20131007 genera el exe OK pero da Error:
Error description: Error BASE/1004 Message not found: TBTNFLAT:DEFCONTROL
- Fwh1404 con harbvc20142906 genera el exe OK pero da Error:
Error description: Error BASE/1004 Message not found: TBTNFLAT:DEFCONTROL
- Fwh1406 con harbvc20131007 obtengo los errores descritos anteriormente
(En este caso como no genera el exe no puedo saber si tambien da error en TBTNFLAT)
- Fwh1406 con harbvc20142906 obtengo los errores descritos anteriormente
(En este caso como no genera el exe no puedo saber si tambien da error en TBTNFLAT)
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Cristobal,
Que PRG estás construyendo ? Puedes copiar el fuente aqui ? gracias
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio
Te lo he enviado por mail
Gracias
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio ,
same error
[code=fw:1h9e3x5v]<div class="fw" id="{CB}" style="font-family: monospace;">hbmk2: <span style="color: #000000;">Linking</span>... MASTROSQL.EXE<br /> Creazione della libreria MASTROSQL.lib e dell<span style="color: #ff0000;">'oggetto MASTROSQL.exp in corso.<br />..<br />fivehc32.lib(MSGS.obj) : warning LNK4217: simbolo _strchr definito localmente im<br />portato nella funzione _LToStr<br />fivehc32.lib(FWPNG.obj) : warning LNK4217: simbolo _fclose definito localmente i<br />mportato nella funzione _save_png_to_file<br />fivehc32.lib(FWPNG.obj) : warning LNK4217: simbolo _fopen definito localmente im<br />portato nella funzione _save_png_to_file<br />fivehc32.lib(FWPNG.obj) : warning LNK4217: simbolo _longjmp definito localmente<br />importato nella funzione _ReadPng<br />fivehc32.lib(LISTVIEW.obj) : warning LNK4217: simbolo _wcslen definito localment<br />e importato nella funzione _HB_FUN_LVINSERTGROUP<br />fivehc32.lib(FWARRAY.obj) : warning LNK4217: simbolo _memmove definito localment<br />e importato nella funzione _fwArrayDel<br />fivehc32.lib(MSGS.obj) : error LNK2019: riferimento al simbolo esterno __imp__sp<br />rintf non risolto nella funzione _LToStr<br />fivehc32.lib(FWBMP.obj) : error LNK2019: riferimento al simbolo esterno __imp__s<br />trstr non risolto nella funzione _HB_FUN_PALBTNPAINT<br />MASTROSQL.EXE : fatal error LNK1120: 2 esterni non risolti<br />hbmk2: Error: Running linker. 1120<br />link.exe @C:<span style="color: #000000;">\U</span>sers<span style="color: #000000;">\M</span>aurizio<span style="color: #000000;">\A</span>ppData<span style="color: #000000;">\L</span>ocal<span style="color: #000000;">\T</span>emp<span style="color: #000000;">\s</span>t87y4.lnk<br /><br />hbmk2: Error: Referenced, missing, but unknown function(s): LVINSERTGROUP(),<br /> PALBTNPAINT()<br />****************** Linking errors *<br /></span></div>[/code:1h9e3x5v]
Maurizio
<!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w -->
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Cristobal,
Debe faltar un fichero de cabecera que no me has enviado:
[quote:39yet75t]Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
prog01.c
prog01.prg(808) : error C2065: 'IDC_WIN32PROJECT1' : undeclared identifier
prog01.prg(909) : error C2065: 'IDS_APP_TITLE' : undeclared identifier
prog01.prg(910) : error C2065: 'IDC_WIN32PROJECT1' : undeclared identifier
prog01.prg(936) : error C2065: 'IDC_WIN32PROJECT1' : undeclared identifier
prog01.prg(1061) : error C2065: 'IDI_WIN32PROJECT1' : undeclared identifier
prog01.prg(1064) : error C2065: 'IDC_WIN32PROJECT1' : undeclared identifier
prog01.prg(1066) : error C2065: 'IDI_SMALL' : undeclared identifier
prog01.prg(1146) : error C2065: 'IDM_ABOUT' : undeclared identifier
prog01.prg(1146) : error C2051: case expression not constant
prog01.prg(1147) : error C2065: 'IDD_ABOUTBOX' : undeclared identifier
prog01.prg(1149) : error C2065: 'IDM_EXIT' : undeclared identifier
prog01.prg(1149) : error C2051: case expression not constant
prog01.prg(1154) : warning C4065: switch statement contains 'default' but no 'ca
se' labels
prog01.prg(1316) : error C3861: '_T': identifier not found
prog01.prg(1356) : error C3861: '_tcslen': identifier not found
prog01.prg(1358) : error C3861: '_tcslen': identifier not found
prog01.prg(1359) : error C3861: '_tcslen': identifier not found
prog01.prg(1366) : error C2065: 'IDC_WIN32PROJECT1' : undeclared identifier
Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17029
Copyright (C) Microsoft Corporation. All rights reserved.
prog01.RC(3) : fatal error RC1015: cannot open include file 'resource.h'.
LINK : fatal error LNK1181: cannot open input file 'prog01.obj'
* Linking errors *[/quote:39yet75t]
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Maurizio,
What Visual Studio version are you using ?
Please try: FWH\samples\buildh32.bat tutor01
and let me know if you also get those warnings.
With VS2013 it works fine, as tutor01.prg calls MsgInfo() which it is in msgs.c module and thats where LToStr() is and from it strchr() is called.
I guess that you are using an older Visual Studio version.
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio,
Creo que con esto está completo
Fichero: win32project1.h
[code=fw:1a4es8rn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#pragma</span> once<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"resource.h"</span><br /> </div>[/code:1a4es8rn]
Y fichero resource.h
[code=fw:1a4es8rn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//{{NO_DEPENDENCIES}}</span><br /><span style="color: #B900B9;">// Microsoft Visual C++ generated include file.</span><br /><span style="color: #B900B9;">// Used by Win32Project1.rc</span><br /><span style="color: #B900B9;">//</span><br /><br /><span style="color: #00D7D7;">#define</span> IDS_APP_TITLE <span style="color: #000000;">103</span><br /><br /><span style="color: #00D7D7;">#define</span> IDR_MAINFRAME <span style="color: #000000;">128</span><br /><span style="color: #00D7D7;">#define</span> IDD_WIN32PROJECT1_DIALOG <span style="color: #000000;">102</span><br /><span style="color: #00D7D7;">#define</span> IDD_ABOUTBOX <span style="color: #000000;">103</span><br /><span style="color: #00D7D7;">#define</span> IDM_ABOUT <span style="color: #000000;">104</span><br /><span style="color: #00D7D7;">#define</span> IDM_EXIT <span style="color: #000000;">105</span><br /><span style="color: #00D7D7;">#define</span> IDI_WIN32PROJECT1 <span style="color: #000000;">107</span><br /><span style="color: #00D7D7;">#define</span> IDI_SMALL <span style="color: #000000;">108</span><br /><span style="color: #00D7D7;">#define</span> IDC_WIN32PROJECT1 <span style="color: #000000;">109</span><br /><span style="color: #00D7D7;">#define</span> IDC_MYICON <span style="color: #000000;">2</span><br />#ifndef IDC_STATIC<br /><span style="color: #00D7D7;">#define</span> IDC_STATIC <span style="color: #000000;">-1</span><br />#endif<br /><span style="color: #B900B9;">// Valores predeterminados siguientes para nuevos objetos</span><br /><span style="color: #B900B9;">//</span><br />#ifdef APSTUDIO_INVOKED<br />#ifndef APSTUDIO_READONLY_SYMBOLS<br /><br /><span style="color: #00D7D7;">#define</span> _APS_NO_MFC <span style="color: #000000;">130</span><br /><span style="color: #00D7D7;">#define</span> _APS_NEXT_RESOURCE_VALUE <span style="color: #000000;">129</span><br /><span style="color: #00D7D7;">#define</span> _APS_NEXT_COMMAND_VALUE <span style="color: #000000;">32771</span><br /><span style="color: #00D7D7;">#define</span> _APS_NEXT_CONTROL_VALUE <span style="color: #000000;">1000</span><br /><span style="color: #00D7D7;">#define</span> _APS_NEXT_SYMED_VALUE <span style="color: #000000;">110</span><br />#endif<br />#endif<br /> </div>[/code:1a4es8rn]
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Y tambien
Win32Project1.rc
[code=fw:9lz1cs5b]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//Script de recursos generado en Microsoft Visual C++.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"resource.h"</span><br /><br /><span style="color: #00D7D7;">#define</span> APSTUDIO_READONLY_SYMBOLS<br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Generado a partir del recurso TEXTINCLUDE 2.</span><br /><span style="color: #B900B9;">//</span><br />#ifndef APSTUDIO_INVOKED<br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"targetver.h"</span><br />#endif<br /><span style="color: #00D7D7;">#define</span> APSTUDIO_HIDDEN_SYMBOLS<br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br />#undef APSTUDIO_HIDDEN_SYMBOLS<br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br />#undef APSTUDIO_READONLY_SYMBOLS<br /><br />#if !defined<span style="color: #000000;">(</span>AFX_RESOURCE_DLL<span style="color: #000000;">)</span> || defined<span style="color: #000000;">(</span>AFX_TARG_ESN<span style="color: #000000;">)</span><br />LANGUAGE <span style="color: #000000;">10</span>, <span style="color: #000000;">3</span><br /><br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Icono</span><br /><span style="color: #B900B9;">//</span><br /><br /><span style="color: #B900B9;">// Icono con el valor de id. menor colocado en primer lugar para garantizar que el icono de la aplicación</span><br /><span style="color: #B900B9;">// es el mismo en todos los sistemas.</span><br /><br />IDI_WIN32PROJECT1 <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">"Win32Project1.ico"</span><br />IDI_SMALL <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">"small.ico"</span><br /><br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Menú</span><br /><span style="color: #B900B9;">//</span><br /><br />IDC_WIN32PROJECT1 <span style="color: #0000ff;">MENU</span><br />BEGIN<br /> <span style="color: #0000ff;">POPUP</span> <span style="color: #ff0000;">"&Archivo"</span><br /> BEGIN<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Salir"</span>, IDM_EXIT<br /> END<br /> <span style="color: #0000ff;">POPUP</span> <span style="color: #ff0000;">"Ay&uda"</span><br /> BEGIN<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Acerca de..."</span>, IDM_ABOUT<br /> END<br />END<br /><br /><br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Acelerador</span><br /><span style="color: #B900B9;">//</span><br /><br />IDC_WIN32PROJECT1 ACCELERATORS<br />BEGIN<br /> <span style="color: #ff0000;">"?"</span>, IDM_ABOUT, ASCII, ALT<br /> <span style="color: #ff0000;">"/"</span>, IDM_ABOUT, ASCII, ALT<br />END<br /><br /><br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Cuadro de diálogo</span><br /><span style="color: #B900B9;">//</span><br /><br />IDD_ABOUTBOX DIALOGEX <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">170</span>, <span style="color: #000000;">62</span><br /><span style="color: #0000ff;">STYLE</span> DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"Acerca de Win32Project1"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Shell Dlg"</span><br />BEGIN<br /> <span style="color: #0000ff;">ICON</span> IDR_MAINFRAME,IDC_STATIC,<span style="color: #000000;">14</span>,<span style="color: #000000;">14</span>,<span style="color: #000000;">21</span>,<span style="color: #000000;">20</span><br /> LTEXT <span style="color: #ff0000;">"Win32Project1, versión 1.0"</span>,IDC_STATIC,<span style="color: #000000;">42</span>,<span style="color: #000000;">14</span>,<span style="color: #000000;">114</span>,<span style="color: #000000;">8</span>,SS_NOPREFIX<br /> LTEXT <span style="color: #ff0000;">"Copyright (C) 2014"</span>,IDC_STATIC,<span style="color: #000000;">42</span>,<span style="color: #000000;">26</span>,<span style="color: #000000;">114</span>,<span style="color: #000000;">8</span><br /> DEFPUSHBUTTON <span style="color: #ff0000;">"Aceptar"</span>,IDOK,<span style="color: #000000;">113</span>,<span style="color: #000000;">41</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">14</span>,WS_GROUP<br />END<br /><br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// DESIGNINFO</span><br /><span style="color: #B900B9;">//</span><br /><br />#ifdef APSTUDIO_INVOKED<br />GUIDELINES DESIGNINFO<br />BEGIN<br /> IDD_ABOUTBOX, <span style="color: #0000ff;">DIALOG</span><br /> BEGIN<br /> LEFTMARGIN, <span style="color: #000000;">7</span><br /> RIGHTMARGIN, <span style="color: #000000;">163</span><br /> TOPMARGIN, <span style="color: #000000;">7</span><br /> BOTTOMMARGIN, <span style="color: #000000;">55</span><br /> END<br />END<br />#endif <span style="color: #B900B9;">// APSTUDIO_INVOKED</span><br /><br />#ifdef APSTUDIO_INVOKED<br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// TEXTINCLUDE</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #000000;">1</span> TEXTINCLUDE<br />BEGIN<br /> <span style="color: #ff0000;">"resource.h<span style="color: #000000;">\0</span>"</span><br />END<br /><br /><span style="color: #000000;">2</span> TEXTINCLUDE<br />BEGIN<br /> <span style="color: #ff0000;">"#ifndef APSTUDIO_INVOKED<span style="color: #000000;">\r</span><span style="color: #000000;">\n</span>"</span><br /> <span style="color: #ff0000;">"#include "</span><span style="color: #ff0000;">"targetver.h"</span><span style="color: #ff0000;">"<span style="color: #000000;">\r</span><span style="color: #000000;">\n</span>"</span><br /> <span style="color: #ff0000;">"#endif<span style="color: #000000;">\r</span><span style="color: #000000;">\n</span>"</span><br /> <span style="color: #ff0000;">"#define APSTUDIO_HIDDEN_SYMBOLS<span style="color: #000000;">\r</span><span style="color: #000000;">\n</span>"</span><br /> <span style="color: #ff0000;">"#include "</span><span style="color: #ff0000;">"windows.h"</span><span style="color: #ff0000;">"<span style="color: #000000;">\r</span><span style="color: #000000;">\n</span>"</span><br /> <span style="color: #ff0000;">"#undef APSTUDIO_HIDDEN_SYMBOLS<span style="color: #000000;">\r</span><span style="color: #000000;">\n</span>"</span><br /> <span style="color: #ff0000;">"<span style="color: #000000;">\0</span>"</span><br />END<br /><br /><span style="color: #000000;">3</span> TEXTINCLUDE<br />BEGIN<br /> <span style="color: #ff0000;">"<span style="color: #000000;">\r</span><span style="color: #000000;">\n</span>"</span><br /> <span style="color: #ff0000;">"<span style="color: #000000;">\0</span>"</span><br />END<br /><br />#endif <span style="color: #B900B9;">// APSTUDIO_INVOKED</span><br /><br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Tabla de cadenas</span><br /><span style="color: #B900B9;">//</span><br /><br />STRINGTABLE<br />BEGIN<br /> IDC_WIN32PROJECT1 <span style="color: #ff0000;">"WIN32PROJECT1"</span><br /> IDS_APP_TITLE <span style="color: #ff0000;">"Win32Project1"</span><br />END<br /><br />#endif<br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br /><br /><br /><br />#ifndef APSTUDIO_INVOKED<br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Generado a partir del recurso TEXTINCLUDE 3.</span><br /><span style="color: #B900B9;">//</span><br /><br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////////////</span><br />#endif <span style="color: #B900B9;">// No APSTUDIO_INVOKED</span><br /><br /><br /> </div>[/code:9lz1cs5b]
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio
Te he vuelto a enviar un nuevo mail
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Antonio ,
Thank the broblem was ( I use hbmk2 )
-ldflag=/force:multiple
-ldflag=/NODEFAULTLIB:libc
I have this warnings , are they important ?
[quote:3ni0va9c]MSVCRT.lib(MSVCR120.dll) : warning LNK4006: _memmove gi definito in LIBCMT.lib(
memmove.obj); seconda definizione ignorata
Creazione della libreria MASTROSQL.lib e dell'oggetto MASTROSQL.exp in corso.
..
LINK : warning LNK4098: la libreria predefinita 'MSVCRT' in conflitto con l'util
izzo di altre librerie; utilizzare /NODEFAULTLIB:libreria
MASTROSQL.EXE : warning LNK4088: immagine generata grazie all'opzione /FORCE; l'
immagine potrebbe non essere eseguita
------------------ Application successfully built *
[/quote:3ni0va9c]
Maurizio
<!-- w --><a class="postlink" href="http://www.nipeservice.it">www.nipeservice.it</a><!-- w -->
|
Bug harbour_3.2_32bits_MSVC2013_20142906
|
Maurizio,
No, they don't seem to be important.
Is the app properly working ? If yes, then its fine.
|
Bug in /= operator
|
This is the sample:
[code:102kvtvh]#include "Fwce.ch"
FUNCTION MAIN()
LOCAL nVal1 := 2.000
LOCAL nVal2 := 10
MSGINFO( nVal1 /= nVal2 )
RETURN NIL[/code:102kvtvh]
It terminates with an error when operator /= is executed.
EMG
|
Bug in /= operator
|
Enrico,
This is a workaround:
[code:3jj622j9]
#include "Fwce.ch"
FUNCTION MAIN()
LOCAL nVal1 := 2.000
LOCAL nVal2 := 10
local nVal3 := nVal1 / nVal2
MSGINFO( nVal3 )
RETURN NIL
[/code:3jj622j9]
Anyhow we are going to check where the error comes from
|
Bug in /= operator
|
[quote="Antonio Linares":34hnvipq]Enrico,
This is a workaround:
[code:34hnvipq]
#include "Fwce.ch"
FUNCTION MAIN()
LOCAL nVal1 := 2.000
LOCAL nVal2 := 10
local nVal3 := nVal1 / nVal2
MSGINFO( nVal3 )
RETURN NIL
[/code:34hnvipq][/quote:34hnvipq]
Yes, I did already know it. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
[quote="Antonio Linares":34hnvipq]Anyhow we are going to check where the error comes from[/quote:34hnvipq]
Thank you!
EMG
|
Bug in /= operator
|
Enrico,
It looks as a bug in the Harbour build used for Pocket PC, as this sample with no FWPPC code in it also fails:
nVal1 /= nVal2
|
Bug in /= operator
|
Thank you. I'm going to report it to the Harbour developers list.
EMG
|
Bug in /= operator
|
Enrico,
Wait, its ok in the current Harbour version, so it looks as the bug is just contained in the build used for Pocket PC
We may upgrade soon Harbour for Pocket PC to the current Harbour build
|
Bug in /= operator
|
Yes, you are right.
Thank you.
EMG
|
Bug in 2007 menu and MDI
|
In the following sample, please:
- press ALT-1 and the system menu will popup instead of Changed1 menu
- then press ALT and the MDICHILD icon will disappear
[code:285bvd5v]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd, oMenu
MENU oMenu 2007
MENUITEM "Test&1"
MENUITEM "Test&2"
MENUITEM "Test&3"
ENDMENU
DEFINE WINDOW oWnd MDI;
TITLE "MDI Test";
MENU oMenu
ACTIVATE WINDOW oWnd;
ON INIT CREATECHILD( oWnd )
RETURN NIL
STATIC FUNCTION CREATECHILD( oMdi )
LOCAL oWnd, oMenu
MENU oMenu 2007
MENUITEM "Changed&1"
MENUITEM "Changed&2"
MENUITEM "Changed&3"
ENDMENU
DEFINE WINDOW oWnd MDICHILD OF oMdi;
TITLE "MDI Child Test";
MENU oMenu
ACTIVATE WINDOW oWnd;
VALID !GETKEYSTATE( VK_ESCAPE );
MAXIMIZED
RETURN NIL[/code:285bvd5v]
EMG
|
Bug in 2007 menu and MDI
|
Enrico,
If the mdichild is not maximized then it works fine.
It looks as a Windows bug when using all menuitems as ownerdraw, as FWH does not change the way the menu commands are processed <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
The erase of the icon is our fault as we paint the entire horizontal bar. We need to check if a mdichild is maximized and then don't paint in that area
|
Bug in ADrives() [Fixed]
|
With latest W10 update the function ADrives() is no longer working. To fix the problem, please replace
[code=fw:azr5o64i]<div class="fw" id="{CB}" style="font-family: monospace;">FILE<span style="color: #000000;">(</span> CHR<span style="color: #000000;">(</span> i <span style="color: #000000;">)</span> + <span style="color: #ff0000;">":<span style="color: #000000;">\N</span>UL"</span> <span style="color: #000000;">)</span></div>[/code:azr5o64i]
with
[code=fw:azr5o64i]<div class="fw" id="{CB}" style="font-family: monospace;">ISDISK<span style="color: #000000;">(</span> CHR<span style="color: #000000;">(</span> i <span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:azr5o64i]
Hope ISDISK() is available in Harbour too.
EMG
|
Bug in ADrives() [Fixed]
|
Enrico,
I just tested:
[code=fw:10hn3pkl]<div class="fw" id="{CB}" style="font-family: monospace;"><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;">(</span><span style="color: #000000;">)</span><br /><br /> XBrowser<span style="color: #000000;">(</span> ADrives<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:10hn3pkl]
And it is working fine with Windows 10 Pro, version 1703, OSBuild 15063.138
What Windows 10 version are you using ?
|
Bug in ADrives() [Fixed]
|
[quote="Antonio Linares":28iml1l4]Enrico,
I just tested:
[code=fw:28iml1l4]<div class="fw" id="{CB}" style="font-family: monospace;"><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;">(</span><span style="color: #000000;">)</span><br /><br /> XBrowser<span style="color: #000000;">(</span> ADrives<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:28iml1l4]
And it is working fine with Windows 10 Pro, version 1703, OSBuild 15063.138[/quote:28iml1l4]
What do you get? I get all the drives from C to Z after latest Windows update.
[quote="Antonio Linares":28iml1l4]What Windows 10 version are you using ?[/quote:28iml1l4]
Latest official: Windows 10 Pro 1607 14393.1066
Anyway, I think that using a specific function like ISDISK() is better than the old trick with NUL, isn't it?
EMG
|
Bug in ADrives() [Fixed]
|
Now I have the same Windows version of yours (1703 build 15063.138) and the problem is not fixed.
EMG
|
Bug in ADrives() [Fixed]
|
What is exactly the problem ?
|
Bug in ADrives() [Fixed]
|
The problem is that ADrives() should return (and did before the recent Windows updates) only the existing drives in the system. In my PC it did return C, D AND E while now it wrongly returns all the drives from C to Z. Using ISDISK() instead of the NUL trick fixed the problem for me.
EMG
|
Bug in ADrives() [Fixed]
|
Could you post your code using ISDISK() ?
many thanks
|
Bug in ADrives() [Fixed]
|
Here it is:
[code=fw:12uv835x]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> ADrives<span style="color: #000000;">(</span> nType <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Thanks to EMG</span><br /><br /> <span style="color: #00C800;">local</span> aDisk := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">local</span> i<br /><br /> <span style="color: #00C800;">DEFAULT</span> nType := <span style="color: #000000;">0</span><br /><br /> <span style="color: #00C800;">if</span> nType = <span style="color: #000000;">0</span> .OR. nType = <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">for</span> i = <span style="color: #0000ff;">ASC</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"A"</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">ASC</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"B"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ISDISKETTE<span style="color: #000000;">(</span> CHR<span style="color: #000000;">(</span> i <span style="color: #000000;">)</span> + <span style="color: #ff0000;">":"</span> <span style="color: #000000;">)</span><br /> AADD<span style="color: #000000;">(</span> aDisk, CHR<span style="color: #000000;">(</span> i <span style="color: #000000;">)</span> + <span style="color: #ff0000;">":"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> nType = <span style="color: #000000;">0</span> .OR. nType = <span style="color: #000000;">2</span><br /> <span style="color: #00C800;">for</span> i = <span style="color: #0000ff;">ASC</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"C"</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">ASC</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Z"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ISCDROM<span style="color: #000000;">(</span> CHR<span style="color: #000000;">(</span> i <span style="color: #000000;">)</span> + <span style="color: #ff0000;">":"</span> <span style="color: #000000;">)</span> .OR. ISDISK<span style="color: #000000;">(</span> CHR<span style="color: #000000;">(</span> i <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> AADD<span style="color: #000000;">(</span> aDisk, CHR<span style="color: #000000;">(</span> i <span style="color: #000000;">)</span> + <span style="color: #ff0000;">":"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> aDisk</div>[/code:12uv835x]
EMG
|
Bug in ADrives() [Fixed]
|
many thanks
|
Bug in ADrives() [Fixed]
|
Antonio,
you forgot to fix this in the latest FWH build. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
EMG
|
Bug in ADrives() [Fixed]
|
Enrico,
You are right
Already included for FWH 17.05
many thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Bug in ADrives() [Fixed]
|
Great, thank you! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
EMG
|
Bug in BCC64
|
Only for C developers. I'm trying to build Harbour with BCC64. It seems there is a bug in BCC64 version 7.20 onward (7.10 is the latest that works fine). This sample:
[code=fw:c02yvsip]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <stdio.h><br /><br /><br /><span style="color: #00D7D7;">#define</span> TEST <span style="color: #ff0000;">"Ð"</span><br /><br /><br />int main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> printf<span style="color: #000000;">(</span> <span style="color: #ff0000;">"%s<span style="color: #000000;">\n</span>"</span>, TEST <span style="color: #000000;">)</span>;<br /> printf<span style="color: #000000;">(</span> <span style="color: #ff0000;">"%d<span style="color: #000000;">\n</span>"</span>, *TEST <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>;<br /><span style="color: #000000;">}</span></div>[/code:c02yvsip]
prints:
[code=fw:c02yvsip]<div class="fw" id="{CB}" style="font-family: monospace;">?<br /><span style="color: #000000;">63</span></div>[/code:c02yvsip]
While this modified sample:
[code=fw:c02yvsip]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <stdio.h><br /><br /><br /><span style="color: #00D7D7;">#define</span> TEST <span style="color: #ff0000;">"Ð"</span><br /><br /><br /><span style="color: #B900B9;">//Ð</span><br /><br /><br />int main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> printf<span style="color: #000000;">(</span> <span style="color: #ff0000;">"%s<span style="color: #000000;">\n</span>"</span>, TEST <span style="color: #000000;">)</span>;<br /> printf<span style="color: #000000;">(</span> <span style="color: #ff0000;">"%d<span style="color: #000000;">\n</span>"</span>, *TEST <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>;<br /><span style="color: #000000;">}</span></div>[/code:c02yvsip]
prints the correct answer that is:
[code=fw:c02yvsip]<div class="fw" id="{CB}" style="font-family: monospace;">ðÉ<br /><span style="color: #000000;">-48</span></div>[/code:c02yvsip]
I tried all sort of switches but nothing worked. Any ideas? Even a workaroud would be much appreciated.
|
Bug in CLASS TComboBox?
|
[code=fw:3i669g4n]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Select</span><span style="color: #000000;">(</span> nItem <span style="color: #000000;">)</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nAt</span> := nItem,;<br /> ::<span style="color: #000000;">SendMsg</span><span style="color: #000000;">(</span> CB_SETCURSEL, nItem - <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span></div>[/code:3i669g4n]
It seems, that the variable is not updated if i use ::select(). In method Select() should be added a ::change()!
|
Bug in CLASS TComboBox?
|
Günther,
Have you modified it and is it working fine ?
|
Bug in CLASS TComboBox?
|
I have a long time tested as the variable after ::select() was NOT changed according to the new position. Then i checked also the code from Listbox and there on the same place ::change() is calling. The ::select() is a movement and also must be
updating the variable and eval(bChange) if exist.
|
Bug in CLASS TComboBox?
|
Please show me how you have modified it
|
Bug in CLASS TComboBox?
|
Antonio, i made a new method to select a item. Now the variable is correct updated and the bChange are executed if present.
[code=fw:2rx8mgq4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> SelectItem<span style="color: #000000;">(</span> nItem <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TComboBox<br /> ::<span style="color: #000000;">nAt</span> := nItem<br /> ::<span style="color: #000000;">SendMsg</span><span style="color: #000000;">(</span> CB_SETCURSEL, nItem - <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nAt</span> == <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nAt</span> <= Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aItems</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bSetGet</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span><br /> Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bSetGet</span>, ::<span style="color: #000000;">nAt</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bSetGet</span>, ::<span style="color: #000000;">aItems</span><span style="color: #000000;">[</span> ::<span style="color: #000000;">nAt</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">VarPut</span><span style="color: #000000;">(</span> Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bSetGet</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oGet</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bChange</span> != <span style="color: #00C800;">nil</span><br /> Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bChange</span> , <span style="color: #00C800;">self</span> , ::<span style="color: #000000;">GetText</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2rx8mgq4]
|
Bug in CLASS TComboBox?
|
Günther,
Have you checked if bChange gets executed twice ?
Please call MsgInfo() from it and check if it gets called just once
thanks
|
Bug in Combobox
|
In the following sample:
[code:63y81519]#include "Fwce.ch"
FUNCTION MAIN()
LOCAL oWnd, oCbx
LOCAL aVar := { "A", "B", "C" }
LOCAL cVar := ""
DEFINE WINDOW oWnd
@ 1, 1 COMBOBOX oCbx VAR cVar;
ITEMS aVar
oCbx:SetFocus()
@ 3, 1 BUTTON "Change";
ACTION ( oCbx:VarPut( "B" ), oCbx:Refresh() )
ACTIVATE WINDOW oWnd
RETURN NIL[/code:63y81519]
if you click on the button you get the following error:
Message not found TCOMBOBOX:VARPUT
EMG
|
Bug in Combobox
|
Enrico,
This method was missing from Class TControl:
[code:180pgbuw]
METHOD VarPut( uVal ) INLINE If( ValType( ::bSetGet ) == "B",;
Eval( ::bSetGet, uVal ),)
[/code:180pgbuw]
Already implemented for the next build.
|
Bug in Combobox
|
Thank you!
EMG
|
Bug in DEFINE WINDOW command
|
The following sample seems to uncorrectly create an MDI window instead of a normal one (removing PIXEL clause the window switches back to normal):
[code:1x54xxvn]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd
DEFINE WINDOW oWnd PIXEL
ACTIVATE WINDOW oWnd
RETURN NIL[/code:1x54xxvn]
EMG
|
Bug in FWH with TRANSPARENT & ICON?
|
Hi,
I have a strange effect when using the TRANSPARENT option in a dialog.
The code is:
[code:2vymt9yw]#INCLUDE "FiveWin.ch"
#include "fwinkey.ch"
FUNCTION test()
local oDlg
local oBrush
DEFINE BRUSH oBrush COLOR nRGB(240,240,245)
DEFINE DIALOG oDlg RESOURCE "OPENENDATABASE" BRUSH oBrush TRANSPARENT
ACTIVATE DIALOG oDlg CENTERED
RETURN nil
[/code:2vymt9yw]
[code:2vymt9yw]
#include "c:\fwh\FWH710\include\WinApi.ch"
OPEN ICON folder2.ico
#ifdef __FLAT__
1 24 "c:\fwh\FWH710\samples\WinXP\WindowsXP.Manifest"
#endif
OPENENDATABASE DIALOG 73, 37, 144, 48
STYLE DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION "Opening database"
FONT 8, "MS Sans Serif"
{
LTEXT "Please wait...", -1, 55, 19, 57, 8
ICON "open", -1, 20, 12, 21, 20
GROUPBOX "", -1, 5, 2, 134, 38, BS_GROUPBOX
}[/code:2vymt9yw]
If I comment the TRANSPARENT, I see a dialog with ICON & Text.
If I use TRANSPARENT I see a text 'open' on the place where the icon should be.
Is this a bug in FWH?
Thanks,
Marc
|
Bug in FWH with TRANSPARENT & ICON?
|
Marc,
It was a bug. Already fixed <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
We email you a modified FiveHC.lib
Thanks for your feedback! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Bug in FWH with TRANSPARENT & ICON?
|
Thanks Antonio,
It's working fine now <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Regards,
Marc
|
Bug in FWH with TRANSPARENT & ICON?
|
Antonio,
With new new lib you have send me I, the SAY's aren't transparant anymore <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
[url:aa1okq4h]http://www.vms.be/FWTest/trasparent.bmp[/url:aa1okq4h]
Regards,
Marc
|
Bug in Fivewin.ch (TWindow)
|
In the following sample we should get a TWindow while what we get is a TMdiFrame:
[code=fw:3ivwun7r]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oWnd<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br /> <span style="color: #0000ff;">PIXEL</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">ClassName</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:3ivwun7r]
EMG
|
Bug in Fivewin.ch (TWindow)
|
Enrico,
This fix in FiveWin.ch lines: 1346-1349 seems to solve it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[code=fw:i7wjfhgw]<div class="fw" id="{CB}" style="font-family: monospace;">#xcommand <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> <oWnd> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FROM</span> <nTop>, <nLeft> <span style="color: #0000ff;">TO</span> <nBottom>, <nRight> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span><pixel: <span style="color: #000000;">PIXEL</span>><span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">TITLE</span> <cTitle> <span style="color: #000000;">]</span> ;<br /> </div>[/code:i7wjfhgw]
Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Bug in Fivewin.ch (TWindow)
|
Thank you, Master! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
EMG
|
Bug in FolderEx ...
|
Hi,
On FolderEx created on dialog can't view national chars ( lithuanians, russian ) . At first that noticed with cyrillics ( russsian ) notes , but tested and with lithuanian . I can't to view national chars on folderEx . Please , try the sample , you can change prompts and say to your own language ( if it have more than ussuals latin letters , native language chars ) . Excuse Antonio , but that it's real fact , why you can't to confirm that ? ... <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
[code=fw:3bblranz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oWnd<br /> <span style="color: #00C800;">local</span> oFld<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TFolderex - DIALOG -"</span><br /> <br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> FOLDEREX oFld <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ADJUST</span>;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&OS"</span>, <span style="color: #ff0000;">"&Žaidimai"</span>, <span style="color: #ff0000;">"&Movies"</span>, <span style="color: #ff0000;">"&Lietuviškai"</span><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">3</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"UNDER CONSTRUCTION"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> TRANSPARENT<br /> @ <span style="color: #000000;">40</span>,<span style="color: #000000;">50</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Linksm? Kal?d? !"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PIXEL</span> TRANSPARENT<br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oWnd<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3bblranz]
With best regards !
Fwh 11.11 , MinGW , Harbour 3.1
|
Bug in FolderEx ...
|
Hello
it's ok to me with last fivewin version (11.11)
[b:1v0qcsha]lithuanian[/b:1v0qcsha]
sample: [url:1v0qcsha]http://www.sitasoft.net/fivewin/samples/testl.zip[/url:1v0qcsha]
[img:1v0qcsha]http://www.sitasoft.net/fivewin/screen/fxlt.png[/img:1v0qcsha]
[b:1v0qcsha]Spanish (Español)[/b:1v0qcsha]
sample: [url:1v0qcsha]http://www.sitasoft.net/fivewin/samples/teste.zip[/url:1v0qcsha]
[img:1v0qcsha]http://www.sitasoft.net/fivewin/screen/fxexp.png[/img:1v0qcsha]
|
Bug in FolderEx ...
|
[quote="Daniel Garcia-Gil":ibvn0nxj]Hello
it's ok to me with last fivewin version (11.11)
[/quote:ibvn0nxj]
Hi Daniel ,
I have Fwh 11.11 of December 04 ... But I really can't see lithuanians chars .
MinGW , Harbour 3.1
Added : your samples are with Borlands , not MinGW ... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Regards !
|
Bug in FolderEx ...
|
Hello
tested with mingw and msvc
[b:2jrpwy2z]MINGW[/b:2jrpwy2z]
sample [url:2jrpwy2z]http://www.sitasoft.net/fivewin/rimag.zip[/url:2jrpwy2z]
[img:2jrpwy2z]http://www.sitasoft.net/fivewin/screen/rimag.png[/img:2jrpwy2z]
[b:2jrpwy2z]MSVC[/b:2jrpwy2z]
sample [url:2jrpwy2z]http://www.sitasoft.net/fivewin/rimam.zip[/url:2jrpwy2z]
[img:2jrpwy2z]http://www.sitasoft.net/fivewin/screen/rimam.png[/img:2jrpwy2z]
|
Bug in FolderEx ...
|
[quote="Daniel Garcia-Gil":1a033gi1]Hello
tested with mingw and msvc
[/quote:1a033gi1]
Daniel , can you send to me you build .bat ? Mine e-mail : <!-- e --><a href="mailto:rimantasu@gmail.com">rimantasu@gmail.com</a><!-- e --> . If we have the same Fwh build ( Dec. 04 ) , where it can be problem ? Missing lib ? At evening I will say how big in bytes are mine libs of Fwh . And which Harbour build number is ... I'll recheck all that .
Thanks to you . With best regards !
|
Bug in FolderEx ...
|
Hello
i'm using same build*.bat from sample folder
|
Bug in FolderEx ...
|
[quote="Daniel Garcia-Gil":16jsxp7q]Hello
i'm using same build*.bat from sample folder[/quote:16jsxp7q]
I too ... Hmmm ... Daniel can you provide some info yet ? How many bytes is your fivehg and fivehgc libs and which Harbour build number ( 17504 for sample ) ?
Thanks in advance !
|
Bug in FolderEx ...
|
Hello
harbour 17125
fivehg.lib size 2.976.732
fivehgc.lib size 861.742
|
Bug in FolderEx ...
|
Rimatas,
Maybe you are linking a modified .prg of Folderex...
|
Bug in FolderEx ...
|
[quote="ukservice":25j3vrqr]Rimatas,
Maybe you are linking a modified .prg of Folderex...[/quote:25j3vrqr]
No . It's a small sample ( can see in [code] section ) , which placed in fwh\samples folder and created with standard fwh buildg.bat . No any other add or something .
Can you try this sample ? How it looks at your PC ?
|
Bug in FolderEx ...
|
Rimantas
when you run my sample, how look ?
|
Bug in FolderEx ...
|
Rimatas,
I see it as Daniel <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->.
|
Bug in FolderEx ...
|
[quote="Daniel Garcia-Gil":19i66bzn]Hello
harbour 17125
fivehg.lib size 2.976.732
fivehgc.lib size 861.742[/quote:19i66bzn]
Ok , now I'm with FiveWin pc .
Fivehg.lib - 2.976.832
Fivehgc.lib - 861.804
Harbour 3.1 - build 17025
After that I downloaded again Fwh 11.11 ... I didn't know that exist a new realise : 13 of December . Now I have 2 fwh : C:\fwh the oldest ( 04 of December ) and C:\Fwh2 - newest , 13 of December . Now fivehg* libs are the same as Daniel's .
[url:19i66bzn]http://public.fotki.com/Rimokas/namas/fwh-vers.html[/url:19i66bzn]
But ... compiled with newest fwh and I'm seeing that :
[url:19i66bzn]http://public.fotki.com/Rimokas/namas/folderex.html[/url:19i66bzn] ... No lithuanian chars ... <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Now I'll try to download the latest harbour and try .
Added :
Downloaded latest Harbour - rev 17140 . Nothing changed ... Can't understand how you are seeing lithuanian char , but I - not ... <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> . Any ideas ?
|
Bug in FolderEx ...
|
[quote="Daniel Garcia-Gil":12onn94a]Rimantas
when you run my sample, how look ?[/quote:12onn94a]
Excuse , didn't saw this message .
I'm seeing like in your picture . Yes, I'm seeing lithuanian prompts . Can I send to you mine exe to test in your PC ?
Regards !
Added : just idea - in which type of encoding are your prg files ? I'm storing as "ANSI" ...
|
Bug in FolderEx ...
|
Hello
<!-- e --><a href="mailto:danielgarciagil@gmail.com">danielgarciagil@gmail.com</a><!-- e -->
compress to .zip and rename file to .zop
[quote="Rimantas":1g9jp6ss]Added : just idea - in which type of encoding are your prg files ? I'm storing as "ANSI" ...[/quote:1g9jp6ss]
me too
i can not use unicode format, harbour show compiler error
|
Bug in FolderEx ...
|
[quote="Daniel Garcia-Gil":x3oon260]Hello
<!-- e --><a href="mailto:danielgarciagil@gmail.com">danielgarciagil@gmail.com</a><!-- e -->
compress to .zip and rename file to .zop
[/quote:x3oon260]
Alreday sent ... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
Bug in FolderEx ...
|
Rimantas
the lithuanian prompts is not showed <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
send me the prg too
what text editor are you using?
|
Bug in FolderEx ...
|
[quote="Daniel Garcia-Gil":1r9by8ix]Rimantas
the lithuanian prompts is not showed <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
send me the prg too
what text editor are you using?[/quote:1r9by8ix]
Daniel , we forgoted that on windows nationals chars are working fine ... So source here is not related .
Regards !
|
Bug in FolderEx ...
|
Rimantas,
Are the same prompts are fine with a standard TFolder (SysTabControl32) ?
We use DrawText() to paint the promts. As those are in unicode I think that you could try to call DrawTextW() instead of DrawTextA(). By default (non unicode) DrawText() gets translated into DrawTextA().
|
Bug in FolderEx ...
|
Antonio.
[quote="Antonio Linares":1iusi339]
Are the same prompts are fine with a standard TFolder (SysTabControl32) ?
[/quote:1iusi339]
Standard TFolder works fine in all cases - dialogs & windows .
[quote:1iusi339]
We use DrawText() to paint the promts. As those are in unicode I think that you could try to call DrawTextW() instead of DrawTextA(). By default (non unicode) DrawText() gets translated into DrawTextA().
[/quote:1iusi339]
Where I can to try that ? Can you direct to source ?
Thanks ! With best regards !
|
Bug in FolderEx ...
|
Rimantas,
Please try this example using some unicode text:
[code=fw:tm5kguo4]<div class="fw" id="{CB}" style="font-family: monospace;"><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;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DrawTextW<span style="color: #000000;">(</span> hDC, Unicode_Text, <span style="color: #000000;">{</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> DRAWTEXTW <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> RECT rct;<br /> <br /> rct.top = hb_parvni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> rct.<span style="color: #0000ff;">left</span> = hb_parvni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>;<br /> rct.bottom = hb_parvni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>;<br /> rct.<span style="color: #0000ff;">right</span> = hb_parvni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span>;<br /><br /> DrawTextW<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> HDC <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">(</span> char * <span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, hb_parclen<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, &rct, DT_LEFT <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP </div>[/code:tm5kguo4]
|
Bug in FolderEx ...
|
[quote="Antonio Linares":2mvvfxac]Rimantas,
Please try this example using some unicode text:
[code=fw:2mvvfxac]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oDlg<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DrawTextW<span style="color: #000000;">(</span> hDC, Unicode_Text, <span style="color: #000000;">{</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> DRAWTEXTW <span style="color: #000000;">)</span><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP </div>[/code:2mvvfxac][/quote:2mvvfxac]
Maybe I something didn't understand ... I writed instead "Unicode_Text" own text . Here is sample :
[url:2mvvfxac]http://imageshack.us/photo/my-images/440/band1r.jpg/[/url:2mvvfxac]
Then tried with DrawText() function :
[url:2mvvfxac]http://imageshack.us/photo/my-images/13/band2wb.jpg/[/url:2mvvfxac]
And at last tried with simple SAY :
[code=fw:2mvvfxac]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oDlg<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Bandym?lis ... ?????š??ž "</span> <br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Linksm? Kal?d? ! ?????š??ž "</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2mvvfxac]
[url:2mvvfxac]http://imageshack.us/photo/my-images/24/band3g.jpg/[/url:2mvvfxac]
It's related to FolderEx tab dialog ?
|
Bug in FolderEx ...
|
If the example is properly shown with standard DrawText() then it means that you are not displaying unicode.
Class TFolderEx() is using standard DrawText()
|
Bug in FolderEx ...
|
[quote="Antonio Linares":300a0b79]If the example is properly shown with standard DrawText() then it means that you are not displaying unicode.
Class TFolderEx() is using standard DrawText()[/quote:300a0b79]
With DrawText all is OK ... Can you get some ideas , why it's not working with mine samples with FolderEx on Dialogs ? I like FolderEx , it works fine . Exspecially like the feature hide/unhide folder tabs . I'm working in enterprise "Utenos trikotazas" and we have subsidiary enterprise in Ukrainian city Mukachevo , "Mryia" . We don't know ukrainian language , but from the common past ( in the USSR ) we know russian language . And I'm preparing program in 3 languages - lithuanian , russian and all invoices and packing-slips in english also . So the cyrillics it's needfull for me . With lithuanian I can write , as we are naming "tongue-tieded" ... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> , without nat.chars "?????š??ž" . At first I saw problem with cyrrilics notes ...
Any ideas ?
With best regards !
|
Bug in FolderEx ...
|
Rimantas,
Does it look wrong in TFolderEx ? Or you simply get nothing ?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.