topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
read mailbox | There is such an example of [b:r7uuat2v]testpop3. prg[/b:r7uuat2v]. But I don't understand how it works <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> |
read mailbox | Hello,
Where is this sample?
Best regards,
Otto |
read mailbox | FWH\Samples\ testpop3. prg |
read xml file | How read xml file size 10Mb
cFileName:='test.xml'
I am using
oXmlDoc := TXmlDocument():new( ) // HBXML_TYPE_CDATA HBXML_STYLE_NOESCAPE
IF oXmlDoc:nStatus != HBXML_STATUS_OK
Msginfo( "error file .XML" )
Break
ENDIF
oXmlDoc:read( Memoread( cFileName ) )
best regard
KAJOT |
read xml file | Kajot,
Please review function OpenXML() source code here:
[url:2g9cow0a]https://github.com/FiveTechSoft/FWH_tools/blob/master/pim.zip[/url:2g9cow0a]
[code=fw:2g9cow0a]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> OpenXML<span style="color: #000000;">(</span> cFileName, oTree <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> aRoots := <span style="color: #000000;">{</span><span style="color: #000000;">}</span>, hFile, oXmlDoc, oXmlIter, oTagLast, oTagActual, oCol<br /><br /> hFile = FOpen<span style="color: #000000;">(</span> cFileName <span style="color: #000000;">)</span><br /> oXmlDoc = TXmlDocument<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> hFile <span style="color: #000000;">)</span><br /> oXmlIter = TXmlIterator<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oXmlDoc:<span style="color: #000000;">oRoot</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> oXmlDoc:<span style="color: #000000;">nError</span> != <span style="color: #000000;">0</span><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Filename: "</span> + cFileName + CRLF + ;<br /> <span style="color: #ff0000;">"Line "</span> + AllTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> oXmlDoc:<span style="color: #000000;">nLine</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + CRLF + ;<br /> <span style="color: #ff0000;">"Description: "</span> + XmlError<span style="color: #000000;">(</span> oXmlDoc:<span style="color: #000000;">nError</span> <span style="color: #000000;">)</span> + CRLF + ;<br /> <span style="color: #ff0000;">"Node: <"</span> + <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ! Empty<span style="color: #000000;">(</span> oXmlDoc:<span style="color: #000000;">oErrorNode</span>:<span style="color: #000000;">cName</span> <span style="color: #000000;">)</span>, oXmlDoc:<span style="color: #000000;">oErrorNode</span>:<span style="color: #000000;">cName</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span> + ;<br /> <span style="color: #ff0000;">">"</span>, <span style="color: #ff0000;">"XML error"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .F. <br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #B900B9;">// XBrowse( oXmlDoc )</span><br /> <br /> AAdd<span style="color: #000000;">(</span> aRoots, oTree <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">while</span> <span style="color: #000000;">(</span> oTagActual := oXmlIter:<span style="color: #00C800;">Next</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #00C800;">nil</span><br /> <span style="color: #B900B9;">// XBROWSER oTagActual ;</span><br /> <span style="color: #B900B9;">// SETUP ( oCol := oBrw:AddCol(), oCol:bStrData := { || oTagActual:Depth() }, oCol:cHeader := "Depth" ) </span><br /> <br /> <span style="color: #B900B9;">// MsgInfo( oTagActual:cName )</span><br /><br /> <span style="color: #00C800;">if</span> oTagLast != <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">if</span> oTagLast:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> < oTagActual:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> AAdd<span style="color: #000000;">(</span> aRoots, <span style="color: #00C800;">nil</span> <span style="color: #000000;">)</span><br /> aRoots<span style="color: #000000;">[</span> oTagActual:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> = aRoots<span style="color: #000000;">[</span> oTagActual:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> oTagActual:<span style="color: #000000;">cName</span> <span style="color: #000000;">)</span><br /> aRoots<span style="color: #000000;">[</span> oTagActual:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">Cargo</span> = oTagActual:<span style="color: #000000;">cData</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> oTagLast:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> > oTagActual:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> aRoots<span style="color: #000000;">[</span> oTagActual:<span style="color: #000000;">depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> = aRoots<span style="color: #000000;">[</span> oTagActual:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> oTagActual:<span style="color: #000000;">cName</span> <span style="color: #000000;">)</span><br /> aRoots<span style="color: #000000;">[</span> oTagActual:<span style="color: #000000;">depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">Cargo</span> = oTagActual:<span style="color: #000000;">cData</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> oTagLast:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> == oTagActual:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> aRoots<span style="color: #000000;">[</span> oTagActual:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> = aRoots<span style="color: #000000;">[</span> <span style="color: #0000ff;">Max</span><span style="color: #000000;">(</span> oTagLast:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> oTagActual:<span style="color: #000000;">cName</span> <span style="color: #000000;">)</span><br /> aRoots<span style="color: #000000;">[</span> oTagActual:<span style="color: #000000;">Depth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">Cargo</span> = oTagActual:<span style="color: #000000;">cData</span> <br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">else</span><br /> AAdd<span style="color: #000000;">(</span> aRoots, oTree:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> oTagActual:<span style="color: #000000;">cName</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ATail<span style="color: #000000;">(</span> aRoots <span style="color: #000000;">)</span>:<span style="color: #000000;">Cargo</span> = oTagActual:<span style="color: #000000;">cData</span><br /> <span style="color: #00C800;">endif</span><br /> oTagLast = oTagActual<br /> end<br /><br /> FClose<span style="color: #000000;">(</span> hFile <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> .T. <br /> </div>[/code:2g9cow0a] |
read xml file | Marc,
Please include this function in your PRG:
[code=fw:2kcbpz0b]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> XmlError<span style="color: #000000;">(</span> nError <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> aErrors := <span style="color: #000000;">{</span> <span style="color: #ff0000;">"HBXML_ERROR_IO"</span>, <span style="color: #ff0000;">"HBXML_ERROR_NOMEM"</span>, <span style="color: #ff0000;">"HBXML_ERROR_OUTCHAR"</span>,;<br /> <span style="color: #ff0000;">"HBXML_ERROR_INVNODE"</span>, <span style="color: #ff0000;">"HBXML_ERROR_INVATT"</span>, <span style="color: #ff0000;">"HBXML_ERROR_MALFATT"</span>,;<br /> <span style="color: #ff0000;">"HBXML_ERROR_INVCHAR"</span>, <span style="color: #ff0000;">"HBXML_ERROR_NAMETOOLONG"</span>, <span style="color: #ff0000;">"HBXML_ERROR_ATTRIBTOOLONG"</span>,;<br /> <span style="color: #ff0000;">"HBXML_ERROR_VALATTOOLONG"</span>, <span style="color: #ff0000;">"HBXML_ERROR_UNCLOSED"</span>, <span style="color: #ff0000;">"HBXML_ERROR_UNCLOSEDENTITY"</span>,;<br /> <span style="color: #ff0000;">"HBXML_ERROR_WRONGENTITY"</span> <span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nError > <span style="color: #000000;">0</span> .and. nError < <span style="color: #000000;">14</span>, aErrors<span style="color: #000000;">[</span> nError <span style="color: #000000;">]</span>, <span style="color: #ff0000;">"error range must be 1-13"</span> <span style="color: #000000;">)</span><br /> </div>[/code:2kcbpz0b]
Here it is the XML header file:
[url:2kcbpz0b]https://github.com/harbour/core/blob/master/contrib/xhb/hbxml.ch[/url:2kcbpz0b] |
read xml file | Antonio,
#include "c:\harbour\contrib\xhb\hbxml.ch"
Where is this file located ? I think it is needed, because I get a error in testing.
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_XMLERROR' referenced from C:\PROGRAMMAS\FOTOSELECT\OBJ\TEST1.OBJ
Error: Unable to perform link
** error 2 ** deleting TEST.EXE |
read xml file | Thank you.
PIM.EXE is a sample for reading a XML file and editing is also possible, but it is not a process for more options ?
I suppose it is not the idea of creation a PIM.exe that also reads the xml and can put it into a dbf.
That option is what I'm looking at now. I need to download more that once a XML file from my webshop, containing the colors and Hex values used in product pages.
sample file :
<?xml version="1.0"?>
<options version="1">
<item>
<id>1</id>
<sortOrder>127</sortOrder>
<widget>true</widget>
<googleTag/>
<beslistTag/>
<channableTag/>
<name>
<dutch>Kleur</dutch>
</name>
<values>
<item>
<id>2459</id>
<sortOrder>0</sortOrder>
<colorHex>A12839</colorHex>
<name>
<dutch>aardbei</dutch>
</name>
</item>
<item>
<id>2</id>
<sortOrder>0</sortOrder>
<colorHex/>
<name>
<dutch>antraciet</dutch>
</name>
</item>
<item>
<id>2522</id>
<sortOrder>0</sortOrder>
<colorHex/>
<name>
<dutch>antraciet/zwart</dutch>
</name>
</item>
<item>
<id>2675</id>
<sortOrder>0</sortOrder>
<colorHex/>
<name>
<dutch>ANTRACIETGRIJS</dutch>
</name>
</item>
<item>
<id>2564</id>
<sortOrder>0</sortOrder>
<colorHex/>
<name>
<dutch>ZWARTø</dutch>
</name>
</item>
</values>
</item>
</options>
This function is going the right way in converting to xbrowse data that can be saved later.
[code=fw:2k2ydsrs]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Xmlreader<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aMail:=<span style="color: #000000;">{</span><span style="color: #000000;">}</span>,nTel:= <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">local</span> hFile := FOpen<span style="color: #000000;">(</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\p</span>rogrammas<span style="color: #000000;">\f</span>otoselect<span style="color: #000000;">\k</span>leuren.xml"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> oXmlDoc := TXmlDocument<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> hFile <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> oXmlIter := TXmlIterator<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oXmlDoc:<span style="color: #000000;">oRoot</span> <span style="color: #000000;">)</span>, oTagActual<br /> <span style="color: #00C800;">while</span> .T.<br /> oTagActual = oXmlIter:<span style="color: #00C800;">Next</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">If</span> oTagActual != <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">if</span> oTagActual:<span style="color: #000000;">cName</span> = <span style="color: #ff0000;">"item"</span><br /> aadd<span style="color: #000000;">(</span>aMail,oTagActual:<span style="color: #000000;">cData</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">if</span> oTagActual:<span style="color: #000000;">cName</span> = <span style="color: #ff0000;">"dutch"</span><br /> aadd<span style="color: #000000;">(</span>aMail,oTagActual:<span style="color: #000000;">cData</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">if</span> oTagActual:<span style="color: #000000;">cName</span> = <span style="color: #ff0000;">"colorHex"</span><br /> aadd<span style="color: #000000;">(</span>aMail,oTagActual:<span style="color: #000000;">cData</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><span style="color: #B900B9;">// HEval( oTagActual:aAttributes, { | cKey, cValue | MsgInfo( cKey, cValue ) } )</span><br /> <span style="color: #00C800;">Else</span><br /> Exit<br /> <span style="color: #00C800;">Endif</span><br /> <span style="color: #00C800;">if</span> nTel > <span style="color: #000000;">5</span><br /> exit<br /> <span style="color: #00C800;">endif</span><br /><br /> End<br /> <span style="color: #0000ff;">xbrowse</span><span style="color: #000000;">(</span>aMail<span style="color: #000000;">)</span><br /> FClose<span style="color: #000000;">(</span> hFile <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:2k2ydsrs]
Data that I become =
A
Kleur
A12839
aardbei
antraciet
antraciet/zwart
ANTRACIETGRIJS
ANTRACIETGRIJS/AZUURBLAUW
ANTRACIETGRIJS/ZWART
00A0DF
aqua
Army Groen/Zwart
06638f
Assure
Azure
AZUURBLAUW
AZUURBLAUW/ANTRACIETGRIJS
AZUURBLAUW/ZWART
A0BAD3
babyblauw
ECC9E9
babyrose
// end data sample -------------------------------------------------------------------------------------------------------------------
In fact i finaly would like this in a database:
ID ColorHex Name
2459 A12839 aardbei
2 antraciet
....
83 06638f Assure
Is a XML file build always the same way ? |
read xml file | Marc,
pim.prg is just an example using FWH, XML, TreeViews, RichEdit, etc. Still there are some bugs to fix.
This is a modified version of your XML that opens fine using pim.exe:
marc.xml
[quote:6t0ljm84]<xml>version="1.0"
<options>
<values>
<item>
<id>1</id>
<sortOrder>127</sortOrder>
<widget>true</widget>
<name>
<dutch>Kleur</dutch>
</name>
</item>
<item>
<id>2459</id>
<sortOrder>0</sortOrder>
<colorHex>A12839</colorHex>
<name>
<dutch>aardbei</dutch>
</name>
</item>
<item>
<id>2</id>
<sortOrder>0</sortOrder>
<colorHex/>
<name>
<dutch>antraciet</dutch>
</name>
</item>
<item>
<id>2522</id>
<sortOrder>0</sortOrder>
<colorHex/>
<name>
<dutch>antraciet/zwart</dutch>
</name>
</item>
<item>
<id>2675</id>
<sortOrder>0</sortOrder>
<colorHex/>
<name>
<dutch>ANTRACIETGRIJS</dutch>
</name>
</item>
<item>
<id>2564</id>
<sortOrder>0</sortOrder>
<colorHex/>
<name>
<dutch>ZWARTø</dutch>
</name>
</item>
</values>
</options>
</xml>[/quote:6t0ljm84] |
read xml file | Fixed bug when saving nested childs:
Full source code and EXE:
[url:1f4nq13l]https://github.com/FiveTechSoft/FWH_tools/blob/master/pim.zip[/url:1f4nq13l] |
readbitmap usado directamente en twbrowse colapsa el sistema | Amigos necesito mostrar fotos en un browse
le paso como parametro para que dibuje las fotos
oLbx:bLine:={ || { readbitmap(0,"foto.bmp"}}
funciona ok
pero despues de salir y entrar a esta opcion unas 10 veces
la decima vez ya no muestra las fotos
entiendo que con el objeto bitmap se tiene un objeto al que
puedo destruitr con obmp:end() y se supone q libero el manejador
y po rconsiguiente el recurso
pero en este caso com hago por que supongo q mi error es que
no estoy liberando recursos
Gracias por la ayuda |
readbitmap usado directamente en twbrowse colapsa el sistema | Vladimir,
Prueba así:
[code:2dw1ilhe]
static hBitmap
...
oLbx:bLine:={ || If( hBitmap != nil, ( DeleteObject( hBitmap ), hBitmap := nil ),) { hBitmap := readbitmap( 0, "foto.bmp" ) }}
[/code:2dw1ilhe] |
readbitmap usado directamente en twbrowse colapsa el sistema | muchas gracias funciona perfecto |
reader magnetic card | how can I read number from magnetic card ? |
reader magnetic card | Usually magnetic card readers send the data readed to the keyboard buffer. |
reader magnetic card | Yes..Biel is rigthThe reader can be configured to send data in txt format, or a number, depending on the type of card you are going to read.From Chile Adolfo |
reading available fonts on system | Hello,
Is it possible to check what fonts are available on a system. I want to put all fonts in an array, so the user can choose which font to use for printing some data.
I am looking for some function like "aFonts := ReadFonts()" |
reading available fonts on system | [code=fw:1bd9tdh3]<div class="fw" id="{CB}" style="font-family: monospace;">ChooseFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:1bd9tdh3]
EMG |
reading available fonts on system | René,
I am implementing ChooseFont() using Cocoa's NSFontPanel:
[url:3nlfssr4]https://stackoverflow.com/questions/1415716/using-nsfontpanel-in-cocoa[/url:3nlfssr4] |
reading available fonts on system | Ops, sorry. Wrong forum.
EMG |
reading available fonts on system | First try:
[code=fw:355ei2p4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveMac.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: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> ChooseFont<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><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <fivemac.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> CHOOSEFONT <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> NSFontManager * fontManager = <span style="color: #000000;">[</span> NSFontManager sharedFontManager <span style="color: #000000;">]</span>;<br /> NSFontPanel * fontPanel = <span style="color: #000000;">[</span> fontManager fontPanel:<span style="color: #000000;">YES</span> <span style="color: #000000;">]</span>;<br /><br /> <span style="color: #000000;">[</span> fontPanel makeKeyAndOrderFront: <span style="color: #000000;">fontPanel</span> <span style="color: #000000;">]</span>;<br /> <span style="color: #B900B9;">// [ NSApp runModalForWindow: fontPanel ];</span><br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:355ei2p4] |
reading available fonts on system | More...
[code=fw:15r3dbuk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveMac.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: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> ChooseFont<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><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <fivemac.h><br /><br />@<span style="color: #00C800;">interface</span> FontPanelController : <span style="color: #000000;">NSWindowController</span> <NSWindowDelegate><br /><span style="color: #000000;">{</span><br /><span style="color: #000000;">}</span><br />-<span style="color: #000000;">(</span> void <span style="color: #000000;">)</span> changeFont: <span style="color: #000000;"><span style="color: #000000;">(</span></span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">)</span> sender;<br />-<span style="color: #000000;">(</span> void <span style="color: #000000;">)</span> windowWillClose: <span style="color: #000000;"><span style="color: #000000;">(</span></span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">)</span> sender;<br />@end<br /><br />@implementation FontPanelController<br />-<span style="color: #000000;">(</span> void <span style="color: #000000;">)</span> changeFont: <span style="color: #000000;"><span style="color: #000000;">(</span></span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">)</span> sender<br /><span style="color: #000000;">{</span><br /> NSBeep<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />- <span style="color: #000000;">(</span> void <span style="color: #000000;">)</span> windowWillClose: <span style="color: #000000;"><span style="color: #000000;">(</span></span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">)</span> sender<br /><span style="color: #000000;">{</span><br /> NSBeep<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">[</span> NSApp abortModal <span style="color: #000000;">]</span>;<br /> <span style="color: #B900B9;">// hb_retc( [ [ sender font ].fontName cStringUsingEncoding : NSWindowsCP125$sCP1252StringEncoding ] );</span><br /> hb_retc<span style="color: #000000;">(</span> <span style="color: #ff0000;">"font name"</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br />@end<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> CHOOSEFONT <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> NSFontManager * fontManager = <span style="color: #000000;">[</span> NSFontManager sharedFontManager <span style="color: #000000;">]</span>;<br /> NSFontPanel * fontPanel = <span style="color: #000000;">[</span> fontManager fontPanel:<span style="color: #000000;">YES</span> <span style="color: #000000;">]</span>;<br /><br /> <span style="color: #000000;">[</span> fontPanel setDelegate: <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> FontPanelController alloc <span style="color: #000000;">]</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> fontPanel makeKeyAndOrderFront: <span style="color: #000000;">fontPanel</span> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> NSApp runModalForWindow: <span style="color: #000000;">fontPanel</span> <span style="color: #000000;">]</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:15r3dbuk]
[url:15r3dbuk]https://stackoverflow.com/questions/9234587/name-and-size-from-nsfont[/url:15r3dbuk] |
reading available fonts on system | This function ChooseFont() is working fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
I have implemented it as modal. Its easy to implement it as non modal too.
[code=fw:fue4qwr0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveMac.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: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> ChooseFont<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><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <fivemac.h><br /><br />@<span style="color: #00C800;">interface</span> FontPanelController : <span style="color: #000000;">NSWindowController</span> <NSWindowDelegate><br /><span style="color: #000000;">{</span><br /> @<span style="color: #00C800;">public</span> NSFont * <span style="color: #0000ff;">font</span>;<br /> @<span style="color: #00C800;">public</span> NSFont * newFont;<br /><span style="color: #000000;">}</span><br />-<span style="color: #000000;">(</span> void <span style="color: #000000;">)</span> changeFont: <span style="color: #000000;"><span style="color: #000000;">(</span></span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">)</span> sender;<br />-<span style="color: #000000;">(</span> void <span style="color: #000000;">)</span> windowWillClose: <span style="color: #000000;"><span style="color: #000000;">(</span></span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">)</span> sender;<br />@end<br /><br />@implementation FontPanelController<br />-<span style="color: #000000;">(</span> void <span style="color: #000000;">)</span> changeFont: <span style="color: #000000;"><span style="color: #000000;">(</span></span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">)</span> sender<br /><span style="color: #000000;">{</span><br /> newFont = <span style="color: #000000;">[</span> sender convertFont: <span style="color: #0000ff;">font</span> <span style="color: #000000;">]</span>;<br /><span style="color: #000000;">}</span><br /><br />- <span style="color: #000000;">(</span> void <span style="color: #000000;">)</span> windowWillClose: <span style="color: #000000;"><span style="color: #000000;">(</span></span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">)</span> sender<br /><span style="color: #000000;">{</span><br /> <span style="color: #000000;">[</span> NSApp abortModal <span style="color: #000000;">]</span>;<br /><br /> hb_retc<span style="color: #000000;">(</span> <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> <span style="color: #000000;">(</span> newFont ? newFont: <span style="color: #0000ff;">font</span> <span style="color: #000000;">)</span> displayName <span style="color: #000000;">]</span> cStringUsingEncoding : <span style="color: #000000;">NSWindowsCP1252StringEncoding</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br />@end<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> CHOOSEFONT <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> NSFontManager * fontManager = <span style="color: #000000;">[</span> NSFontManager sharedFontManager <span style="color: #000000;">]</span>;<br /> NSFontPanel * fontPanel = <span style="color: #000000;">[</span> fontManager fontPanel:<span style="color: #000000;">YES</span> <span style="color: #000000;">]</span>;<br /> FontPanelController * fontPanelController = <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> FontPanelController alloc <span style="color: #000000;">]</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">]</span>;<br /><br /> <span style="color: #000000;">[</span> fontPanel setDelegate: <span style="color: #000000;">fontPanelController</span> <span style="color: #000000;">]</span>;<br /> fontPanelController->font = <span style="color: #000000;">[</span> NSFont systemFontOfSize : <span style="color: #000000;">10</span> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> fontPanel makeKeyAndOrderFront: <span style="color: #000000;">fontPanel</span> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> NSApp runModalForWindow: <span style="color: #000000;">fontPanel</span> <span style="color: #000000;">]</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:fue4qwr0] |
reading available fonts on system | René,
I have added this new function ChooseFont() to FiveMac:
[url:2q43s16a]https://bitbucket.org/fivetech/fivemac/commits/b2fecc39e050a61cebc991ff8ecfc3d9d06858f3[/url:2q43s16a]
So simply download the new FiveMac libs and try this example:
[url:2q43s16a]https://bitbucket.org/fivetech/fivemac/src/master/lib/libfive.a[/url:2q43s16a]
[url:2q43s16a]https://bitbucket.org/fivetech/fivemac/src/master/lib/libfivec.a[/url:2q43s16a]
[code=fw:2q43s16a]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveMac.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: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> ChooseFont<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:2q43s16a]
Will users ever notice that we are giving FiveMac for free... ? <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> |
reading available fonts on system | So my suggestion was right, after all. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
EMG |
reading available fonts on system | Dear Enrico,
Always <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
reading available fonts on system | Hello Antonio,
Thank you very much for this implementation, it looks very nice and easy to use.
But what I mean is a function that only puts the names of the fonts in an array. Than I can use that array in a COMBOBOX and use the name of the font in a print routine. Simular as in Word where the user can choose the font from a combobox and than the fontsize from another combobox.
Always thankful for all the help you give. If you need some financial support, please let me know. |
reading available fonts on system | René,
This is function FM_AvailableFonts() that returns an array with all available fonts names:
[code=fw:2s8cqrtu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> FM_AVAILABLEFONTS <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> NSArray * aFonts = <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> NSFontManager sharedFontManager <span style="color: #000000;">]</span> availableFonts <span style="color: #000000;">]</span>;<br /> int i;<br /><br /> hb_reta<span style="color: #000000;">(</span> <span style="color: #000000;">[</span> aFonts <span style="color: #0000ff;">count</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">for</span><span style="color: #000000;">(</span> i = <span style="color: #000000;">0</span>; i < <span style="color: #000000;">[</span> aFonts <span style="color: #0000ff;">count</span> <span style="color: #000000;">]</span>; i++ <span style="color: #000000;">)</span><br /> hb_storvc<span style="color: #000000;">(</span> <span style="color: #000000;">[</span> <span style="color: #000000;">(</span> NSString * <span style="color: #000000;">)</span> <span style="color: #000000;">[</span> aFonts objectAtIndex: <span style="color: #000000;">i</span> <span style="color: #000000;">]</span> cStringUsingEncoding : <span style="color: #000000;">NSWindowsCP1252StringEncoding</span> <span style="color: #000000;">]</span>, <span style="color: #000000;">-1</span>, i + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span></div>[/code:2s8cqrtu]
This is an example of use:
[code=fw:2s8cqrtu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveMac.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, cVar<br /> <span style="color: #00C800;">local</span> aFonts := FM_availableFonts<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Available fonts"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">300</span><br /><br /> @ <span style="color: #000000;">200</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">COMBOBOX</span> cVar <span style="color: #0000ff;">ITEMS</span> aFonts <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2s8cqrtu]
Changes already commited to the FiveMac repository:
[url:2s8cqrtu]https://bitbucket.org/fivetech/fivemac/commits/18a9c6d00359e72c8215121b8660769b0c0b51d1[/url:2s8cqrtu]
FiveMac modified C library already available from here:
[url:2s8cqrtu]https://bitbucket.org/fivetech/fivemac/src/master/lib/libfivec.a[/url:2s8cqrtu] |
reading available fonts on system | [img:3et4byzj]https://bitbucket.org/fivetech/screenshots/downloads/Screen%20Shot%202018-09-12%20at%2009.01.45.png[/img:3et4byzj]
[img:3et4byzj]https://bitbucket.org/fivetech/screenshots/downloads/Screen%20Shot%202018-09-12%20at%2009.01.58.png[/img:3et4byzj] |
reading available fonts on system | Hello Antonio,
Sorry for the late response, I had a small vacation (needed it)
Thank you very much, this is just what I was looking for. |
reading ini file | if I have a INI FILe
and I have on a group
I not Know How many record are on this group
hOW i CAN READ how many lines are on group TESTFILE ?
sample inifile:
[GENERAL]
EXETITLE="GENERAL TEST"
[TESTFILE]
1="UNO.TXT"
2="DUE.TXT"
3="TRE.TXT"
4="QUATTRO.TXT" |
reading ini file | Silvio,
METHOD LeeIni() CLASS main
local oIni
INI oIni FILE ".\Sysctrl.Ini"
GET cFile1 SECTION "TESTFILE" ENTRY "1" OF oIni DEFAULT "UNO.TXT"
GET cFile2 SECTION "TESTFILE" ENTRY "2" OF oIni DEFAULT "DOS.TXT"
GET cFile3 SECTION "TESTFILE" ENTRY "3" OF oIni DEFAULT "TRES.TXT"
GET cFile4 SECTION "TESTFILE" ENTRY "4" OF oIni DEFAULT "CUATRO.TXT"
ENDINI
msginfo( cFile1 )
RETURN ( nil )
saludos |
reading ini file | Silvio,
You can count section-entrys with opening the INI as a text-file
[code=fw:1kjz6pp8]<div class="fw" id="{CB}" style="font-family: monospace;"><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> oFile := TTxtFile<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Silvio.ini"</span> <span style="color: #000000;">)</span>, n<br /><br />nLEN := oFile:<span style="color: #000000;">RecCount</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br />oFile:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />nCOUNT := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">FOR</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nLEN<br /> <span style="color: #B900B9;">// Scan, until You reach the needed section</span><br /> <span style="color: #B900B9;">//-------------------------------------------------</span><br /> <span style="color: #00C800;">IF</span> ALLTRIM<span style="color: #000000;">(</span>oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">"[TESTFILE]"</span><br /> <span style="color: #B900B9;">// Start the counter with the next line after the entry</span><br /> <span style="color: #B900B9;">// ----------------------------------------------------------- </span><br /> oFile:<span style="color: #000000;">Skip</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// Loop the section until reach a empty line or next section</span><br /> <span style="color: #B900B9;">//-------------------------------------------------------------------</span><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> .T.<br /> <span style="color: #B900B9;">// Exit on empty line or next section</span><br /> <span style="color: #B900B9;">// -------------------------------------------</span><br /> <span style="color: #00C800;">IF</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">" "</span> .or. ;<br /> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>ALLTRIM<span style="color: #000000;">(</span>oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">"["</span><br /> EXIT<br /> <span style="color: #00C800;">ELSE</span><br /> <span style="color: #B900B9;">// Count the section line</span><br /> <span style="color: #B900B9;">// --------------------------</span><br /> nCOUNT++<br /> <span style="color: #00C800;">ENDIF</span><br /> oFile:<span style="color: #000000;">Skip</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDDO</span><br /> EXIT<br /> <span style="color: #00C800;">ENDIF</span><br /> oFile:<span style="color: #000000;">Skip</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">NEXT</span><br />oFile:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />MsgAlert<span style="color: #000000;">(</span> nCount, <span style="color: #ff0000;">"Section entrys in [TESTFILE]"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span><br /> </div>[/code:1kjz6pp8]
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
reading ini file | [code=fw:2vwk4vap]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> GETPVPROFSECTION<span style="color: #000000;">(</span> cSection, cIniFile <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> cKeys := STRTRAN<span style="color: #000000;">(</span> GETPVPROFSTRING<span style="color: #000000;">(</span> cSection, , <span style="color: #ff0000;">""</span>, cIniFile <span style="color: #000000;">)</span>, CHR<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, CRLF <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> aKeys := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">LOCAL</span> i<br /><br /> <span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> MLCOUNT<span style="color: #000000;">(</span> cKeys <span style="color: #000000;">)</span><br /> AADD<span style="color: #000000;">(</span> aKeys, RTRIM<span style="color: #000000;">(</span> MEMOLINE<span style="color: #000000;">(</span> cKeys, , i <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /> <span style="color: #00C800;">RETURN</span> aKeys</div>[/code:2vwk4vap]
EMG |
reading ini file | thanks Emg and Uwe |
reading ini file | Sorry I try this :
function Main()
local oBar
lOCAL cIniFile :="testfile.ini"
cKeys := STRTRAN( GETPVPROFSTRING( "Areas", , "", cIniFile ), CHR( 0 ), CRLF )
? cKeys
aAreas:=GETPVPROFSECTION("Areas", cIniFile )
return nil
it not run ok
it me return a value 0 |
reading ini file | [quote="Silvio":3gahrk81]lOCAL cIniFile :="testfile.ini"[/quote:3gahrk81]
[code=fw:3gahrk81]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">lOCAL</span> cIniFile :=<span style="color: #ff0000;">".<span style="color: #000000;">\t</span>estfile.ini"</span></div>[/code:3gahrk81]
EMG |
reading ini file | ooppss... |
reading ini file | Now run but I need also the record of each lines
function Main()
lOCAL cIniFile :=".\testfile.rrr"
Local nAreas := STRTRAN( GETPVPROFSTRING( "Areas", , "", cIniFile ), CHR( 0 ), CRLF ) // return 3
Local aAreas :=GETPVPROFSECTION( "Areas", cIniFile )
I want save on each aAreas[nArea] the caption |
reading ini file | Silvio,
you can try this to get the entry and its value
[code=fw:3mufwwxo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> MLCOUNT<span style="color: #000000;">(</span> cKeys <span style="color: #000000;">)</span><br /> AADD<span style="color: #000000;">(</span> aKeys, RTRIM<span style="color: #000000;">(</span> MEMOLINE<span style="color: #000000;">(</span> cKeys, , i <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> aEntry := StrToken <span style="color: #000000;">(</span>aKeys<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span>,<span style="color: #000000;">1</span>,<span style="color: #ff0000;">"="</span><span style="color: #000000;">)</span><br /> aValue := StrToken <span style="color: #000000;">(</span>aKeys<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span>,<span style="color: #000000;">2</span>,<span style="color: #ff0000;">"="</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">NEXT</span></div>[/code:3mufwwxo] |
reading ini file | [quote="Silvio":ktjx5m6b]Now run but I need also the record of each lines
function Main()
lOCAL cIniFile :=".\testfile.rrr"
Local nAreas := STRTRAN( GETPVPROFSTRING( "Areas", , "", cIniFile ), CHR( 0 ), CRLF ) // return 3
Local aAreas :=GETPVPROFSECTION( "Areas", cIniFile )
I want save on each aAreas[nArea] the caption[/quote:ktjx5m6b]
[code=fw:ktjx5m6b]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Local</span> aValues := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /><span style="color: #00C800;">Local</span> i<br /><br /><span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nAreas<br /> AADD<span style="color: #000000;">(</span> aValues, GETPVPROFSTRING<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Areas"</span>, aAreas<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span>, <span style="color: #ff0000;">""</span>, cIniFile <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">NEXT</span></div>[/code:ktjx5m6b]
EMG |
reading ini file | thanks enrico but perhaps I made some errors
firt I must found the total of Lines
I made this :
[code=fw:2zvhfdfq]<div class="fw" id="{CB}" style="font-family: monospace;"><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> oBar<br /> <span style="color: #00C800;">lOCAL</span> cIniFile :=<span style="color: #ff0000;">".<span style="color: #000000;">\r</span>ecibo.INI"</span><br /> <span style="color: #00C800;">Local</span> nAreas := STRTRAN<span style="color: #000000;">(</span> GETPVPROFSTRING<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Areas"</span>, , <span style="color: #ff0000;">""</span>, cIniFile <span style="color: #000000;">)</span>, CHR<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, CRLF <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> aAreas := GETPVPROFSECTION<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Areas"</span>, cIniFile <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> aValues := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">Local</span> i<br /><br /> ? nAreas<br /><br /> <span style="color: #B900B9;">// found each string</span><br /> <span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nAreas<br /> AADD<span style="color: #000000;">(</span> aValues, GETPVPROFSTRING<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Areas"</span>, aAreas<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span>, <span style="color: #ff0000;">""</span>, cIniFile <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /> ?aValues<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /> </div>[/code:2zvhfdfq]
the first ? nAreas not give me the total of lines but a message with
1
2
3
while the second part run ok
// found each string of each lines
FOR i = 1 TO nAreas
AADD( aValues, GETPVPROFSTRING( "Areas", aAreas[ i ], "", cIniFile ) )
NEXT
[b:2zvhfdfq]FILE INI RECIBO.INI[/b:2zvhfdfq]
[General]
Title=Recibo
[Areas]
1=.\RECIBO.V01
2=.\RECIBO.V02
3=.\RECIBO.V03 |
reading ini file | [quote="Silvio":mgah0kgu]Local nAreas := STRTRAN( GETPVPROFSTRING( "Areas", , "", cIniFile ), CHR( 0 ), CRLF )
Local aAreas := GETPVPROFSECTION( "Areas", cIniFile )[/quote:mgah0kgu]
[code=fw:mgah0kgu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Local</span> aAreas := GETPVPROFSECTION<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Areas"</span>, cIniFile <span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> nAreas := LEN<span style="color: #000000;">(</span> aAreas <span style="color: #000000;">)</span></div>[/code:mgah0kgu]
EMG |
reading ini file | thanks Emg
Now run ok
then I made this
DEFINE WINDOW oWnd TITLE "TEST window GENERATION" MDI HSCROLL
For i=1 to Len( aFileArea)
cTitleArea :=GetPvProfString("General", "Title","", aFileArea[i])
nWidthArea := VAL(GetPvProfString("General", "Width","", aFileArea[i]))
nHeightArea := VAL(GetPvProfString("General", "Height","", aFileArea[i]))
GenChild( cTitleArea,nWidthArea,nHeightArea)
NEXT
ACTIVATE WINDOW oWnd MAXIMIZED
function GenChild( cTitle,nWidth,nHeight)
local oWndChild
DEFINE WINDOW oWndChild OF oWnd MDICHILD FROM 0,0 TO nHeight/2.5,180 COLOR "N/W" TITLE cTitle
ACTIVATE WINDOW oWndChild
return nil
the procedure puts the windows one above the other,
and I can not understand where are the windows,
how can I do to put the first window then the second on the order and vertical ? |
realizar una busqueda por contiene | Pues eso se me plantea realizar una busqueda incremental , pero por "contiene" .
Me explico mejor :
Seria algo como un filtro " set filter to cBuscar $ field->descrip " .
Existe otra manera de realizar esto ?
Alguien tiene algo que implemente este tipo de busqueda incremental ?
Se agradece un ejemplo de codigo que realice algo similar ....
Gracias Anticipadas . |
realizar una suma en Mysql | Hola amigos del forum.
Estoy tratando de hacer una consulta donde sumo varias columnas, para obtener un resultado asi:
SUM(pagos.INDUSTRIA+pagos.AVISOS+pagos.BOMBERO+pagos.MORA+pagos.AUTORETEN) AS impuestos
Resulta en las columnas que no tengo valores no realiza las operacion, pero cuando todas las columnas tienen valores, si realiza la operacion.
Gracias por la atención prestada |
realizar una suma en Mysql | Comprueba previamente que no sean null y si lo son asigna 0...
La funcion es if() y funciona exactamente como la de Harbour.
No lo voy a hacer todos pero mira...
SUM( [size=150:36777kdx]if( pagos.INDUSTRIA is null, 0, pagos.INDUSTRIA )[/size:36777kdx] +pagos.AVISOS+pagos.BOMBERO+pagos.MORA+pagos.AUTORETEN) AS impuestos |
realizar una suma en Mysql | Gracias por contestar rapido.
así fue la solución:
IFNULL(SUM(pagos.INDUSTRIA),0)+IFNULL(SUM(pagos.AVISOS),0)+ IFNULL(SUM(pagos.BOMBERO),0)+IFNULL(SUM(pagos.MORA),0)+ IFNULL(SUM(pagos.AUTORETEN),0) AS TOTALPAGADO
Gracias |
realizar una suma en Mysql | Mas sencillo y directo usando funcion propia de MYSQL/MARIADB y mas rapida.
select sum(coalesce(pagos.INDUSTRIA,0))...... |
realizar una suma en Mysql | Both MySQL and MariaDB support both IFNULL( e1, e2 ) and COALESCE( e1, e2, e3, ..., eN ).
COALESCE(...) is an ANSI SQL function and works the same way with many servers (with a few exceptions like MSAcess ).
IFNULL() supports only 2 arguments, whereas COALESCE() supports multiple arguments.
IFNULL() is limited to MySQl/MariaDB and not available with many other SQL servers. For this reason, many programmers who program for different SQL servers habitually use COALESCE(). Programmers who program for MySql/MariaDB only use IFNULL() mostly. |
realizar una suma en Mysql | Mr Rao y Adolfo
Gracias por esa aclaración. |
rebar sample crashes | Hi All,
i wanted to study the class tPanel and tried to build the FWH sample 'rebars.exe'.
But the exe file crashes at start withe the following log:[code=fw:2l3u1d1s]<div class="fw" id="{CB}" style="font-family: monospace;"> Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span> <span style="color: #00C800;">Class</span>: <span style="color: #ff0000;">'NIL'</span> has no exported <span style="color: #00C800;">method</span>: <span style="color: #000000;">NCOUNT</span><br /> Args:<br /> <span style="color: #000000;">[</span> <span style="color: #000000;">1</span><span style="color: #000000;">]</span> = U <br /><br />Stack Calls<br />===========<br /> Called <span style="color: #0000ff;">from</span>: => NCOUNT<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>TWINDOW:<span style="color: #000000;">TWINDOW</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => TPANEL:<span style="color: #000000;">SETBRUSH</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\TPanel.PRG => TPANEL:<span style="color: #00C800;">NEW</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">rebars</span>.prg => MAIN<span style="color: #000000;">(</span><span style="color: #000000;">15</span><span style="color: #000000;">)</span><br /> </div>[/code:2l3u1d1s]
What could be wrong there?
Thanks and regards,
Detlef |
rebar sample crashes | Detlef,
That error has been fixed in FWH 9.02 (it is listed in the published whatsnew).
You can fix it this way:
1) Class TPanel line 53:
[code=fw:1ugobeca]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">Create</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">AddControl</span><span style="color: #000000;">(</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oBrush</span> != <span style="color: #00C800;">nil</span><br /> ::<span style="color: #000000;">SetBrush</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oBrush</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span> <br /> <span style="color: #00C800;">else</span><br /> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">DefControl</span><span style="color: #000000;">(</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> </div>[/code:1ugobeca]
2) Class TFolder line 193, add this new line:
[code=fw:1ugobeca]<div class="fw" id="{CB}" style="font-family: monospace;"> ::<span style="color: #000000;">lTransparent</span> = .F. <br /> </div>[/code:1ugobeca] |
rebuild and found error fwh 8.04 & xHb.com | Dear Antonio,
I rebuild 8.04 with xHb.com and recompile my program. I've found this following error and I cannot found this function in any file (in \source )
xLINK: error: Unresolved external symbol '_HB_FUN_CHMHELPTOPIC'.
xLINK: error: Unresolved external symbol '_HB_FUN_CHMHELPINDEX'.
xLINK: error: Unresolved external symbol '_HB_FUN_CHMHELPPOPUP'.
Regards,
Dutch |
rebuild and found error fwh 8.04 & xHb.com | Dutch,
There is a new PRG file that you have to add to the library:
fwh\source\winapi\helpchm.prg |
rebuild and found error fwh 8.04 & xHb.com | Thanks Antonio,
It's work now. I find in \classes and \function but miss \winapi folder.
Thanks&Regards,
Dutch |
rebuild and found error fwh 8.04 & xHb.com | Antonio,
After adding Helpchm.prg I am getting the following messages:
[code:sm9bgtd5]
Conversion from "void *" 'to unsigned long' is indefined.
Unresolved external symbol: HB_FUN__CLSACTIVE.
[/code:sm9bgtd5]
I am using xharbour (xBuider Pro - Nov 07) and FWH 8.04
George |
rebuild and found error fwh 8.04 & xHb.com | George,
Please copy here the complete error message, thanks |
rebuild and found error fwh 8.04 & xHb.com | Antonio, this is the message that I am getting from xBuilder Pro Nov_07
[code:ff6xjh7i]
Source File
C:\\_BSA_FORMS\\helpchm.prg[/code:ff6xjh7i] |
rebuild and found error fwh 8.04 & xHb.com | Antonio here is the complete message:
helpchm.prg Line 235 Warning: Conversion from 'void *' to 'unsigned long' is undefined
Xlink Error: Unresolved external symbol 'HB_FUN__CLSACTIVE'
Error couldn't build.
I am using FWH 8.04 downloaded today and xHarbour Builder Pro Nov_07
Note: This program compile without problem using FWH 8.03 and xHarbour Builder
Regards,
George |
rebuild and found error fwh 8.04 & xHb.com | George,
You need an upgraded version of xHarbour builder (xHB commercial) |
rebuild and found error fwh 8.04 & xHb.com | I tried to compile testxbrw.prg and I got error:
Compiling...
xHarbour Compiler build 1.0.0 (SimpLex)
Copyright 1999-2007, <!-- 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 -->
Compiling 'testxbrw.prg' and generating preprocessed output to 'testxbrw.ppo'...
Lines 812, Functions/Procedures 24
Generating C source output to 'testxbrw.c'...
Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
testxbrw.c:
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN___CLSACTIVE' referenced from C:\FWH\LIB\FIVE
HX.LIB|XBROWSE
* There are errors
I'm using xHarbour 1.0.0 |
rebuild and found error fwh 8.04 & xHb.com | Antonio,
I have xHarbour Comercial last version (November 2007). I did the upgrade three weeks ago together with the FWH 8.03 upgrade.
Regards,
George |
rebuild and found error fwh 8.04 & xHb.com | >
Error: Unresolved external '_HB_FUN___CLSACTIVE' referenced from C:\FWH\LIB\FIVE
HX.LIB|XBROWSE
* There are errors
I'm using xHarbour 1.0.0
>
I too confirm that with xHarbour 1.0.0 we get this Unresolved External error. We need later version of xHarbour.
With latest xHarbour build provided by FWH, this problem is not there. |
rebuild and found error fwh 8.04 & xHb.com | [quote="nageswaragunupudi":1r0sck69]>
With latest xHarbour build provided by FWH, this problem is not there.[/quote:1r0sck69]
My SQL lib (mediator from <!-- w --><a class="postlink" href="http://www.otc.pl">www.otc.pl</a><!-- w -->) doesn't work with latest xHarbour.
Is this posible to fix this error with my version of xHarbour?
R. |
rebuild and found error fwh 8.04 & xHb.com | Antonio,
November 2007 is the latest commercial version of xHarbour. Anything beyond that is considered betas for testing purposes only, and not exactly stable.
Tim |
rebuild and found error fwh 8.04 & xHb.com | As a temporary workaround please define this function in your main app:
function __ClsActive() ; return nil |
rebuild and found error fwh 8.04 & xHb.com | Mr Robert Frank
[quote="Robert Frank":7zzecics][quote="nageswaragunupudi":7zzecics]>
With latest xHarbour build provided by FWH, this problem is not there.[/quote:7zzecics]
My SQL lib (mediator from <!-- w --><a class="postlink" href="http://www.otc.pl">www.otc.pl</a><!-- w -->) doesn't work with latest xHarbour.
Is this posible to fix this error with my version of xHarbour?
R.[/quote:7zzecics]
If you are using xharbour 1.0.0, compile xbrowse.prg also with your version of xharbour and link it along with your application. You will not get unresolved external. I have tested this and it is working fine. |
rebuild and found error fwh 8.04 & xHb.com | With the latest xhb demo, I have added xbrowse.prg and helpchm.prg to the project and the programs are working fine.
For xhb, I think the libray can be rebuilt by replacing xborwse.obj with recompled xbrowse.obj and adding helpchm.prg to the library |
rebuild and found error fwh 8.04 & xHb.com | Antonio
I wonder why helpchm.prg is not in the standard fivewin library <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> , i do not like rebuilding the library (might miss programs or functions)
Richard |
rebuild and found error fwh 8.04 & xHb.com | [quote="Richard Chidiak":1k5v0wjp]Antonio
I wonder why helpchm.prg is not in the standard fivewin library <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> , i do not like rebuilding the library (might miss programs or functions)
Richard[/quote:1k5v0wjp]
It is a part of Standard Five win library for harbour and xharbour. |
rebuild and found error fwh 8.04 & xHb.com | Richard,
Our mistake, sorry. We are uploading it again.
It will be available in just few minutes, thanks |
rebuild and found error fwh 8.04 & xHb.com | Antonio
I have just downloaded, still not in the library
Richard |
rebuild and found error fwh 8.04 & xHb.com | I found another strange problem with my application.
With new version of FWH i get GPF error when i do
oWnd:End().
When I use 8.03 application works correctly.
Any suggestion?
R. |
rebuild and found error fwh 8.04 & xHb.com | Mr Robert
So far I have not faced it in my test applications. But one of my main applications is invoking windows debugger on some machines ( not all ). This is enough to scare the users. I dont know what could be the reason.
Are you getting GPF everytime? Or occassionally ?
( I am using bcc55 and latest xharbour ) |
rebuild and found error fwh 8.04 & xHb.com | [quote="nageswaragunupudi":3ix73qeh]Mr Robert
Are you getting GPF everytime? Or occassionally ?
( I am using bcc55 and latest xharbour )[/quote:3ix73qeh]
Mr Nageswaragunupudi
Everytime on every computer. I guess its becouse I use xHarbour 1.0.0
R. |
rebuild and found error fwh 8.04 & xHb.com | Where I can find source of xHarbour 1.1.0 ?
Producers of my SQL driver ask me about it. Maybe they'll make new version for me if I'll get they source of xHarbour which is used in FWH8.04 |
rebuild and found error fwh 8.04 & xHb.com | Robert
instead of ownd:end() , try ownd:PostMsg(WM_CLOSE)
HTH
Richard |
rebuild and found error fwh 8.04 & xHb.com | [quote="Richard Chidiak":1r2j0ko4]Robert
instead of ownd:end() , try ownd:PostMsg(WM_CLOSE)
HTH
Richard[/quote:1r2j0ko4]
Thanks Richard for your idea, but I got the same error. |
rebuild and found error fwh 8.04 & xHb.com | Robert
In my case on a main mdi window i also had a gpf calling ownd:end()
This was fixed by replacing with
oWND:PostMsg(WM_CLOSE)
oWND := NIL
Do you have the problem on a main mdi, mdichild or a sdi window ?
HTH
Richard |
rebuild and found error fwh 8.04 & xHb.com | [quote="Richard Chidiak":37bujakm]Robert
Do you have the problem on a main mdi, mdichild or a sdi window ?
Richard[/quote:37bujakm]
Main mdi
oWND:PostMsg(WM_CLOSE) generates GPF |
rebuild and found error fwh 8.04 & xHb.com | After seeing the above posts. I checked again. I am using FWH 8.04 and latest xHarbour ( bcc55 ) provided by FWH. I am not getting any errors on "any" oWnd:End(). ( MDIchild or MDI Main or SDI ). My regular applications are running in the office with the latest version. |
rebuild and found error fwh 8.04 & xHb.com | [quote="nageswaragunupudi":68i0onks]After seeing the above posts. I checked again. I am using FWH 8.04 and latest xHarbour ( bcc55 ) provided by FWH. I am not getting any errors on "any" oWnd:End(). ( MDIchild or MDI Main or SDI ). My regular applications are running in the office with the latest version.[/quote:68i0onks]
Which version do you use?
R. |
rebuild and found error fwh 8.04 & xHb.com | latest xharbour provided along with FWH 8.04 |
rebuild and found error fwh 8.04 & xHb.com | [quote="nageswaragunupudi":u701yspk]latest xharbour provided along with FWH 8.04[/quote:u701yspk]
1.1.0 - I tried to find sources of this version
But I couldn't |
rebuild and found error fwh 8.04 & xHb.com | Robert,
The sources are in xHarbour cvs
Please use the xharbour.exe that we provide with FWH. Other xharbour versions are outdated. |
rebuild and found error fwh 8.04 & xHb.com | Richard,
helpchm.obj module is inside FiveHX.lib
You can use free Elib.exe utility from Andres Reyes to inspect the library and check that helpchm.obj is inside it:
<!-- m --><a class="postlink" href="http://www.hotshare.net/file/49407-777883694d.html">http://www.hotshare.net/file/49407-777883694d.html</a><!-- m -->
[url=http://imageshack.us:2bmbt1gl][img:2bmbt1gl]http://img59.imageshack.us/img59/5367/richardem4.png[/img:2bmbt1gl][/url:2bmbt1gl] |
rebuild and found error fwh 8.04 & xHb.com | Tim,
> November 2007 is the latest commercial version of xHarbour
November 2007 seems very far away from April 2008 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
rebuild and found error fwh 8.04 & xHb.com | [quote="Antonio Linares":2xttw1ic]
The sources are in xHarbour cvs
.[/quote:2xttw1ic]
Can you give me a direct link to this resource?
All what i find is called xharbour-1-0-0-beta1-bin-w32-bcc-5-5.exe
Where I can find 1-1-0?
R. |
rebuild and found error fwh 8.04 & xHb.com | Robert,
cvs.exe -z3 -d:pserver:[email protected]:/cvsroot/xharbour co xharbour > checkoutx.txt |
rebuild and found error fwh 8.04 & xHb.com | [quote="Antonio Linares":37h6zx7v]Robert,
cvs.exe -z3 -d:pserver:[email protected]:/cvsroot/xharbour co xharbour > checkoutx.txt[/quote:37h6zx7v]
I sent it to producer of mediator.
Thank you Antonio |
rebuild and found error fwh 8.04 & xHb.com | Yes, it is a long time.
However, Vista has been out for 16 months and is just now getting its first major update ... maybe ...
There are always interim beta releases for testing but when we want to release a product to clients so we can continue to pay for upgrades, we have to stick with the "stable" release. There may be a new one soon.
Tim |
rebuild and found error fwh 8.04 & xHb.com | Richard,
My mistake: helpchm.obj is not included in FiveHMX.lib
We are working to solve it, thanks! |
rebuild and found error fwh 8.04 & xHb.com | Richard, Tim,
Solved and already emailed the LIB to you, thanks! |
rebuild and found error fwh 8.04 & xHb.com | Antonio,
I downloaded the latest FWH.EXE but the error concerning HELPCHM is still hapening nevertheless I can see HELPCHM in the library FIVEHX.
I'm currently using FWH 8.04 and xHarbour commercial builder (Nov. 2007).
Regards, |
rebuild and found error fwh 8.04 & xHb.com | As an interim solution, I copied HelpChm.prg from \fwh\source\winapi into my app folder and then compiled it and linked it into my app, and my app works fine.
- Roger |
rebuild fivehmx.lib and fivehcm.lib for VC++ 2005 (MSVC 8) | how to rebuild FWH 2006 DEC fivehmx.lib and fivehcm.lib with VC++ 2005 (MSVC <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> and xHarbour
best regards
Dixon Chu |
rebuild fivehmx.lib and fivehcm.lib for VC++ 2005 (MSVC 8) | Dixon,
Why do you need to rebuild it ? |
rebuild fivehmx.lib and fivehcm.lib for VC++ 2005 (MSVC 8) | Dear Antonio Linares
Because our company coding environment is upgrade to VC++ 2005
I want to upgrade FWH 2.4 + Harbour 42.0 + BCC55 to FWH 2006-DEC + xHarbour .99.61 + VC++ 2005 (MSVC <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
I test the FWH samples prg is ok when I use xharbour-0.99.60.bin.w32.msvc6,
But have some problem when using xharbour-0.99.60.bin.w32.msvc8.
so I think maybe I need the FWH LIB for VC++ 2005
That's the reason That I try to rebuild the LIB
Best Regards
Dixon CHU |
rebuild fivehmx.lib and fivehcm.lib for VC++ 2005 (MSVC 8) | Dixon,
Please email me privately, thanks |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.