topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
Another problem with dialog boxes
|
Michel,You can hide the dialogbox instead of ending it:ACTIVATE DIALOG oDlg NOWAIT VALID ( oDlg:Hide(), .T. )Next time you want to use it, don't create it again. Simply do oDlg:Show().Lets see if this helps, if not, we will find another way <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Another problem with dialog boxes
|
Michel,I guess this is what is going on: the word dialog is child of the clock dialog, so when you End() the clock, the word is also ended.Do it this way:DEFINE DIALOG ClkDlg OF oWndMain...DEFINE DIALOG LnDlg OF oWndMainthis way, the word dialog is not a child of the clock dialog
|
Another problem with dialog boxes
|
Antonio,That was indeed the problem.I changed my code and anything is running fine now.Thanks a lot. You've been a great help.What a fantastic product FiveWin is.See you.
|
Another problem with new XbrGetDate - RESOLVED!!!
|
I have this Get
[code=fw:1de2fbf8]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">08</span>,<span style="color: #000000;">144</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> dDataStart <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFolder:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> ;<br /> BITMAP <span style="color: #ff0000;">"c:<span style="color: #000000;">\w</span>ork<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\c</span>alendar.bmp"</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>dDataStart := XbrGetDate<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"Seleziona una data"</span>,<span style="color: #000000;">{</span>^ <span style="color: #000000;">2019</span>/<span style="color: #000000;">06</span>/<span style="color: #000000;">15</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span>^ <span style="color: #000000;">2019</span>/<span style="color: #000000;">09</span>/<span style="color: #000000;">20</span> <span style="color: #000000;">}</span> ,,<span style="color: #000000;">0.6</span> <span style="color: #000000;">)</span>,;<br /> IIF<span style="color: #000000;">(</span> dDataStart=ctod<span style="color: #000000;">(</span><span style="color: #ff0000;">""</span><span style="color: #000000;">)</span> .or. dDataStart=<span style="color: #00C800;">nil</span> ,;<br /> aGet<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">cText</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Selezionare una data"</span><span style="color: #000000;">)</span> ,;<br /> aGet<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">cText</span><span style="color: #000000;">(</span>Convertidata<span style="color: #000000;">(</span>dDataStart<span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> ,;<br /> aGet<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:1de2fbf8]
it run good but Instead of {^ 2019/06/15 }, {^ 2019/09/20 }
I wish insert my dates min and Max ( because I cannot Know them)
I have these date on a ini file :
[code=fw:1de2fbf8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">Local</span> cIniFile := TakeOffExt<span style="color: #000000;">(</span> GetModuleFileName<span style="color: #000000;">(</span> GetInstance<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">".ini"</span><br /> <span style="color: #00C800;">Local</span> dBassa1 := GetPvProfString<span style="color: #000000;">(</span><span style="color: #ff0000;">"Stagioni"</span>, <span style="color: #ff0000;">"BASSA1"</span>,<span style="color: #ff0000;">"17.05."</span>, cIniFile<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> dBassa4 := GetPvProfString<span style="color: #000000;">(</span><span style="color: #ff0000;">"Stagioni"</span>, <span style="color: #ff0000;">"BASSA4"</span>,<span style="color: #ff0000;">"20.09."</span>, cIniFile<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> dStagioneMin:= dBassa1+ltrim<span style="color: #000000;">(</span>str<span style="color: #000000;">(</span><span style="color: #0000ff;">year</span><span style="color: #000000;">(</span>date<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> dStagioneMax:= dBassa4+ltrim<span style="color: #000000;">(</span>str<span style="color: #000000;">(</span><span style="color: #0000ff;">year</span><span style="color: #000000;">(</span>date<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> dDatalimiteMin<br /> <span style="color: #00C800;">Local</span> dDatalimiteMax<br /><br /> dDatalimiteMin := ctod<span style="color: #000000;">(</span>dStagioneMin<span style="color: #000000;">)</span><br /> dDatalimiteMax := ctod<span style="color: #000000;">(</span>dStagioneMax<span style="color: #000000;">)</span><br /> dDataStart:= Convertidata<span style="color: #000000;">(</span>dCheckIn <span style="color: #000000;">)</span></div>[/code:1de2fbf8]
if I made
[code=fw:1de2fbf8]<div class="fw" id="{CB}" style="font-family: monospace;"> <br />@ <span style="color: #000000;">08</span>,<span style="color: #000000;">144</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> dDataStart <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFolder:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> ;<br /> BITMAP <span style="color: #ff0000;">"c:<span style="color: #000000;">\w</span>ork<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\c</span>alendar.bmp"</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>dDataStart := XbrGetDate<span style="color: #000000;">(</span> ,<span style="color: #ff0000;">"Seleziona una data"</span>,dDatalimiteMin, dDatalimiteMax ,,<span style="color: #000000;">0.6</span> <span style="color: #000000;">)</span>,;<br /> IIF<span style="color: #000000;">(</span> dDataStart=ctod<span style="color: #000000;">(</span><span style="color: #ff0000;">""</span><span style="color: #000000;">)</span> .or. dDataStart=<span style="color: #00C800;">nil</span> ,;<br /> aGet<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">cText</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Selezionare una data"</span><span style="color: #000000;">)</span> ,;<br /> aGet<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">cText</span><span style="color: #000000;">(</span>Convertidata<span style="color: #000000;">(</span>dDataStart<span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> ,;<br /> aGet<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:1de2fbf8]
it run but the calendar showed bad as you can see here :
[img:1de2fbf8]https://i.postimg.cc/hjMQFXv5/xx.png[/img:1de2fbf8]
How I can resolve ?
I try to converte my dates with
Local dBassa12 := GetPvProfString("Stagioni", "BASSA1","05/17", cIniFile)
Local dBassa42 := GetPvProfString("Stagioni", "BASSA4","09/20", cIniFile)
dStagioneMin:= "{^ "+ltrim(str(year(date())))+"/"+dBassa12+" }"
dStagioneMax:= "{^ "+ltrim(str(year(date())))+"/"+dBassa42+" }"
dDatalimiteMin := ctod(dStagioneMin)
dDatalimiteMax := ctod(dStagioneMax)
but the calendar make errors
|
Another problem with new XbrGetDate - RESOLVED!!!
|
ahh ok
there is error with [b:2rz9iiog]GetPvProfString [/b:2rz9iiog] command on HArbour not run
|
Another problem with new XbrGetDate - RESOLVED!!!
|
resolved
|
Another test with FW_DbfToArray
|
then the test helped from Uwe on this topic
[url:21hs6bvl]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37464#p223944[/url:21hs6bvl]
I thinked to not delete the records but add a new field TACANCEL to set wich record i can delete on second time
because then must be seen by final user before to delete
so, after saved the records I wanted create an array for only records having oTariffe:TACANCEL=.F.
if I make
[code=fw:21hs6bvl]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">local</span> cFieldList :=<span style="color: #ff0000;">"TATIPO,TAELEMENTO,TADESCELEM,TASERVIZIO,TADESCSERV,TASERVSTRU,TASETTORE,TAGIORNI,TADATEINI,TADATEFIN,TACOSTO,TASCONTO,TALISTINO,TABLOCCATO,TATARIFFA,TATOTALE,TACANCEL"</span><br /><br /> atemp:=oTariffe:<span style="color: #000000;">FW_DbfToArray</span><span style="color: #000000;">(</span> cFieldList, <span style="color: #000000;">{</span> || oTariffe:<span style="color: #000000;">TACANCEL</span>=.F. <span style="color: #000000;">}</span> <span style="color: #000000;">)</span></div>[/code:21hs6bvl]
the procedure not run ok, so on atemp array the procedure insert all records of Tariffe.dbf
then I try the same with the old method
[code=fw:21hs6bvl]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !oTariffe:<span style="color: #000000;">EOF</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> oTariffe:<span style="color: #000000;">TACANCEL</span>=.F.<br /> AaDd<span style="color: #000000;">(</span>atemp, <span style="color: #000000;">{</span> oTariffe:<span style="color: #000000;">TaTipo</span> ,;<br /> oTariffe:<span style="color: #000000;">TaElemento</span> ,;<br /> oTariffe:<span style="color: #000000;">TaDescElem</span> ,;<br /> oTariffe:<span style="color: #000000;">TaServizio</span> ,;<br /> oTariffe:<span style="color: #000000;">TaDescServ</span> ,;<br /> oTariffe:<span style="color: #000000;">TaServStru</span> ,;<br /> oTariffe:<span style="color: #000000;">TaSettore</span> ,;<br /> oTariffe:<span style="color: #000000;">TaGiorni</span> ,;<br /> oTariffe:<span style="color: #000000;">TaDateIni</span> ,;<br /> oTariffe:<span style="color: #000000;">TaDateFin</span> ,;<br /> oTariffe:<span style="color: #000000;">TaCosto</span> ,;<br /> oTariffe:<span style="color: #000000;">TaSconto</span> ,;<br /> oTariffe:<span style="color: #000000;">TaListino</span> ,;<br /> oTariffe:<span style="color: #000000;">TaBloccato</span> ,;<br /> oTariffe:<span style="color: #000000;">TaTariffa</span> ,;<br /> oTariffe:<span style="color: #000000;">TaTotale</span>,oTariffe:<span style="color: #000000;">TACANCEL</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> oTariffe:<span style="color: #000000;">Skip</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDDO</span><br /> oTariffe:<span style="color: #000000;">close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:21hs6bvl]
and [b:21hs6bvl]finally on aTemp is showed the records I wish be showed [/b:21hs6bvl]
[img:21hs6bvl]https://i.postimg.cc/sxmC7R8Z/hh.jpg[/img:21hs6bvl]
but in me there remains the desire to understand why with FW_DbfToArray it didn't work as I wanted it to do
|
Another try for using the FWH debugger - some more questions
|
Hello,
Until now I never had any succes in using the FWH debugger.
This is the MAK-file I use:[code=fw:29b7d9nq]<div class="fw" id="{CB}" style="font-family: monospace;">#Borland make sample, <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> FiveTech Software <span style="color: #000000;">2005</span><span style="color: #000000;">-2009</span><br /><br />HBDIR=c:\software\harbour<br />BCDIR=c:\progra~<span style="color: #000000;">1</span>\borland\bcc7<br />FWDIR=c:\software\fwharb<br /><br />#change these paths as needed<br />.path.OBJ = .\obj<br />.path.PRG = .\<br />.path.CH = $<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\include;$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include<br />.path.C = .\<br />.path.RC = .\<br /><br />#important: <span style="color: #000000;">Use</span> Uppercase <span style="color: #00C800;">for</span> filenames extensions, in the <span style="color: #00C800;">next</span> two rules!<br /><br />PRG = \<br />BEHAGEN1.PRG \<br />BEHAGEN2.PRG \<br />BEHBOEK1.PRG \<br />BEHBOEK2.PRG \<br />BEHDOSS1.PRG \<br />BEHDOSS2.PRG \<br />BEHINTRX.PRG \<br />BEHPAAND.PRG \<br />BEHPARAM.PRG \<br />BEHPRARC.PRG \<br />BEHSOOR1.PRG \<br />BEHSOOR2.PRG \<br />BEHUSER.PRG \<br />DOCWP1.PRG \<br />DOCWP2.PRG \<br />FGEGTL1.PRG \<br />FGEGTL2.PRG \<br />JUDA.PRG \<br />MAKEIND.PRG \<br />RAPAGPRE.PRG \<br />RAPDOSBH.PRG \<br />Z-ERROR1.PRG \<br />Z-RPREV.PRG \<br />Z-WBROWS.PRG<br /><br />C = \<br />BEHAGEN1.C \<br />BEHAGEN2.C \<br />BEHBOEK1.C \<br />BEHBOEK2.C \<br />BEHDOSS1.C \<br />BEHDOSS2.C \<br />BEHINTRX.C \<br />BEHPAAND.C \<br />BEHPARAM.C \<br />BEHPRARC.C \<br />BEHSOOR1.C \<br />BEHSOOR2.C \<br />BEHUSER.C \<br />DOCWP1.C \<br />DOCWP2.C \<br />FGEGTL1.C \<br />FGEGTL2.C \<br />JUDA.C \<br />MAKEIND.C \<br />RAPAGPRE.C \<br />RAPDOSBH.C \<br />Z-ERROR1.C \<br />Z-RPREV.C \<br />Z-WBROWS.C<br /><br />OBJ = $<span style="color: #000000;">(</span>PRGS:.PRG=.\OBJ<span style="color: #000000;">)</span><br />OBJS = $<span style="color: #000000;">(</span>OBJ:.\=.\obj\<span style="color: #000000;">)</span><br /><br />PROJECT : <span style="color: #000000;">JUDA_2</span>.EXE<br /><br />#RES-file wordt door COMPRES.BAT aangemaakt<br />#JUDA_2.EXE : $<span style="color: #000000;">(</span>PRG:.PRG=.OBJ<span style="color: #000000;">)</span> $<span style="color: #000000;">(</span>C:.C=.OBJ<span style="color: #000000;">)</span> JUDA.RES<br />JUDA_2.EXE : $<span style="color: #000000;">(</span>PRG:.PRG=.OBJ<span style="color: #000000;">)</span> $<span style="color: #000000;">(</span>C:.C=.OBJ<span style="color: #000000;">)</span><br /> echo off<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\c0w32.obj + > b32.bc<br /># echo $<span style="color: #000000;">(</span>OBJS<span style="color: #000000;">)</span>, + >> b32.bc<br /> echo OBJ\BEHAGEN1.OBJ + >> b32.bc<br /> echo OBJ\BEHAGEN2.OBJ + >> b32.bc<br /> echo OBJ\BEHBOEK1.OBJ + >> b32.bc<br /> echo OBJ\BEHBOEK2.OBJ + >> b32.bc<br /> echo OBJ\BEHDOSS1.OBJ + >> b32.bc<br /> echo OBJ\BEHDOSS2.OBJ + >> b32.bc<br /> echo OBJ\BEHINTRX.OBJ + >> b32.bc<br /> echo OBJ\BEHPAAND.OBJ + >> b32.bc<br /> echo OBJ\BEHPARAM.OBJ + >> b32.bc<br /> echo OBJ\BEHPRARC.OBJ + >> b32.bc<br /> echo OBJ\BEHSOOR1.OBJ + >> b32.bc<br /> echo OBJ\BEHSOOR2.OBJ + >> b32.bc<br /> echo OBJ\BEHUSER.OBJ + >> b32.bc<br /> echo OBJ\DOCWP1.OBJ + >> b32.bc<br /> echo OBJ\DOCWP2.OBJ + >> b32.bc<br /> echo OBJ\FGEGTL1.OBJ + >> b32.bc<br /> echo OBJ\FGEGTL2.OBJ + >> b32.bc<br /> echo OBJ\JUDA.OBJ + >> b32.bc<br /> echo OBJ\MAKEIND.OBJ + >> b32.bc<br /> echo OBJ\RAPAGPRE.OBJ + >> b32.bc<br /> echo OBJ\RAPDOSBH.OBJ + >> b32.bc<br /> echo OBJ\Z-ERROR1.OBJ + >> b32.bc<br /> echo OBJ\Z-RPREV.OBJ + >> b32.bc<br /> echo OBJ\Z-WBROWS.OBJ, + >> b32.bc<br /> <br /> echo JUDA_2.EXE, + >> b32.bc<br /> echo JUDA_2.MAP, + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\lib\FiveH.lib $<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\lib\FiveHC.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbrtl.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbvm.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\gtgui.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hblang.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbmacro.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbrdd.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddntx.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddcdx.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddfpt.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbsix.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbdebug.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcommon.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbpp.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbwin.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcpage.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbct.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\png.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcplr.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\xhb.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbtip.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbzlib.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbmzip.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbziparc.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\minizip.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbpcre.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\cw32.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\uuid.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\import32.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\ws2_32.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\wininet.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\psdk\odbc32.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\psdk\nddeapi.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\psdk\iphlpapi.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\psdk\msimg32.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\psdk\rasapi32.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\psdk\gdiplus.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\psdk\shell32.lib, >> b32.bc<br /><br /> <span style="color: #00C800;">IF</span> EXIST ..\RES\JUDA.RES echo ..\RES\JUDA.RES >> b32.bc<br /> $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\bin\ilink32 -Gn -aa -Tpe -s @b32.bc <br /><br />.PRG.OBJ:<br /> $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\bin\harbour $< /N /W0 /V /Oobj\ /I$<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\include;$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include<br /> $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\bin\bcc32 -c -tWM -I$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include -oobj\$& obj\$&.c<br /><br />.C.OBJ:<br /> echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp<br /> echo -I$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include;$<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\include >> tmp<br /> $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\bin\bcc32 -oobj\$& @tmp $&.c<br /> del tmp<br /><br />#RES-file wordt door COMPRES.BAT aangemaakt<br />#JUDA.RES : ..\RES\JUDA.RC<br /># $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\bin\brc32.exe -r ..\RES\JUDA.RC<br /> </div>[/code:29b7d9nq]This MAK-file is working just fine.
But can anyone tell me what changes I have to add to activate the FWH debugger?
Thank you very much in advance for any help.
|
Another try for using the FWH debugger - some more questions
|
add /b in this line
[code=fw:1spu936t]<div class="fw" id="{CB}" style="font-family: monospace;">$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\bin\harbour $< /N /b /W0 /V /Oobj\ /I$<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\include;$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include</div>[/code:1spu936t]
|
Another try for using the FWH debugger - some more questions
|
Thank you very much for your help.
|
Another try for using the FWH debugger - some more questions
|
Hello,
As told before, I am able know to use the FWH debugger.
Earlier, I used the debugger of xHarbour Builder, but some parts were not working correctly.
To build in a stop, I put "ALTD()" in my source. The debugger stopped automatically at every ALTD().
In the FWH debugger, ALTD() doesn't seem to work.
What can be used in FWH debugger to stop at position where I want it to stop?
Thanks.
|
Another try for using the FWH debugger - some more questions
|
Dear Michel,
AltD( 1 ) // Enables the debugger. Press F5 to go
MsgInfo( "debugger enabled" )
AltD() // Invokes the debugger
MsgInfo( "debugger invoked" )
|
Another try for using the FWH debugger - some more questions
|
Fantastic, Antonio.
That is the info I needed.
|
Another try for using the FWH debugger - some more questions
|
What is de debugger going to do ? Why use it ?
|
Another try for using the FWH debugger - some more questions
|
Mark,
With a debugger, the source is shown while it is executing. It is a very easy utility to help you find a logical error.
|
AnsiToOem()
|
Buenas!
como sabéis, estoy migrando mi aplicación clipper a Harbour + Fivewin. Se me ha producido el problema de incompatibilidad en los caracteres de Dos y Windows, al trabajar ambas aplicaciones sobre las mismas bases de datos. Mi pregunta es si existe algún SET o algo, que pueda hacer que mi aplicación Fivewin trabaje con cadenas de caracteres Oem siempre, es decir, sin tener que estar continuamente cambiando de formato las cadenas, etc. y así poder tenerlas funcionando ambas a la vez.
Gracias!!!!!
|
AnsiToOem()
|
David,
A nivel de RDD de Harbour no hay ningun SET o parecido (que sepamos), pero a nivel de FWH si usas la Clase TDataBase tienes el dato lOemAnsi que automaticamente hace las conversiones:
oDataBase:lOemAnsi = lOnOff
|
AnsiToOem()
|
Antonio,
Muchas gracias, lo conocía pero me es insuficiente. Intentaré buscar algo a ver si en Harbour doy con algo, sino pues no me queda otra opción que usar la clase tDataBase.
Muchas gracias!
|
AnsiToWide function
|
Antonio,
Is there possible in a new build to use AnsiToWide function ? Previously this function is exists visible - now this don't. Below is sample where I use this useful function. Program source probable must compile with -TP switch. Compile without this switch generates many compilation errors.
Regards
Pawel
Compilation errors:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Compiling 'TESTRUN.prg'...
Lines 58, Functions/Procedures 1
Generating C source output to 'TESTRUN.c'... Done.
TESTRUN.C
TESTRUN.prg(23) : warning C4047: 'function' : 'int ' differs in levels of indirection from 'void *'
TESTRUN.prg(23) : warning C4024: 'CreateProcessW' : different types for formal and actual parameter 5
TESTRUN.prg(23) : warning C4047: 'function' : 'unsigned long ' differs in levels of indirection from 'void *'
TESTRUN.prg(23) : warning C4024: 'CreateProcessW' : different types for formal and actual parameter 6
Link errors (compile with -TP switch):
Creating library TESTRUN.lib and object TESTRUN.exp
TESTRUN.OBJ : error LNK2019: unresolved external symbol "unsigned short * __cdecl AnsiToWide(char *)" (?AnsiToWide@@YAPAGPAD@Z) referenced in function HB_FUN_RUNEXE
TESTRUN.exe : fatal error LNK1120: 1 unresolved externals
[code:3uwlfaf6]
Function TestRun ()
RunExe ('Prog.Exe', 'param1')
Return .T.
#pragma BEGINDUMP
#include <hbapi.h>
#include <hbapirdd.h>
#include <windows.h>
#include <aygshell.h>
LPWSTR AnsiToWide (char *);
HB_FUNC (RUNEXE)
{
PROCESS_INFORMATION pi;
LPSTR lpExe = hb_parc (1);
LPSTR lpCmd = hb_parc (2);
DWORD dwExit;
DWORD dwSleep = 50;
DWORD dwTime = 0;
BOOL bErr = FALSE;
if (!CreateProcess (AnsiToWide (lpExe), AnsiToWide (lpCmd), NULL, NULL, NULL, NULL, NULL, NULL, NULL, &pi))
{
hb_retl (FALSE);
}
else
{
do
{
Sleep (dwSleep);
GetExitCodeProcess (pi.hProcess, &dwExit);
dwTime += dwSleep;
if (dwTime >= (1000 * 60 * 5)) // 5 minutes delay
{
TerminateProcess (pi.hProcess, dwExit);
bErr = TRUE;
break;
}
}
while (dwExit == STILL_ACTIVE);
CloseHandle (pi.hThread);
CloseHandle (pi.hProcess);
if (bErr)
hb_retl (FALSE);
else
hb_retl (TRUE);
}
}
#pragma ENDDUMP
[/code:3uwlfaf6]
|
AnsiToWide function
|
Pawel,
Don't use clarm.exe -TP flag. Here this code works fine:
MsgInfo( WideToAnsi( AnsiToWide( "Hello" ) ) ) // Hello is shown
|
AnsiToWide function
|
Antonio,
This "error" is warning but compilation with -TP don't generates any warning and erros.
Pawel
|
AnsiToWide function
|
Antonio,
This is my library what I use in my program. This use DataReelCe library for HTTP download file. Where I compile it without -Tp switch error log is created. Below a source and sample.
Regards
Pawel
// compilation error
Lib03.C
c:\vce\include\datareelce\strutil.h(134) : error C2061: syntax error : identifier 'gxwchar'
c:\vce\include\datareelce\strutil.h(134) : error C2059: syntax error : ';'
c:\vce\include\datareelce\strutil.h(135) : error C2449: found '{' at file scope (missing function header?)
c:\vce\include\datareelce\strutil.h(151) : error C2059: syntax error : '}'
c:\vce\include\datareelce\strutil.h(161) : error C2054: expected '(' to follow 'inline'
c:\vce\include\datareelce\strutil.h(161) : error C2085: 'gxstrcpy' : not in formal parameter list
c:\vce\include\datareelce\strutil.h(161) : error C2143: syntax error : missing ';' before '{'
c:\vce\include\datareelce\strutil.h(164) : error C2054: expected '(' to follow 'inline'
c:\vce\include\datareelce\strutil.h(164) : error C2085: 'gxstrlen' : not in formal parameter list
c:\vce\include\datareelce\strutil.h(164) : error C2143: syntax error : missing ';' before '{'
c:\vce\include\datareelce\strutil.h(165) : error C2054: expected '(' to follow 'inline'
c:\vce\include\datareelce\strutil.h(165) : error C2085: 'gxstrcat' : not in formal parameter list
c:\vce\include\datareelce\strutil.h(165) : error C2143: syntax error : missing ';' before '{'
c:\vce\include\datareelce\strutil.h(166) : error C2054: expected '(' to follow 'inline'
c:\vce\include\datareelce\strutil.h(166) : error C2085: 'gxstrcmp' : not in formal parameter list
c:\vce\include\datareelce\strutil.h(166) : error C2143: syntax error : missing ';' before '{'
c:\vce\include\datareelce\strutil.h(175) : error C2143: syntax error : missing '{' before '*'
c:\vce\include\datareelce\strutil.h(175) : error C2143: syntax error : missing ')' before '*'
c:\vce\include\datareelce\strutil.h(175) : error C2143: syntax error : missing '{' before '*'
c:\vce\include\datareelce\strutil.h(175) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
c:\vce\include\datareelce\strutil.h(175) : error C2143: syntax error : missing ';' before '*'
c:\vce\include\datareelce\strutil.h(175) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(176) : error C2143: syntax error : missing ')' before '*'
c:\vce\include\datareelce\strutil.h(176) : error C2143: syntax error : missing '{' before '*'
c:\vce\include\datareelce\strutil.h(176) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(177) : error C2143: syntax error : missing '{' before '*'
c:\vce\include\datareelce\strutil.h(177) : error C2143: syntax error : missing ')' before '*'
c:\vce\include\datareelce\strutil.h(177) : error C2143: syntax error : missing '{' before '*'
c:\vce\include\datareelce\strutil.h(177) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
c:\vce\include\datareelce\strutil.h(177) : error C2143: syntax error : missing ';' before '*'
c:\vce\include\datareelce\strutil.h(177) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(178) : error C2143: syntax error : missing ')' before '*'
c:\vce\include\datareelce\strutil.h(178) : error C2143: syntax error : missing '{' before '*'
c:\vce\include\datareelce\strutil.h(178) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
c:\vce\include\datareelce\strutil.h(178) : error C2143: syntax error : missing ';' before '*'
c:\vce\include\datareelce\strutil.h(178) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(185) : error C2146: syntax error : missing ')' before identifier 'st'
c:\vce\include\datareelce\strutil.h(185) : error C2081: 'gxStringType' : name in formal parameter list illegal
c:\vce\include\datareelce\strutil.h(185) : error C2061: syntax error : identifier 'st'
c:\vce\include\datareelce\strutil.h(185) : error C2059: syntax error : ';'
c:\vce\include\datareelce\strutil.h(185) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(190) : error C2146: syntax error : missing ')' before identifier 'st'
c:\vce\include\datareelce\strutil.h(190) : error C2081: 'gxStringType' : name in formal parameter list illegal
c:\vce\include\datareelce\strutil.h(190) : error C2061: syntax error : identifier 'st'
c:\vce\include\datareelce\strutil.h(190) : error C2059: syntax error : ';'
c:\vce\include\datareelce\strutil.h(190) : error C2059: syntax error : ','
c:\vce\include\datareelce\strutil.h(190) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(193) : error C2146: syntax error : missing ')' before identifier 'st'
c:\vce\include\datareelce\strutil.h(193) : error C2081: 'gxStringType' : name in formal parameter list illegal
c:\vce\include\datareelce\strutil.h(193) : error C2061: syntax error : identifier 'st'
c:\vce\include\datareelce\strutil.h(193) : error C2059: syntax error : ';'
c:\vce\include\datareelce\strutil.h(193) : error C2059: syntax error : ','
c:\vce\include\datareelce\strutil.h(194) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(197) : error C2143: syntax error : missing ')' before '='
c:\vce\include\datareelce\strutil.h(197) : error C2072: 'Unicode2ASCII' : initialization of a function
c:\vce\include\datareelce\strutil.h(198) : error C2059: syntax error : 'type'
c:\vce\include\datareelce\strutil.h(198) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(199) : error C2143: syntax error : missing ')' before '='
c:\vce\include\datareelce\strutil.h(199) : error C2072: 'ASCII2Unicode' : initialization of a function
c:\vce\include\datareelce\strutil.h(200) : error C2370: 'wchar_t' : redefinition; different storage class
c:\vce\include\arm\stdlib.h(58) : see declaration of 'wchar_t'
c:\vce\include\datareelce\strutil.h(200) : error C2143: syntax error : missing ';' before '*'
c:\vce\include\datareelce\strutil.h(200) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(201) : error C2143: syntax error : missing ')' before '*'
c:\vce\include\datareelce\strutil.h(201) : error C2143: syntax error : missing '{' before '*'
c:\vce\include\datareelce\strutil.h(202) : error C2059: syntax error : 'type'
c:\vce\include\datareelce\strutil.h(203) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(204) : error C2143: syntax error : missing ')' before '*'
c:\vce\include\datareelce\strutil.h(204) : error C2143: syntax error : missing '{' before '*'
c:\vce\include\datareelce\strutil.h(204) : error C2059: syntax error : 'type'
c:\vce\include\datareelce\strutil.h(205) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(206) : error C2143: syntax error : missing '{' before '*'
c:\vce\include\datareelce\strutil.h(206) : error C2143: syntax error : missing ')' before '='
c:\vce\include\datareelce\strutil.h(206) : error C2072: 'ASCII2gxwchar_t' : initialization of a function
c:\vce\include\datareelce\strutil.h(207) : error C2143: syntax error : missing ';' before '*'
c:\vce\include\datareelce\strutil.h(207) : error C2374: 'nsptr' : redefinition; multiple initialization
c:\vce\include\datareelce\strutil.h(200) : see declaration of 'nsptr'
c:\vce\include\datareelce\strutil.h(207) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(208) : error C2143: syntax error : missing '{' before '*'
c:\vce\include\datareelce\strutil.h(209) : error C2143: syntax error : missing ')' before '='
c:\vce\include\datareelce\strutil.h(209) : error C2072: 'Unicode2gxwchar_t' : initialization of a function
c:\vce\include\datareelce\strutil.h(210) : error C2143: syntax error : missing ';' before '*'
c:\vce\include\datareelce\strutil.h(210) : error C2374: 'nsptr' : redefinition; multiple initialization
c:\vce\include\datareelce\strutil.h(200) : see declaration of 'nsptr'
c:\vce\include\datareelce\strutil.h(210) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(213) : error C2054: expected '(' to follow 'inline'
c:\vce\include\datareelce\strutil.h(213) : error C2085: 'gxLTCHAR' : not in formal parameter list
c:\vce\include\datareelce\strutil.h(213) : error C2143: syntax error : missing ';' before '{'
c:\vce\include\datareelce\strutil.h(217) : error C2054: expected '(' to follow 'inline'
c:\vce\include\datareelce\strutil.h(217) : error C2085: 'gxLTCHAR' : not in formal parameter list
c:\vce\include\datareelce\strutil.h(217) : error C2143: syntax error : missing ';' before '{'
c:\vce\include\datareelce\strutil.h(221) : error C2054: expected '(' to follow 'inline'
c:\vce\include\datareelce\strutil.h(221) : error C2085: 'gxLTCHAR' : not in formal parameter list
c:\vce\include\datareelce\strutil.h(221) : error C2143: syntax error : missing ';' before '{'
c:\vce\include\datareelce\strutil.h(225) : error C2054: expected '(' to follow 'inline'
c:\vce\include\datareelce\strutil.h(225) : error C2085: 'gxLTCHAR' : not in formal parameter list
c:\vce\include\datareelce\strutil.h(225) : error C2143: syntax error : missing ';' before '{'
c:\vce\include\datareelce\strutil.h(229) : error C2054: expected '(' to follow 'inline'
c:\vce\include\datareelce\strutil.h(229) : error C2143: syntax error : missing ')' before '*'
c:\vce\include\datareelce\strutil.h(229) : error C2085: 'gxLTCHAR' : not in formal parameter list
c:\vce\include\datareelce\strutil.h(229) : error C2143: syntax error : missing ';' before '*'
c:\vce\include\datareelce\strutil.h(229) : error C2059: syntax error : ')'
c:\vce\include\datareelce\strutil.h(233) : error C2054: expected '(' to follow 'inline'
c:\vce\include\datareelce\strutil.h(233) : error C2146: syntax error : missing ')' before identifier 'c'
c:\vce\include\datareelce\strutil.h(233) : error C2085: 'gxLTCHAR' : not in formal parameter list
c:\vce\include\datareelce\strutil.h(233) : error C2146: syntax error : missing ',' before identifier 'c'
c:\vce\include\datareelce\strutil.h(233) : error C2059: syntax error : 'type'
c:\vce\include\datareelce\strutil.h(233) : fatal error C1003: error count exceeds 100; stopping compilation
// end error
[code:3rzryx36]
Function Test ()
Local x := 0
Return .T.
#pragma BEGINDUMP
#include <hbapi.h>
#include <hbapirdd.h>
#include <windows.h>
#include <aygshell.h>
#include <gxshttp.h>
#include <gxshttpc.h>
#include <dfileb.h>
#include <gxs_ver.h>
#include <gxscomm.h>
#include <objbase.h>
#include <initguid.h>
#include <connmgr.h>
#include <wininet.h>
#include <tlhelp32.h>
#define MAX_TASKS 256
#define PROCESS_SIZE 128
#define TITLE_SIZE 64
typedef struct _TASK_LIST
{
DWORD cntUsage;
DWORD dwProcessId;
DWORD dwInheritedFromProcessId;
DWORD cntThreads;
DWORD th32ModuleID;
DWORD th32DefaultHeapID;
LONG pcPriClassBase;
BOOL flags;
HWND hwnd;
TCHAR ProcessName[PROCESS_SIZE];
TCHAR WindowTitle[TITLE_SIZE];
}
TASK_LIST, *PTASK_LIST;
LPWSTR AnsiToWide (char *);
dwCount);
DWORD dwCount, DWORD dwTimeout);
DWORD GetTaskListCE (PTASK_LIST pTask, DWORD dwNumTasks);
BOOL KillProcess (PTASK_LIST tlist, BOOL fForce = TRUE);
gxSerialComm dev;
// 2005-11-13 22:09:41
// puste menu
HB_FUNC (EMPTYMENU)
{
SHINITDLGINFO shidi;
HWND hWnd = (HWND) hb_parnl (1);
shidi.dwMask = SHIDIM_FLAGS;
shidi.hDlg = hWnd;
shidi.dwFlags = SHIDIF_EMPTYMENU;
SHInitDialog (&shidi);
}
// 2005-11-28 22:01:01
// opoznienie
HB_FUNC (DELAY)
{
DWORD dwSleep = (DWORD) hb_parnl (1);
Sleep (dwSleep);
}
// 2006-04-10 09:28:51
// informacje o stanie baterii
HB_FUNC (BATTERYLIFE)
{
BOOL iRet;
SYSTEM_POWER_STATUS_EX status;
iRet = GetSystemPowerStatusEx (&status, TRUE);
hb_retnl ((INT) status.BatteryLifePercent);
}
// 2006-04-10 09:29:25
// informacja o ilosci wolnego miejsca
HB_FUNC (DISKFREE)
{
BOOL iRet;
unsigned __int64 i64FreeBytesToCaller, i64TotalBytes, i64FreeBytes;
iRet = GetDiskFreeSpaceEx (NULL,
(PULARGE_INTEGER) &i64FreeBytesToCaller,
(PULARGE_INTEGER) &i64TotalBytes,
(PULARGE_INTEGER) &i64FreeBytes);
hb_retnl ((ULONG) i64FreeBytes);
}
// 2006-04-10 09:29:50
// utworzenie procesu
HB_FUNC (MOBIEXE)
{
PROCESS_INFORMATION pi;
LPSTR lpExe = hb_parc (1);
LPSTR lpCmd = hb_parc (2);
// int iTime = (ISNIL (3) ? 5 : (int) hb_parni (3));
DWORD dwExit;
DWORD dwSleep = 50;
DWORD dwTime = 0;
BOOL bErr = FALSE;
// if (iTime <= 0) iTime = 5;
if (!CreateProcess (AnsiToWide (lpExe), AnsiToWide (lpCmd), NULL, NULL, NULL, NULL, NULL, NULL, NULL, &pi))
{
hb_retl (FALSE);
}
else
{
do
{
Sleep (dwSleep);
GetExitCodeProcess (pi.hProcess, &dwExit);
dwTime += dwSleep;
if (dwTime >= (1000 * 60 * 5)) // 5 minut
{
TerminateProcess (pi.hProcess, dwExit);
bErr = TRUE;
break;
}
}
while (dwExit == STILL_ACTIVE);
CloseHandle (pi.hThread);
CloseHandle (pi.hProcess);
if (bErr)
hb_retl (FALSE);
else
hb_retl (TRUE);
}
}
// 2006-04-10 09:30:02
// dlugosc pola
HB_FUNC (FIELDSIZE)
{
USHORT uiField;
LPFIELD pField;
AREAP pArea;
uiField = hb_parni (1);
pArea = (AREAP) hb_rddGetCurrentWorkAreaPointer ();
pField = pArea->lpFields + uiField - 1;
hb_retni (pField->uiLen);
}
// 2006-04-10 09:30:09
// dlugosc pola
HB_FUNC (FIELDDECI)
{
USHORT uiField;
LPFIELD pField;
AREAP pArea;
uiField = hb_parni (1);
pArea = (AREAP) hb_rddGetCurrentWorkAreaPointer ();
pField = pArea->lpFields + uiField - 1;
hb_retni (pField->uiDec);
}
// 2006-04-18 09:29:27
// pobranie pliku z serwera HTTP
HB_FUNC (HTTPDOWNLOAD)
{
const char *URL = hb_parc (1);
gxsHTTPClient client;
gxsURL url;
gxsURLInfo u;
if (!url.ParseURL (URL, u)) hb_retl (FALSE);
gxString sbuf (u.dir);
if (u.file == "?")
{
while (sbuf.DeleteBeforeIncluding ("/"));
u.file = sbuf;
u.dir.DeleteAfterIncluding (sbuf.c_str ());
}
if (!u.file) hb_retl (FALSE);
DiskFileB outfile (u.file.c_str (), DiskFileB::df_WRITEONLY, DiskFileB::df_CREATE);
if (!outfile) hb_retl (FALSE);
gxsHTTPHeader hdr;
if (client.RequestHeader (u, hdr) != 0) hb_retl (FALSE);
if (client.RequestFile (u, hdr, outfile.df_FileStream ()) != 0) hb_retl (FALSE);
client.Flush ();
outfile.df_Close ();
hb_retl (TRUE);
}
// 2006-04-18 09:29:32
// wywolanie polaczenia internetowego
HB_FUNC (GPRSCONNECTION)
{
// int iRet = ISNIL (1) ? 6 : hb_parni (1);
HANDLE phWebConnection = NULL;
DWORD pdwStatus = 0;
ConnMgrConnectionStatus (phWebConnection, &pdwStatus);
if (pdwStatus == CONNMGR_STATUS_CONNECTED)
{
hb_retl (TRUE);
}
else
{
CONNMGR_CONNECTIONINFO sConInfo;
memset (&sConInfo,0, sizeof (CONNMGR_CONNECTIONINFO));
sConInfo.cbSize = sizeof (CONNMGR_CONNECTIONINFO);
sConInfo.dwParams = CONNMGR_PARAM_GUIDDESTNET;
sConInfo.dwPriority = CONNMGR_PRIORITY_USERINTERACTIVE;
sConInfo.dwFlags = CONNMGR_FLAG_PROXY_HTTP;
sConInfo.bExclusive = FALSE;
sConInfo.bDisabled = FALSE;
sConInfo.guidDestNet = IID_DestNetInternet;
if (ConnMgrEstablishConnection (&sConInfo, &phWebConnection) == S_OK)
{
for (unsigned int k = 0; k < 8; k ++)
{
ConnMgrConnectionStatus(phWebConnection,&pdwStatus);
if (pdwStatus == CONNMGR_STATUS_CONNECTED)
{
hb_retl (TRUE);
}
else
{
if (pdwStatus == CONNMGR_STATUS_CONNECTIONCANCELED || pdwStatus == CONNMGR_STATUS_WAITINGCONNECTIONABORT)
{
hb_retl (FALSE);
}
Sleep (4000);
ConnMgrConnectionStatus (phWebConnection, &pdwStatus);
if (pdwStatus == CONNMGR_STATUS_WAITINGCONNECTION)
{}
if (pdwStatus == CONNMGR_STATUS_CONNECTIONCANCELED || pdwStatus == CONNMGR_STATUS_WAITINGCONNECTIONABORT)
{
hb_retl (FALSE);
}
}
}
hb_retl (FALSE);
}
else
{
hb_retl (FALSE);
}
}
}
// 2006-05-11 20:29:54
HB_FUNC (MOBITASK)
{
DWORD i = 0, j = 0, k = 0;
TASK_LIST tlist[MAX_TASKS];
DWORD numTasks;
BOOL bRet = FALSE;
k = GetCurrentProcessId ();
memset (&tlist, 0, sizeof (TASK_LIST) * MAX_TASKS);
numTasks = GetTaskListCE (tlist, MAX_TASKS);
for (i = 0; i < numTasks; i ++)
{
if (k != tlist[i].dwProcessId && (_tcscmp (_tcsupr (tlist[i].ProcessName), TEXT ("MOBI.EXE")) == 0 || _tcscmp (_tcsupr (tlist[i].ProcessName), TEXT ("MOBISYNC.EXE")) == 0))
{
KillProcess (&tlist[i]);
bRet = TRUE;
}
}
hb_retl (bRet);
}
// 2006-05-11 20:02:13
DWORD GetTaskListCE (PTASK_LIST pTask, DWORD dwNumTasks)
{
HINSTANCE hProcessSnap = NULL;
PROCESSENTRY32 pe32 = {0};
DWORD dwTaskCount = 0;
if (dwNumTasks == 0) return 0;
hProcessSnap = (HINSTANCE) CreateToolhelp32Snapshot (TH32CS_SNAPPROCESS, 0);
if (hProcessSnap == (HANDLE) -1) return 0;
dwTaskCount = 0;
pe32.dwSize = sizeof (PROCESSENTRY32);
if (Process32First (hProcessSnap, &pe32))
{
do
{
LPTSTR pCurChar;
if (_tcsstr (pe32.szExeFile, L"\\"))
pCurChar = _tcsrchr (pe32.szExeFile, '\\');
else
pCurChar = pe32.szExeFile;
lstrcpy (pTask->ProcessName, pCurChar);
pTask->flags = 0;
pTask->dwProcessId = pe32.th32ProcessID;
pTask->cntThreads = pe32.cntThreads;
pTask->cntUsage = pe32.cntUsage;
pTask->dwInheritedFromProcessId = pe32.th32ParentProcessID;
pTask->th32ModuleID = pe32.th32ModuleID;
++ dwTaskCount;
++ pTask;
}
while (dwTaskCount < dwNumTasks && Process32Next (hProcessSnap, &pe32));
}
else dwTaskCount = 0;
CloseHandle (hProcessSnap);
CloseToolhelp32Snapshot (hProcessSnap);
return dwTaskCount;
}
// 2006-05-11 20:02:10
BOOL KillProcess (PTASK_LIST tlist, BOOL fForce)
{
HANDLE hProcess;
if (fForce || !tlist->hwnd)
{
hProcess = OpenProcess (PROCESS_ALL_ACCESS, FALSE, tlist->dwProcessId);
if (hProcess)
{
hProcess = OpenProcess (PROCESS_ALL_ACCESS, FALSE, tlist->dwProcessId);
if (hProcess == NULL)
{
return FALSE;
}
if (!TerminateProcess (hProcess, 1))
{
CloseHandle (hProcess);
return FALSE;
}
CloseHandle (hProcess);
return TRUE;
}
}
PostMessage (tlist->hwnd, WM_CLOSE, 0, 0);
return TRUE;
}
#pragma ENDDUMP
[/code:3rzryx36]
|
AnsiToWide function
|
Pawel,
Your above code is leaking memory. BTW you may use FWPPC WinExec().
This is the fix for your code:
[code:128y7i5n]
LPSTR lpExe = hb_parc (1);
LPSTR lpCmd = hb_parc (2);
LPWSTR lpWExe = AnsiToWide( lpExe );
LPWSTR lpWCmd = AnsiToWide( lpCmd );
...
hb_xfree( lpExe );
hb_xfree( lpCmd );
[/code:128y7i5n]
|
AnsiToWide function
|
Pawel,
What code is it there ?
c:\vce\include\datareelce\strutil.h(134) : error C2061: syntax error : identifier 'gxwchar'
c:\vce\include\datareelce\strutil.h(134) : error C2059: syntax error : ';'
|
AnsiToWide function
|
Antonio,
Yes, you are right.
WinExec provides method to stop this function above time running limit (I use this function with GPRS connection, in some situation break connection is only way to back to execution program code) ?
What is the method to compile and link my sample code with your change in current FWPPC build ?
Thanks
Pawel
|
AnsiToWide function
|
Pawel,
A simpler solution <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Current Harbour (the one used by FWPPC) lets you mix C and C++ code. So you can compile your code with -TP to avoid the errors and simply use this:
extern "C"
{
LPWSTR AnsiToWide( LPSTR );
}
|
Antepo averle prima Immagini
|
empo fa ho avuto tra le mani un esempio di anteprima immagini fatto non so se in Harbour/Fw32 o in xbase, ora che mi serve non me lo ritrovo.
C'e' gia' o si puo fare in una choiche/listbox con selezione multipla ed anteprima immagini ?
Mi serve per potere selezionare da una cartella piuì immagini dopo averle viste in piccola anteprima.
Aiuti ?
Grazie
Romeo/Zingoni
|
Antepo averle prima Immagini
|
Prova la listview. Oppure usi dei controlli TImage.
EMG
|
Antepo averle prima Immagini
|
E dove la trovo la listview ?
Ho provato in tutto il fw24 e fwh24
Grazie
|
Antepo averle prima Immagini
|
Troppo vecchia, non c'era, credo.
EMG
|
Antepo averle prima Immagini
|
C'era la classe TAlbum
ma non funzionava ultimamente perchè bisognava cambiare parametri di Hbitmap ecc. anch'io non ne ho trovato una soluzione ma credo che se EMg l'avesse in un battitobaleno riuscira a metterla a posto anche per i l32 bt
Credo che la classe la si può scaricare da <!-- w --><a class="postlink" href="http://www.fivewin.info">www.fivewin.info</a><!-- w --> sezione contributi.
Altrimenti se avete problemi vedo se la posso ricercare io nei miei CD di backup
|
Antepo averle prima Immagini
|
trovata <!-- m --><a class="postlink" href="http://www.fivewin.info/html/downloads.php?category=FiveWin">http://www.fivewin.info/html/downloads. ... ry=FiveWin</a><!-- m --> users contributions&id=182
fatemi sapere se l'avete aggiustata
|
Antepo averle prima Immagini
|
La sto guardando ma c'è un problema: usa una funzione chiamata CreateCBmp() che non esiste né in FW né in FWH e che non so cosa faccia e quindi con cosa sostituirla.
EMG
|
Antepo averle prima Immagini
|
Risolto: era una chiamata a CreateCompatibleBitmap(). Ora funziona (FWH) ma le anteprime sono un po' piccoline. A voi sistemarle. Potete scaricarla da qui:
[url:1qy5hrgd]http://www.emagsoftware.it/talbum.zip[/url:1qy5hrgd]
EMG
|
Antepo averle prima Immagini
|
grazie e naturalmente ( ho visto) ora funziona con freeimage.dll
|
Anteprima di stampa
|
percchè con le recenti fw libs la barra dell'anteprima è grigio scuro ?
Perchè non prende il colore tipo 2007 o 2010 ?
|
Anti-piracy using a USB pendrive
|
FWH 7.12 is going to provide several functions to use a USB pendrive as anti-piracy protection system.
Please run this test with a pendrive (plugged or unplugged):
<!-- m --><a class="postlink" href="http://www.hotshare.net/file/16342-6394189d08.html">http://www.hotshare.net/file/16342-6394189d08.html</a><!-- m -->
There is no way to clone the USB and even if you reformat it, its serial remains the same <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Anti-piracy using a USB pendrive
|
New test:
<!-- m --><a class="postlink" href="http://www.hotshare.net/file/16342-6394189d08.html">http://www.hotshare.net/file/16342-6394189d08.html</a><!-- m -->
Thanks!
|
Anti-piracy using a USB pendrive
|
Antonio,
Now I'm getting a Serial-nr on both USB-drives that did't return a number with the previous test!!!!
Marc
|
Anti-piracy using a USB pendrive
|
Does it works in Win 98/me?
Regards,
Roberto Parisi
|
Anti-piracy using a USB pendrive
|
Marc,
Thanks for your feedback <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Anti-piracy using a USB pendrive
|
Roberto,
> Does it works in Win 98/me?
We have not tested it yet under Win 98/Me
|
Anti-piracy using a USB pendrive
|
No, it doesn't work on Win98/Me, serial number is empty.
Do you us wmi to read values? I tried it too and I got the same result.
Regards,
Roberto Parisi
|
Anti-piracy using a USB pendrive
|
Roberto,
> No, it doesn't work on Win98/Me, serial number is empty.
<!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> Well, at least it is usefull for other Windows versions
> Do you us wmi to read values? I tried it too and I got the same result.
Part of the code is based on wmi, other portions, no
|
Anti-piracy using a USB pendrive
|
Here you have a full working sample:
<!-- m --><a class="postlink" href="http://www.hotshare.net/file/16421-89987245cf.html">http://www.hotshare.net/file/16421-89987245cf.html</a><!-- m -->
[url=http://imageshack.us:1w70ce0n][img:1w70ce0n]http://img267.imageshack.us/img267/5065/protectad0.png[/img:1w70ce0n][/url:1w70ce0n]
|
Anti-piracy using a USB pendrive
|
Dear Antonio,
This can be a great boon. I soon will have to update my FWH !
Keep it up.
With best regards,
Milan.
|
Anti-piracy using a USB pendrive
|
there is a code source for it ?
|
Anti-piracy using a USB pendrive
|
Antonio.
Sorry , but cloning USB drives, even with the serial is easy to do in LINUX, just use DD to acomplish the task
dd if=all.img of=/dev/sda1
For creating a FULL image...
dd if=/dev/sda1 of=all.img
for "recreating" the drive...
dd if=dev/sda of=sdb
for doing it on the fly...
Easy, since it just copy the device (hd, partition, image, fd, usb drive ) one block at a time, and has no concept of the filesystems or files
that reside on the device. It's just binary data as far as dd is concerned, from the very begginning to the end.
I've tried to solve a problem related to USB drives spoiled by letting'em near a TV set, and Found this some months ago.
I repeat, best antycopy protection is a good support.
|
Anti-piracy using a USB pendrive
|
Adolfo, did you tried yourself to read the clone and the original and did you compare all the values?
I tried to clone with Ghost and Acronis always on a WINDOWS system but the S/N was different.
I am curious to hear from you.
Best regards,
Otto
|
Anti-piracy using a USB pendrive
|
Adolfo,
The USB serial code is from hardware, not from software. So it can't be copied.
|
Anti-piracy using a USB pendrive
|
Antonio,
may I try too?
Thanks
|
Anti-piracy using a USB pendrive
|
Marco,
The source code and sample are included in FWH 8.01
|
Anti-piracy using a USB pendrive
|
Ok
Thanks
|
Anti-piracy using a USB pendrive
|
Dear Antonio,
I runned protect.exe and it made a info.bin
But when I click on this key I can see the files on this usbkey and not ask me a password How run protect?
|
Anti-piracy using a USB pendrive
|
Silvio,
samples\protect.prg checks that a specific USB pendrive is plugged in.
Its not related to the files in the pendrive. Its related to protect (anti-piracy) a PC EXE checking for a specific pendrive plugged in.
|
Anti-pirateria usando un pendrive USB
|
FWH 7.12 va a proporcionar varias funciones para usar un pendrive USB como sistema de protección de copia ilegal de aplicaciones:
Por favor probad este EXE con un pendrive (conectado y desconectado):
<!-- m --><a class="postlink" href="http://www.hotshare.net/file/16336-20565867c3.html">http://www.hotshare.net/file/16336-20565867c3.html</a><!-- m -->
No hay forma de clonar el USB pendrive y aunque se vuelva a formatear, su código de serie permanece igual <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Anti-pirateria usando un pendrive USB
|
hice la prueba
---------------------------
Information
---------------------------
USB pendrive info:
drive: E:\
Serial: 7
---------------------------
OK
---------------------------
Saludos.
P.D. No es chico el numero "7" como serial?
|
Anti-pirateria usando un pendrive USB
|
Pedro,
Vuelve a probar con este por favor:
<!-- m --><a class="postlink" href="http://www.hotshare.net/file/16342-6394189d08.html">http://www.hotshare.net/file/16342-6394189d08.html</a><!-- m -->
gracias!
|
Anti-pirateria usando un pendrive USB
|
Lo he probado con varios pen drive, en diferentes PC, formateando, ... y parece que funciona ok. Me devuelve los serial de todas discos estraibles, incluso de las tarjetas de memoria SD. El string tipo "0C60DA60E2B1E9A7"
|
Anti-pirateria usando un pendrive USB
|
Aqui teneis un ejemplo totalmente operativo:
<!-- m --><a class="postlink" href="http://www.hotshare.net/file/16421-89987245cf.html">http://www.hotshare.net/file/16421-89987245cf.html</a><!-- m -->
[url=http://imageshack.us:1wdo6p33][img:1wdo6p33]http://img267.imageshack.us/img267/5065/protectad0.png[/img:1wdo6p33][/url:1wdo6p33]
|
Anti-pirateria usando un pendrive USB
|
Antonio:
Enhorabuena por el aporte!!. Me gustaría hacerte una sugerencia.
En concreto, la mochila debe poder ser utilizada para proteger varias aplicaciones de modo simultáneo y, a su vez, con posibilidad de indicar el tipo de versión (básica, pro, red, etc).
Sería más o menos:
a) A la hora de programarla, se crearía un fichero en el que se encripta el numero de serie de la mochila, el nombre del programa y el tipo de la versión.
b) En el programa, se comprueba que el numero de serie del fichero sea igual al de la mochila, y luego se comprueba el tipo de programa y de versión.
Con esto te quedaría de 10!!. Un abrazo
|
Anti-pirateria usando un pendrive USB
|
Moises,
Como FWH 7.12 incluirá todo el código fuente de la protección, entonces cada uno puede modificarla como desee <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Al usar una clave encriptada, nadie -excepto quien tenga el password- podrá saber lo que se guarda en el fichero <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Anti-pirateria usando un pendrive USB
|
Buenisimo!!
En la misma llave ahora me da esta info:
---------------------------
Information
---------------------------
USB pendrive info:
drive: E:\
Serial: 8945FFB
---------------------------
OK
---------------------------
Saludos
|
Anti-virus security warning when calling ""SetHelpFile( ... )
|
Hi,
My anti-virus (ZoneAlarm, version 9.3, the latest...) is giving me a serious security warning when the SET HELPFILE function is called.
Image of the warning:
[img:2u1o7dk9]http://img294.imageshack.us/img294/4542/zasecuritywarning.jpg[/img:2u1o7dk9]
I was able to isolate the call of the security warning by inserting a MsgInfo() before and after the call to SET HELPFILE TO.
I am getting the error in my application and don't want my users to stress with this.
The problem can be reproduce with one of the FWH samples (fwh\samples\testhlp2.prg)
1) Modify the file fwh\samples\testhlp2.prg and replace CurDrive() with HB_CurDrive()
2) Add some MsgInfo() before and after the [b:2u1o7dk9]SET HELPFILE TO "fwcmd.chm"[/b:2u1o7dk9] line (See code example)
3) Compile and start the application ( BUILDH testhlp2 )
The message does appear with my ZoneAlarm, but I do not have any kind of warning on my daughter's PC who is using avast! anti-virus.
[code=fw:2u1o7dk9]<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 /><br /> SetKey<span style="color: #000000;">(</span> K_F1, <span style="color: #000000;">{</span> | nKey | <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Help"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br />#ifdef __HARBOUR__<br /><br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Before SET HELPFILE TO"</span><span style="color: #000000;">)</span><br /> SET HELPFILE <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"fwcmd.chm"</span> <span style="color: #B900B9;">// Here you set your default HELP file</span><br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"After SET HELPFILE TO"</span><span style="color: #000000;">)</span><br /> HelpSetTopic<span style="color: #000000;">(</span> <span style="color: #ff0000;">"winhelp"</span> <span style="color: #000000;">)</span><br />#else<br /><br /> SET HELPFILE <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"fwfun.hlp"</span><br /><br />#endif<br /><br /> </div>[/code:2u1o7dk9]
Any help or comments would be really appreciated.....
My configuration:
Windows 7 32 bit
FWH 10.8
Harbour 2.1
BCC55
Claude.
|
Anti-virus security warning when calling ""SetHelpFile( ... )
|
Claude,
Many thanks for your feedback,
We are reviewing it to find what may be the reason for the anti-virus alert.
Also we have detected some typos in source\winapi\help32.prg. These are the required changes:
[code=fw:1vu8iuop]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> IsHelpFile<span style="color: #000000;">(</span> cHelpFile <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> lReturn := .T.<br /><br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br /> <span style="color: #00C800;">case</span> empty<span style="color: #000000;">(</span> cHelpFile <span style="color: #000000;">)</span><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No Help file defined with SetHelpFile()!"</span>, <span style="color: #ff0000;">" Attention"</span> <span style="color: #000000;">)</span><br /> lReturn := .F.<br /> <br /> <span style="color: #00C800;">case</span> ! file<span style="color: #000000;">(</span> cHelpfile <span style="color: #000000;">)</span><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Help file '"</span> + cHelpfile + <span style="color: #ff0000;">"' does not exist"</span> + CRLF + ;<br /> <span style="color: #ff0000;">"or its name (with path) is too long!"</span>, <span style="color: #ff0000;">" Attention"</span> <span style="color: #000000;">)</span><br /> lReturn := .F.<br /> <span style="color: #00C800;">endcase</span><br /><br /><span style="color: #00C800;">return</span> lReturn<br /> </div>[/code:1vu8iuop]
|
Anti-virus security warning when calling ""SetHelpFile( ... )
|
Claude,
In source\winapi\help.c could you please comment out these lines:
[code=fw:cy45pqkp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> void SetF1Menu<span style="color: #000000;">(</span> void <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> FARPROC lpF1Hook;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> ! Hook &&<br /> <span style="color: #000000;">(</span> lpF1Hook = <span style="color: #000000;">(</span> FARPROC <span style="color: #000000;">)</span> MakeProcInstance<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> FARPROC <span style="color: #000000;">)</span> TrapF1, GetInstance<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #B900B9;">// Hook = SetWindowsHookEx( WH_MSGFILTER, ( HOOKPROC ) lpF1Hook,</span><br /> <span style="color: #B900B9;">// GetInstance(), 0 );</span><br /> <span style="color: #000000;">}</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:cy45pqkp]
and compile it and link the resulting OBJ to your application and check if that cures the antivirus alarm ? thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Anti-virus security warning when calling ""SetHelpFile( ... )
|
Hi Antonio,
Many thanks for the quick reply.
I did both changes (help32.prg and help.c).
When I compile, i get the following warning:
[code=fw:cfspqyf7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Borland C++ <span style="color: #000000;">5.5</span><span style="color: #000000;">.1</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1993</span>, <span style="color: #000000;">2000</span> Borland<br /><span style="color: #0000ff;">help</span>.c:<br /><span style="color: #000000;">Warning</span> W8060 <span style="color: #0000ff;">help</span>.c <span style="color: #000000;">108</span>: <span style="color: #000000;">Possibly</span> incorrect assignment in <span style="color: #00C800;">function</span> SetF1Menu<br />Warning W8004 <span style="color: #0000ff;">help</span>.c <span style="color: #000000;">117</span>: <span style="color: #ff0000;">'lpF1Hook'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> SetF1Menu<br /> </div>[/code:cfspqyf7]
The good news is that [b:cfspqyf7]I don't have the security warning from ZoneAlarm anymore[/b:cfspqyf7] and the "Help" seems to work fine.
Should I worry about those warnings ?
Thanks!
Claude.
|
Anti-virus security warning when calling ""SetHelpFile( ... )
|
Claude,
You can safely ignore those warnings. No problem at all with them <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Many thanks for your feedback!
|
Anti-virus security warning when calling ""SetHelpFile( ... )
|
Cool !
Thanks again.
|
AntiDuplicate
|
Hi,
Is anyone out there successfully using AntiDuplicate with FWH ?
[url:1ugonmup]http://www.alkonost.com/antiduplicate/[/url:1ugonmup]
|
AntiDuplicate
|
Hola,
did you test protect.prg from fivewin sample directory, I think this can do the same what AntiDuplicate do
regards
Marcelo
|
AntiDuplicate
|
Yes I have used protect.prg the problem with it is that it requires the user to have Administrative Rights for it to function correctly.
AntiDuplicate does not require Admin Rights.
|
AntiDuplicate
|
The software comes with samples for the following, maybe someone can convert to FWH ?
Borland C++ Builder
C#.net
Delphi
FoxPro
Visual Basic 6
Visual Basic.net
Visual C++ Ver 5
Visual C++.net
Please let me know and I can email you the sample for your language.
|
AntiDuplicate
|
Jeff,
Could you please post here the example source code for Borland C++ Builder ? thanks
|
AntiDuplicate
|
Hello Jeff
i tested protect.prg with standar user, without administrator privileges, and run fine to me
i hope other user can test
[url:1ylt29yc]http://www.sitasoft.net/fivewin/samples/protect.zip[/url:1ylt29yc]
|
AntiDuplicate
|
Hi Antonio,
You can get the files for Borland C++ Builder here:
[url:37lmczz6]http://www.can-soft.net/BCB.zip[/url:37lmczz6]
|
AntiDuplicate
|
Hi Daniel,
I think there is a registry setting or something that can help but I have not found it.
I have tested on a few systems ... one system would work regardless of users access rights while all the others would not.
I have been testing this on Windows XP systems.
|
AntiDuplicate
|
Hi Antonio,
Any luck with the conversion.
|
AntiDuplicate
|
Jeff,
What is the name of the AntiDuplicate DLL file ?
|
AntiDuplicate
|
It is Aas973.dll
Please check your gmail account ... I sent you some files.
|
AntiDuplicate
|
Jeff,
Please try this:
[code=fw:3h82tty1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> Fddig1<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ...<br /> <br />DLL <span style="color: #00C800;">FUNCTION</span> FDDIG1<span style="color: #000000;">(</span> n AS LONG <span style="color: #000000;">)</span> AS LONG PASCAL LIB <span style="color: #ff0000;">"Aas973.dll"</span><br /> </div>[/code:3h82tty1]
A value below 7 means that there is No Key drive in the USB port
|
AntiDuplicate
|
It returns "nil" with or without the usb memory stick connected.
I sent an email to your gmail account.
It has a link to some additional files that should help.
|
AntiDuplicate
|
Jeff,
Please provide a url to download just the DLL, thanks
Or simply create a DEF file from it and publish it here:
c:\bcc582\bin\impdef.exe name.def name.dll
name.def will contain all the DLL exported functions names. It is an ascii file that you can copy here
|
AntiDuplicate
|
Antonio,
here it is:
[code=fw:2uxjt3i5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">LIBRARY</span> AAS973.DLL<br /><br />EXPORTS<br /> Accdd1 @<span style="color: #000000;">1</span> ; Accdd1<br /> Accdd2 @<span style="color: #000000;">3</span> ; Accdd2<br /> Dscbf1 @<span style="color: #000000;">5</span> ; Dscbf1<br /> Fddig1 @<span style="color: #000000;">2</span> ; Fddig1<br /> FddigV @<span style="color: #000000;">4</span> ; FddigV<br /><br /> </div>[/code:2uxjt3i5]
|
AntiDuplicate
|
Jeff,
Ok, thanks. They are using mixed upper and lower case symbol names.
Then please try this code:
[code=fw:1r507y6v]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> Fddig1<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ...<br /> <br />DLL <span style="color: #00C800;">FUNCTION</span> Fddig1<span style="color: #000000;">(</span> n AS LONG <span style="color: #000000;">)</span> AS LONG PASCAL LIB <span style="color: #ff0000;">"Aas973.dll"</span><br /> </div>[/code:1r507y6v]
|
AntiDuplicate
|
With nothing in the usb drive we get: 2
With a USB stick in but not programmed we get: 1
With a valid USB stick we get: 7
With a copied USB stick we get: 7
|
AntiDuplicate
|
Jeff,
ok, thanks, we are progressing <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
AntiDuplicate
|
Jeff,
Please try now this code:
[code=fw:27v93a4d]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">local</span> acck := Space<span style="color: #000000;">(</span> <span style="color: #000000;">100</span> <span style="color: #000000;">)</span><br /><br /> Accdd1<span style="color: #000000;">(</span> acck <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> Empty<span style="color: #000000;">(</span> acck <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ...<br /> <br />DLL <span style="color: #00C800;">FUNCTION</span> Accdd1<span style="color: #000000;">(</span> c AS LPSTR <span style="color: #000000;">)</span> AS VOID PASCAL LIB <span style="color: #ff0000;">"Aas973.dll"</span><br /> </div>[/code:27v93a4d]
|
AntiDuplicate
|
The "copy" returns: .f.
The "valid" one returns: .f.
The non programmed one returns: .f.
Nothing in the USB slot returns: .f.
|
AntiDuplicate
|
Jeff,
Being not empty means that the DLL is placing some info inside the variable acck.
So now, please inspect what there is inside it, in each case:
[code=fw:2pqwiz65]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> acck <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #0000ff;">Asc</span><span style="color: #000000;">(</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> acck, n, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> </div>[/code:2pqwiz65]
|
AntiDuplicate
|
Nothing connected:
197 218 200 99 245 25 138 175 107 43 20 89 14 148 136 200 162 93 109 46 8 207 237 5 124 75 16 66 218 33 9 75 135 218 211 174 110 108 38 136 121 191 43 201 181 223 101 238 123 114 124 147 222 92 44 197 138 117 10 31 199 202 69 87 251 186 16 120 32 17 228 79 51 82 81 75 128 240 68 123 104 142 248 177 111 252 100 44 45 237 133 207 193 239 70 184 162 172 84 216
Non-Programmed:
80 77 239 72 117 233 247 60 69 74 115 32 148 246 158 134 10 109 46 62 117 231 232 148 50 104 127 91 246 92 149 183 36 205 99 79 76 132 53 134 224 103 126 73 229 227 100 150 107 212 143 20 7 143 248 211 72 17 72 93 155 223 140 229 181 121 192 219 147 31 17 209 22 217 232 65 18 219 95 91 97 182 18 104 31 77 163 148 55 165 211 45 138 242 113 45 236 241 124 155
Copy:
173 162 171 170 80 55 240 209 229 136 39 208 209 111 219 105 141 199 182 87 33 186 34 44 148 167 147 175 71 148 221 83 246 6 153 158 80 186 155 75 13 91 132 46 45 224 1 59 191 33 72 240 81 169 137 36 116 194 37 125 27 118 1 236 44 71 47 119 213 254 6 50 143 83 175 19 143 203 136 250 250 56 139 205 240 56 149 142 247 27 167 92 108 55 130 42 70 43 229 84
Valid stick:
16 86 40 57 44 154 139 100 3 142 9 235 27 218 4 101 202 3 152 84 179 133 198 16 47 192 131 64 15 246 109 173 77 39 241 177 143 214 148 79 211 32 188 1 214 175 12 184 148 244 153 8 181 197 177 79 20 10 92 181 168 26 197 54 53 159 166 212 166 62 110 132 106 204 201 153 13 35 185 208 255 92 140 225 199 90 4 134 126 251 202 151 220 229 70 243 92 43 252 99
|
AntiDuplicate
|
It looks like the numbers change every time I run the program.
Valid Run 1:
237 34 150 218 38 250 85 235 6 144 164 164 251 98 138 209 55 135 68 43 52 231 43 230 180 7 83 50 63 15 254 131 141 177 76 128 129 249 177 5 73 65 185 68 130 29 86 102 54 184 192 130 80 17 86 128 91 95 14 5 155 149 21 14 156 242 72 247 0 109 13 245 54 160 105 156 125 132 30 28 185 128 71 47 127 98 109 61 201 85 65 117 83 229 96 2 141 238 140 63
Valid Run 2:
226 72 138 219 155 149 21 14 214 97 178 23 223 240 56 124 159 20 154 228 80 97 79 240 195 100 211 216 19 190 133 169 238 160 226 154 184 124 213 21 205 170 182 3 129 88 50 205 55 227 73 247 214 17 114 204 173 2 173 207 123 79 172 38 78 185 89 150 81 160 154 94 46 23 167 158 84 249 30 212 128 110 10 183 129 193 109 43 163 202 147 158 53 11 131 100 168 184 50 157
Valid Run 3:
48 191 162 43 93 51 178 147 101 219 204 195 82 113 23 115 205 158 45 137 2 167 61 147 125 233 169 113 49 71 66 204 190 156 248 82 184 124 213 21 94 88 45 179 54 128 10 127 72 73 49 171 87 36 215 135 13 90 234 81 239 255 139 109 32 20 122 190 51 233 83 101 157 118 114 255 121 174 95 224 226 86 196 91 123 134 4 127 13 39 51 206 204 95 29 104 168 64 225 191
|
AntiDuplicate
|
Hi Antonio,
Any success ? or is this just something that will not work with FWH ?
|
AntiDuplicate
|
Jeff,
I have been busy with FWH 64 and the new Class TExplorerBar and had no time to continue.
Lets see if we can make some more progress on this <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
AntiDuplicate
|
Hi Antonio,
No rush ... I was just following up.
I am currently in Quebec City. When I return home I will be busy packing (I move to my new house on June 25th) so my time too is limited these days <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
Antiguas News de FW
|
Hola (creo que para Antonio es esto),
Quisiera saber si es posible accesar a las antiguas News de FW que existian antes de este foro, pues es una "base de conocimiento" muy amplio, que me gustaría consultar.
Muchas veces, he realizado una consulta - en el pasado - que me fue contestada en esas news, pero ya no tengo mas acceso, o lo estoy haciendo de manera incorrecta.
La ultima vez intenté accesando a una IP fija 80.32.22.38, pero ya no me da mas acceso....
E
¿Está en otro sitio? ¿Me podrían dar la dirección?
Gracias anticipadas,
<!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
Antiguas News de FW
|
Julio,
Ya no están accesibles. Yannis nos hizo el favor de pasarlas a DBFs, con lo que podríamos alojar las DBFs en <!-- w --><a class="postlink" href="http://www.hyperupload.com">www.hyperupload.com</a><!-- w --> y permitir su descarga para quien quiera consultarlas <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
Antiguas News de FW
|
Gracias Antonio,
No sabía que Yannis había hecho esto. Me gustaría entonces tener acceso a esa(s) DBF, pues como menciono, la participación de todos es un material invaluable como base de conocimiento.
Estaré entonces a la espera de que lo suban a hyperload...
Gracias adelantadas,
|
Antiguas News de FW
|
Julio,
Aquí están:
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=2788">http://fivetechsoft.com/forums/viewtopic.php?t=2788</a><!-- m -->
|
Antiguas News de FW
|
Gracias Antonio,
Abrazos,
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.