topic
stringlengths
1
63
text
stringlengths
1
577k
Big problem with harbour and WM 6 (6.5)
Hello Jaroslaw! Thanks for feed back. In my case I have not red errors, but I have seriuos problems with CDX files. The DBSEEK() do not work correctly. It looks the CDX files are corrupted. In my case on emulator runs OK but not on PDA (WM6x). I made a sample testseek.prg. Can you test this sample on your system? try seek record number 10. [url:30a4x21l]http://sulsis.gotdns.org/testeseek.rar[/url:30a4x21l] thanks Pedro
Big problem with harbour and WM 6 (6.5)
Jaroslaw, Pedro, [quote:2i0grdyc]In my case on emulator runs OK but not on PDA (WM6x)[/quote:2i0grdyc] Thats the most shocking part, as the emulator uses the same software that the PDA, so there is a difference somewhere, but where to look for it ? We need an idea about where the problem may come from...
Big problem with harbour and WM 6 (6.5)
Pedro, I can confirm your problem with indexes in your application. I have similar problems with my applications since one year but only on WM 6 and 6.5. (both on PDA and emulators). On WM 5 and 2003 all is ok. Antonio, I described you my problems with WM6 and 6.5 in my mails to you in november-december 2010. Check your mailbox please Regards Jaroslaw Kadziola
Big problem with xbrowse and lFastEdit=.t.
Hi all, there is a problem with the xbrowse (fwh april 2009) using lFastEdit=.t. With a previous xbrowse version I used lFastedit=.t. and oBrw:GoDown to go to the next cell. Now, using lFastEdit=.t. the control automatically go to the next cell but if the array is more lenght then the xbrowse window then when I am on the last visible cell, pressing enter the control remain on that cell instead to go to the next cell scrolling the browse. This is a self-contained sample that show the problem. Try to change the numeric values and press enter each time. You will see that at the end of the xbrowse windows the fastedit terminate always on the last visible cell instead to scroll the xbrowse and go to the next cell. Any solution ? Thanks in advance. [code=fw:o76zgemr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oBrw, aArray<br /><br />* &nbsp; &nbsp;set century off<br />&nbsp; &nbsp; set epoch <span style="color: #0000ff;">to</span> <span style="color: #000000;">1920</span><br /><br />&nbsp; &nbsp; aArray:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aArray,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Marc"</span>,<span style="color: #000000;">10.2</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aArray,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Luca"</span>,<span style="color: #000000;">6.5</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aArray,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"James"</span>,<span style="color: #000000;">11.3</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aArray,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Christine"</span>,<span style="color: #000000;">1.3</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aArray,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Melanie"</span>,<span style="color: #000000;">15.3</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aArray,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Robert"</span>,<span style="color: #000000;">14.3</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aArray,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Jimmy"</span>,<span style="color: #000000;">13.3</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aArray,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Enrico"</span>,<span style="color: #000000;">10.3</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aArray,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Mario"</span>,<span style="color: #000000;">12.3</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aArray,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Pinco"</span>,<span style="color: #000000;">13.3</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aArray,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Eric"</span>,<span style="color: #000000;">14.3</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">200</span><br /><br />&nbsp; &nbsp; @<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oDlg ARRAY aArray <span style="color: #0000ff;">AUTOCOLS</span><br /><br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cEditPicture</span> := <span style="color: #ff0000;">"@E 999.99"</span><br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nEditType</span> &nbsp; &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bOnPostEdit</span> &nbsp;:= <span style="color: #000000;">&#123;</span>|o,x| nLastCell:=oBrw:<span style="color: #000000;">nArrayAt</span>,aArray<span style="color: #000000;">&#91;</span>oBrw:<span style="color: #000000;">nArrayAt</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:=x<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">lFastEdit</span>:=.t.<br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:o76zgemr]
Big problem with xbrowse and lFastEdit=.t.
Will you please try this fix ? You will find the following code in method GoNextCtrl(hWnd) of TXBrpwse ( around line 4657 ) [code=fw:4d780s3r]<div class="fw" id="{CB}" style="font-family: monospace;">                     <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lAutoAppend</span> .or. ::<span style="color: #000000;">nDataRows</span> > ::<span style="color: #000000;">nRowSel</span><br />                        <span style="color: #00C800;">if</span> !<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPastEof</span> == <span style="color: #00C800;">NIL</span> .and. ::<span style="color: #000000;">nDataRows</span> = ::<span style="color: #000000;">nRowSel</span> <span style="color: #000000;">&#41;</span><br />                           ::<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />                           ::<span style="color: #000000;">GoDown</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                           ::<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />                        <span style="color: #00C800;">endif</span><br />                     <span style="color: #00C800;">endif</span><br /> </div>[/code:4d780s3r] Please substitute the above lines of code with the following block of code [code=fw:4d780s3r]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nRowSel</span> < ::<span style="color: #000000;">nDataRows</span> <span style="color: #000000;">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lAutoAppend</span> .and. ::<span style="color: #000000;">bPastEof</span> != <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">GoDown</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:4d780s3r] I have tested and the old behaviour is restored with this change. Kindly try and give your feed back.
Big problem with xbrowse and lFastEdit=.t.
Hi, thank you for your reply, unfortunately the problem still remain. I enclosed the executable, the prg sample and the modified xbrowse.prg Any ideas ? Thanks in advance.
Big problem with xbrowse and lFastEdit=.t.
I downloaded and tested Please try with this fix. [code=fw:12z0txta]<div class="fw" id="{CB}" style="font-family: monospace;">               <span style="color: #00C800;">CASE</span> ::<span style="color: #000000;">nMoveType</span> == MOVE_FAST_RIGHT<br />                  nNextPos    := <span style="color: #000000;">0</span><br />                  <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nColSel</span> < Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aDisplay</span> <span style="color: #000000;">&#41;</span><br />                     nNextPos := AScan<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aDisplay</span>, <span style="color: #000000;">&#123;</span> |i| ::<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nEditType</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, ::<span style="color: #000000;">nColSel</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />                  <span style="color: #00C800;">endif</span><br />                  <span style="color: #00C800;">if</span> nNextPos > <span style="color: #000000;">0</span><br />                     <span style="color: #00C800;">if</span> ::<span style="color: #000000;">IsDisplayPosVisible</span><span style="color: #000000;">&#40;</span> nNextPos, .t. <span style="color: #000000;">&#41;</span><br />                        ::<span style="color: #000000;">nColSel</span>   := nNextPos<br />                        <span style="color: #00C800;">if</span> ::<span style="color: #000000;">FullPaint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                           ::<span style="color: #00C800;">Super</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .t. <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//::Paint()</span><br />                        <span style="color: #00C800;">else</span><br />                           ::<span style="color: #000000;">DrawLine</span><span style="color: #000000;">&#40;</span> .t. <span style="color: #000000;">&#41;</span><br />                        <span style="color: #00C800;">endif</span><br />                     <span style="color: #00C800;">else</span><br />                        <span style="color: #00C800;">for</span> n := ::<span style="color: #000000;">nColSel</span> + <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nNextPos<br />                           ::<span style="color: #000000;">GoRight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                        <span style="color: #00C800;">next</span> n<br />                     <span style="color: #00C800;">endif</span><br />                  <span style="color: #00C800;">else</span><br />                     ::<span style="color: #000000;">GoLeftMost</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                     nNextPos := AScan<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aDisplay</span>, <span style="color: #000000;">&#123;</span> |i| ::<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nEditType</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />                     <span style="color: #00C800;">if</span> nNextPos > <span style="color: #000000;">1</span><br />                        <span style="color: #00C800;">if</span> ::<span style="color: #000000;">IsDisplayPosVisible</span><span style="color: #000000;">&#40;</span> nNextPos, .t. <span style="color: #000000;">&#41;</span><br />                           ::<span style="color: #000000;">nColSel</span>   := nNextPos<br />                           ::<span style="color: #000000;">DrawLine</span><span style="color: #000000;">&#40;</span> .t. <span style="color: #000000;">&#41;</span><br />                        <span style="color: #00C800;">else</span><br />                           <span style="color: #00C800;">for</span> n := <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> nNextPos<br />                              ::<span style="color: #000000;">GoRight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                           <span style="color: #00C800;">next</span><br />                        <span style="color: #00C800;">endif</span><br />                     <span style="color: #00C800;">endif</span><br /><br />                     ::<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />                     ::<span style="color: #000000;">GoDown</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                     ::<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />                  <span style="color: #00C800;">endif</span><br /><br /> </div>[/code:12z0txta] If you can please contact me by my email <!-- e --><a href="mailto:nageswaragunupudi@gmail.com">nageswaragunupudi@gmail.com</a><!-- e -->, I shall send you the modified sources and exe
Big problem with xbrowse and lFastEdit=.t.
Hello... This other posible solutions... we need maintain sames features [code=fw:2s36zlpx]<div class="fw" id="{CB}" style="font-family: monospace;">                    <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lAutoAppend</span> .or. ::<span style="color: #000000;">nDataRows</span> > ::<span style="color: #000000;">nRowSel</span><br />                        <span style="color: #00C800;">if</span> !<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPastEof</span> == <span style="color: #00C800;">NIL</span> .and. ::<span style="color: #000000;">nDataRows</span> = ::<span style="color: #000000;">nRowSel</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//change this for... see bellow</span><br />                           ::<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />                           ::<span style="color: #000000;">GoDown</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                           ::<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />                        <span style="color: #00C800;">endif</span><br />                     <span style="color: #00C800;">endif</span></div>[/code:2s36zlpx] Line Changed [code=fw:2s36zlpx]<div class="fw" id="{CB}" style="font-family: monospace;">                     <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lAutoAppend</span> .or. ::<span style="color: #000000;">nDataRows</span> > ::<span style="color: #000000;">nRowSel</span><br />                        <span style="color: #00C800;">if</span> !<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPastEof</span> == <span style="color: #00C800;">NIL</span> .and. ::<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == ::<span style="color: #000000;">nLen</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//line changed</span><br />                           ::<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />                           ::<span style="color: #000000;">GoDown</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                           ::<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />                        <span style="color: #00C800;">endif</span><br />                     <span style="color: #00C800;">endif</span></div>[/code:2s36zlpx]
Big problem with xbrowse and lFastEdit=.t.
hello.. the Mr Rao's code work fine
Big problem with xbrowse and lFastEdit=.t.
Yes, all runs fine with this modified code now. Thanks a lot.
Bill Gates keynote at the 2006 International CES
Don't miss Bill Gates keynote at the 2006 International Consumer Electronics Show, with a Windows Vista preview too: <!-- m --><a class="postlink" href="http://metahost.savvislive.com/microsoft/20060104/ces_billgates_keynote_20060104_300.asx">http://metahost.savvislive.com/microsof ... 04_300.asx</a><!-- m --> Also, you may find quite interesting Steve Job's MacWord keynote from <!-- m --><a class="postlink" href="http://www.apple.com/quicktime/qtv/mwsf06">http://www.apple.com/quicktime/qtv/mwsf06</a><!-- m -->
Bill Gates keynote at the 2006 International CES
It is expected a much more advanced January Vista beta. Actual build is 5270.
Billing Czech Republic
Hi, Today I dropped my 'hands' billing protocol of the Czech Republic. Several of our customers are from this country, and next month begins to be mandatory. Does anyone have already done something, not to start from scratch? Best regards
Billing Czech Republic
Hello, I have some information from a solution provider which may help. Please send me an email info#winhotel#at Best regards, Otto
Billing Czech Republic
Hello, can you give us some link with technical details? Boris
Billing Czech Republic
[quote="Otto":23g192yq]Hello, I have some information from a solution provider which may help. Please send me an email info#winhotel#at Best regards, Otto[/quote:23g192yq] Thank you Otto, i send email.
Billing Czech Republic
[quote="bosibila":2qtwkpg7]Hello, can you give us some link with technical details? Boris[/quote:2qtwkpg7] I view <!-- m --><a class="postlink" href="http://www.etrzby.cz/cs/english-version-609">http://www.etrzby.cz/cs/english-version-609</a><!-- m -->, and specification in <!-- m --><a class="postlink" href="http://www.etrzby.cz/assets/cs/prilohy/EETXMLSchema.xsd">http://www.etrzby.cz/assets/cs/prilohy/EETXMLSchema.xsd</a><!-- m -->
Billing Czech Republic
Hello Rafa, applications with fiscal bills are implemented in our country before four years. I think it is very similar to yours problem. Our POS pc's send bill with ZKI number (uniq number calculated from bill number, date, time, POS ID ...) in XML format to government Tax Administration, signed by soft certificat (fiskal.p12). Government servers return signed XML answer with JIR (number which is unique and must be printed on bill). Our FWH aplication use external DLL (C#) simply calling dll's function: ... oCis:=CreateObject("FiskalizacijaDev.com.CentraniInformacijskiSustav") cUUID:=oCis:generirajUUID() ... Link for C# source and dll's: <!-- m --><a class="postlink" href="https://fiskalizacija.codeplex.com/">https://fiskalizacija.codeplex.com/</a><!-- m --> Technical specification (only on Croatian): <!-- m --><a class="postlink" href="https://www.porezna-uprava.hr/HR_Fiskalizacija/Stranice/Tehni%C4%8Dke-specifikacije.aspx">https://www.porezna-uprava.hr/HR_Fiskal ... acije.aspx</a><!-- m --> If you find this informations useful, I will prepare and sent you Fivewin example. Boris
Billing Czech Republic
Thank you! [quote="bosibila":28fqasw6]Hello Rafa, applications with fiscal bills are implemented in our country before four years. I think it is very similar to yours problem. Our POS pc's send bill with ZKI number (uniq number calculated from bill number, date, time, POS ID ...) in XML format to government Tax Administration, signed by soft certificat (fiskal.p12). Government servers return signed XML answer with JIR (number which is unique and must be printed on bill). Our FWH aplication use external DLL (C#) simply calling dll's function: ... oCis:=CreateObject("FiskalizacijaDev.com.CentraniInformacijskiSustav") cUUID:=oCis:generirajUUID() ... Link for C# source and dll's: <!-- m --><a class="postlink" href="https://fiskalizacija.codeplex.com/">https://fiskalizacija.codeplex.com/</a><!-- m --> Technical specification (only on Croatian): <!-- m --><a class="postlink" href="https://www.porezna-uprava.hr/HR_Fiskalizacija/Stranice/Tehni%C4%8Dke-specifikacije.aspx">https://www.porezna-uprava.hr/HR_Fiskal ... acije.aspx</a><!-- m --> If you find this informations useful, I will prepare and sent you Fivewin example. Boris[/quote:28fqasw6]
Bin problems with the FWH27 printer class
Hi, with the new FWH27 EMF printer class the print output go always on the same bin scheet instead the default bin scheet. There is no problem with the old WMF printer class. Any solutions ? Thanks in advance Marco Turco
Bin problems with the FWH27 printer class
[quote="Marco Turco":2o6gdceg]Hi, with the new FWH27 EMF printer class the print output go always on the same bin scheet instead the default bin scheet. There is no problem with the old WMF printer class. Any solutions ? Thanks in advance Marco Turco[/quote:2o6gdceg] Antonio I confirm the same problem Richard
Bin problems with the FWH27 printer class
Marco, Richard, We have tested it here on a Canon Pixma MP750 and it works ok (samples\TestPrn2.prg). What you can't do is to change the printer bin once you have initialized the printer in your application, unless you directly call the function PrinterEnd() that will force FWH to initialize again the printer object with the new default printer settings values.
Bin problems with the FWH27 printer class
Hi Antonio, I don't want to change the bin from my app, I want only that my app will print on the default bin as set on the printer panel. The tprinter class has to check which the default bin is and print on this bin. Marco
Bin problems with the FWH27 printer class
[quote="Marco Turco":ov530mpq]Hi Antonio, I don't want to change the bin from my app, I want only that my app will print on the default bin as set on the printer panel. The tprinter class has to check which the default bin is and print on this bin. Marco[/quote:ov530mpq] Marco We need both. The print panel must show the default bin as set on the printer panel and we need to be able to change this bin. This is the standard windows behaviour. This was working before. Richard
Bin problems with the FWH27 printer class
Marco, What I mean is that if you change the default bin _meanwhile_ your app is running, then FWH will not respect it unless you do a PrinterEnd() and a PrinterInit(), so the print values used by FWH get properly intialized again.
Bin problems with the FWH27 printer class
[quote="Antonio Linares":2ae4772g]Marco, What I mean is that if you change the default bin _meanwhile_ your app is running, then FWH will not respect it unless you do a PrinterEnd() and a PrinterInit(), so the print values used by FWH get properly intialized again.[/quote:2ae4772g] Antonio <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> The initialisation should happen every time we call printersetup, all printer params must be reinitialized at that moment. Richard
Bin problems with the FWH27 printer class
Antonio, I never set the bin from my app. I try to explain me better: imagine that the printer has two bins: the bin1 and the bin2, the customer set as default bin the bin2 (he make this setting into the Printer control panel calling Start/Printers and fax). After, the customer execute my app, and try a print. Well the print output will not start on bin2 (the print default bin) but on bin1. This is the biggest problem. Marco
Bin problems with the FWH27 printer class
Richard, Yes, we should initialize the low level structure everytime PrinterSetup() is used. But what happens if the user sets a different bin manually, from Windows printer settings ? In that case, the application is not aware of such change.
Bin problems with the FWH27 printer class
Marco, > After, the customer execute my app, and try a print. Well the print output will not start on bin2 (the print default bin) but on bin1. > We have tried that exactly this morning and it worked ok. We started the app after the bin was manually changed. All ok. What we are checking now is how to detect such bin change if it is performed meanwhile the app is running.
Bin problems with the FWH27 printer class
Marco, Our tests were done with samples\TestPrn2.prg and they worked ok. The printing was properly done on the control-panel-printer selected bin.
Bin problems with the FWH27 printer class
Antonio, I have found the problem. I have in my app a button to give the possibility to the customers to change the printer parameters (eg. the bin scheet). This button call the shprnproperty() function you introduced with these latest FWH's releases. Well, when I change the bin using this function, the change doesn't applies to my app. I replaced now the button action calling the old PrinterSetup() function that runs fine. Marco
Bin problems with the FWH27 printer class
Marco, Thanks for the feedback,
Binario 2 Hexadecimal 16 bits
Muy buenas, alguien sabría indicarme una función que pasara de Binario a Hexadecimal Y de Hexadecimal a Binario, es decir, necesito pasar 0000000000000010 => 0002 ó 1111111111111111 => FFFF y También lo necesito alreves, es decir, 0002 => 0000000000000010 ó FFFF => 1111111111111111 Un Saludo.
Binario 2 Hexadecimal 16 bits
Juan, La primera de las dos funciones que buscas: [code=fw:1mf2ed9d]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> BinToHex<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"1111111111111110"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;<br /><br /><span style="color: #00C800;">function</span> BinToHex<span style="color: #000000;">&#40;</span> cBin <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n, nResult := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n = Len<span style="color: #000000;">&#40;</span> cBin <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">1</span> step <span style="color: #000000;">-1</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cBin, n, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"1"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nResult += <span style="color: #000000;">2</span> ^ <span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cBin <span style="color: #000000;">&#41;</span> - n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> DecToHex<span style="color: #000000;">&#40;</span> nResult <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1mf2ed9d]
Binario 2 Hexadecimal 16 bits
Aqui van las dos: [code=fw:17chnnff]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> BinToHex<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"1111111111111110"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> HexToBin<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FFFE"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;<br /><br /><span style="color: #00C800;">function</span> BinToHex<span style="color: #000000;">&#40;</span> cBin <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n, nResult := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n = Len<span style="color: #000000;">&#40;</span> cBin <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">1</span> step <span style="color: #000000;">-1</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cBin, n, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"1"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nResult += <span style="color: #000000;">2</span> ^ <span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cBin <span style="color: #000000;">&#41;</span> - n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> DecToHex<span style="color: #000000;">&#40;</span> nResult <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> HexToBin<span style="color: #000000;">&#40;</span> cHex <span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">local</span> nValue := HexToDec<span style="color: #000000;">&#40;</span> cHex <span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; <span style="color: #00C800;">local</span> n, cResult := <span style="color: #ff0000;">""</span><br /><br />&nbsp; <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">16</span><br />&nbsp; &nbsp; &nbsp;cResult += <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nAnd<span style="color: #000000;">&#40;</span> nValue, <span style="color: #000000;">2</span> ^ n <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">2</span> ^ n, <span style="color: #ff0000;">"1"</span>, <span style="color: #ff0000;">"0"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">next</span> &nbsp; &nbsp; <br /><br /><span style="color: #00C800;">return</span> cResult<br />&nbsp;</div>[/code:17chnnff] Si necesitases mucha velocidad de proceso, entonces lo idóneo seria implementarlas en lenguaje C.
Binarios Harbour 64 bits
Hola, buen día En qué página puedo descargar los últimos binarios de Harbour 64 bits para BCC71 Saludos
Binarios Harbour 64 bits
Vikthor, [url:6fp5uoiy]https&#58;//bitbucket&#46;org/fivetech/harbour-xharbour-builds/downloads[/url:6fp5uoiy] [url:6fp5uoiy]https&#58;//bitbucket&#46;org/fivetech/harbour-xharbour-builds/downloads/harbour_bcc71_64bits_20160324&#46;zip[/url:6fp5uoiy]
Binary file to field via SQL - SOLVED!
Dear All, if sending image via SQL, there's BmpToStr() function. What if sending binary (.pdf or .rtf)? BinToStr() or similar? Anyone?
Binary file to field via SQL - SOLVED!
If you use latest FW libraries with ADO, it is as simple as oRecSet:Photo := MemoRead( "john.jpg" ) or oRecSet:Reply := MemoRead( "reply.rtf" )
Binary file to field via SQL - SOLVED!
RAO, I tried this: [code=fw:3jhvj2qq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;cBuff := MemoRead<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'TestRTF.RTF'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;cSql := <span style="color: #ff0000;">"MERGE entry_trn ON ( ticket_id = '123' ) "</span>+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"WHEN MATCHED THEN UPDATE SET ( concerns = :bin_data1 ) "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"WHEN NOT MATCHED THEN INSERT ( ticket_id = '123', concerns = :bin_data2 );"</span> &nbsp; &nbsp; <span style="color: #B900B9;">//concern field is binary type</span><br /><br /><br />&nbsp;dbSelectArea<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> AdsCreateSqlStatement<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'XX'</span>, ADS_ADT, hADS <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> AdsPrepareSql<span style="color: #000000;">&#40;</span> cSql <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> AdsSetBinary<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"bin_data1"</span>, cBuff <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'oopss...'</span>,<span style="color: #ff0000;">'bin_data1'</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//ok good never reached</span><br />&nbsp; &nbsp; &nbsp; &nbsp;END<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> AdsSetBinary<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"bin_data2"</span>, cBuff <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'oopss...'</span>,<span style="color: #ff0000;">'bin_data2'</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//ok good never reached</span><br />&nbsp; &nbsp; &nbsp; &nbsp;END<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/* I have no problem with bitmap/image<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; cBmp := BmpToStr(oImg:hBitmap)<br />&nbsp; &nbsp; &nbsp; &nbsp; AdsSetBinary( 'iPicture', cBmp ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //ipicture field is image type.<br /><br />&nbsp; &nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> AdsExecuteSQL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AdsCloseSQLStatement<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cerror := <span style="color: #ff0000;">''</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AdsGetLastError<span style="color: #000000;">&#40;</span> @cerror<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'oopss... '</span> + cerror ,<span style="color: #ff0000;">'AdsExecuteSQL'</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//here..</span><br />&nbsp; &nbsp; &nbsp; &nbsp;END<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'oopss...'</span>,<span style="color: #ff0000;">'AdsPrepareSql'</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//ok good never reached</span><br />&nbsp; &nbsp; END<br /><br />&nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'oopss...'</span>,<span style="color: #ff0000;">'AdsCreateSqlStatement'</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//ok good never reached</span><br />&nbsp;END<br /><br />&nbsp;</div>[/code:3jhvj2qq] Using Bitmap/Image working fine.. Any idea?
Binary file to field via SQL - SOLVED!
Hi Frances; Your code should work just fine regardless of the file type. Are you getting some error? You may store any file type on a blob field by simply reading the file using MemoRead() into a local variable that's then used in AdsSetBinary() to set the parameter for the sql statement. It really does not matter what the file type is. Reinaldo.
Binary file to field via SQL - SOLVED!
I just re-read your post, I think there might be a problem with the actual sql statement. I'm not sure the insert portion is the correct syntax. [code=fw:18ff3h7z]<div class="fw" id="{CB}" style="font-family: monospace;">cSql := <span style="color: #ff0000;">"MERGE entry_trn ON ( ticket_id = '123' ) "</span>+;<br />         <span style="color: #ff0000;">"WHEN MATCHED THEN UPDATE SET ( concerns = :bin_data1 ) "</span> +;<br />         <span style="color: #ff0000;">"WHEN NOT MATCHED THEN INSERT ( ticket_id = '123', concerns = :bin_data2 );"</span>     <span style="color: #B900B9;">//concern field is binary type</span><br /> </div>[/code:18ff3h7z] should be: [code=fw:18ff3h7z]<div class="fw" id="{CB}" style="font-family: monospace;">cSql := <span style="color: #ff0000;">"MERGE entry_trn ON ( ticket_id = '123' ) "</span>+;<br />         <span style="color: #ff0000;">"WHEN MATCHED THEN UPDATE SET ( concerns = :bin_data1 ) "</span> +;<br />         <span style="color: #ff0000;">"WHEN NOT MATCHED THEN INSERT ( ticket_id, concerns ) VALUES ( '123', :bin_data2 );"</span>     <span style="color: #B900B9;">//concern field is binary type</span><br /> </div>[/code:18ff3h7z] Reinaldo.
Binary file to field via SQL - SOLVED!
Francis If I read your post correctly, you are trying to import a binary file to a Sql Table ? If so, the field type ( sql server ) must be VarBinary (max ) or equivalent. Here is the code that has worked for me ( may be xHarbor specific using VTArrayWrapper() ) .. it uses the AppendChunk() method to import any binary file, .pdf, .docx, xls, etc.. I am sure Rao could simplify this code into a wrapper. Rick Lipkin ps .. I did not see you were using Ads .. the code below is generic ansi Sql and works for Access or Ms Sql Server, It may or may not work for Ads <!-- s:| --><img src="{SMILIES_PATH}/icon_neutral.gif" alt=":|" title="Neutral" /><!-- s:| --> [code=fw:3pmekzo1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />/------------------------------<br /><span style="color: #00C800;">Static</span> Func _Doit<span style="color: #000000;">&#40;</span> oRsProj, oRsCh, cPROJECTEID <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> cFILENAME, nSTRING, nLEN, nSTART, SAYING, nDATETIME<br /><span style="color: #00C800;">LOCAL</span> nHANDLE, nBYTES, cEID, cFILE, dDATE<br /><br /><span style="color: #00C800;">LOCAL</span> cBUFFER   <span style="color: #B900B9;">//cBinaryData        // <------- This is the actual data to be stored</span><br /><span style="color: #00C800;">LOCAL</span> nBytesRead<br /><br />cFILE := ALLTRIM<span style="color: #000000;">&#40;</span> cPATH <span style="color: #000000;">&#41;</span>     <span style="color: #B900B9;">// C:\DBTMP\CHARTER.DOC</span><br />nLEN  := LEN<span style="color: #000000;">&#40;</span> cFILE <span style="color: #000000;">&#41;</span><br /><br />nSTART := RAT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<span style="color: #000000;">\"</span>, cFILE )<br /><br />IF nSTART > 0<br />ELSE<br />   SAYING := "</span>INVALID File <span style="color: #0000ff;">name</span> or Location .. Aborting<span style="color: #ff0000;">"<br />   MsgInfo( SAYING )<br />   oDLG:END()<br />   RETURN(.F.)<br />ENDIF<br /><br />// get file name //<br />cFILENAME := SUBSTR( cPATH, nSTART+1, nLEN-nSTART )    // CHARTER.PDF<br /><br />IF LEN(cFILENAME) > 35<br />   SAYING := "</span>Sorry .. the maximum length <span style="color: #0000ff;">of</span> your file<span style="color: #ff0000;">"+chr(10)<br />   SAYING += cFILENAME+CHR(10)<br />   SAYING += "</span>is longer than <span style="color: #000000;">35</span> characters. Please re-<span style="color: #0000ff;">name</span><span style="color: #ff0000;">"+chr(10)<br />   SAYING += "</span>your file <span style="color: #0000ff;">to</span> meet the <span style="color: #000000;">35</span> <span style="color: #0000ff;">max</span> length<span style="color: #ff0000;">"+chr(10)<br />   MsgInfo( saying )<br />   oDlg:end()<br />   RETURN(.F.)<br />ENDIF<br /><br /><br />// open file //<br />nHANDLE := FOpen( cFILE )<br />IF FERROR() <> 0<br />   SAYING := "</span>Error reading file <span style="color: #ff0000;">"+cFILE+CHR(10)<br />   SAYING += "</span> <span style="color: #ff0000;">"+STR(FERROR())+CHR(10)<br />   MsgInfo( SAYING )<br />   oDLG:END()<br />   RETURN(.F.)<br />ENDIF<br /><br />// get number of bytes in file<br />nBYTES := FSEEK( nHANDLE, 0,2 )<br /><br />// pad the buffer nBytes+1<br />cBUFFER := SPACE(nBYTES+1)<br /><br />FSeek( nHANDLE, 0, 0 )<br />nBytesRead   := FRead( nHANDLE, @cBuffer, nBytes )<br /><br />FClose( nHANDLE )<br /><br />if nBytesRead != nBytes<br />   SAYING := "</span>nBytesRead = <span style="color: #ff0000;">"+str(nBYTESREAD)+CHR(10)<br />   SAYING += "</span>nBytes     = <span style="color: #ff0000;">"+str(nBYTES)+CHR(10)<br />   SAYING += "</span>Error Reading <span style="color: #00C800;">Data</span><span style="color: #ff0000;">"+chr(10)<br />   MsgInfo( saying )<br />   oDLG:END()<br />   RETURN ( .F. )<br />endif<br /><br />cEID := _GenEid()<br />IF cEID = "</span>BOGUS<span style="color: #ff0000;">"<br />   oDlg:End()<br />   RETURN(.F.)<br />ENDIF<br /><br />nDateTime := dtoc(date())+"</span> <span style="color: #ff0000;">"+time()<br /><br />oRsCh:AddNew()<br /><br />oRsCh:Fields("</span>chartereid<span style="color: #ff0000;">"):Value    := cEID<br />oRsCH:Fields("</span>projecteid<span style="color: #ff0000;">"):Value    := cPROJECTEID<br />oRsCh:Fields("</span>date_imported<span style="color: #ff0000;">"):Value := nDateTime<br />oRsCh:Fields("</span>imported_by<span style="color: #ff0000;">"):Value   := xLOGIN<br />oRsCh:Fields("</span>datalen<span style="color: #ff0000;">"):Value       := nBYTES<br />oRsCh:Fields("</span>filename<span style="color: #ff0000;">"):Value      := cFILENAME<br />oRsCh:Fields("</span>charter<span style="color: #ff0000;">"):AppendChunk( VTArrayWrapper():New( 17, cBUFFER ) )  // here is the key VTArrayWrapper<br />                                                                     // to make the AppendChunk() work   <br />oRsCh:Update()<br /><br />SysReFresh()<br /><br />SAYING := "</span>Bytes Read   = <span style="color: #ff0000;">"+str(nBYTESREAD)+CHR(10)<br />SAYING += "</span>Bytes Stored = <span style="color: #ff0000;">"+str(nBYTES)+CHR(10)<br />SAYING += "</span>  <span style="color: #ff0000;">"+CHR(10)<br />SAYING += "</span>Upload Complete <span style="color: #00C800;">for</span> file <span style="color: #0000ff;">name</span> <span style="color: #ff0000;">"+cFILENAME+chr(10)<br />MsgInfo( saying )<br /><br />oRsCh:Sort("</span>date_imported<span style="color: #ff0000;">")<br />oRsCh:MoveFirst()<br />oRsCh:Find( "</span>chartereid = <span style="color: #ff0000;">'"+cEID+"'</span><span style="color: #ff0000;">" )<br /><br />oDLG:END()<br />RETURN(.T.)<br /><br /></span></div>[/code:3pmekzo1]
Binary file to field via SQL - SOLVED!
Reinaldo, Thanks for your insights. I've been using that MERGE syntax with no Issue. But anyhow, I followed your suggestion. Then later I realized my stupidity.. You are correct. something went very wrong with my syntax. This is the correct way: [code=fw:26zh5h6u]<div class="fw" id="{CB}" style="font-family: monospace;"><br />MERGE entry_trn <span style="color: #0000ff;">ON</span> <span style="color: #000000;">&#40;</span> ticket_id = <span style="color: #ff0000;">'123'</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">WHEN</span> MATCHED THEN <br /><span style="color: #0000ff;">UPDATE</span> SET concerns = :<span style="color: #000000;">bin_data1</span> &nbsp;<br /><span style="color: #0000ff;">WHEN</span> NOT MATCHED THEN &nbsp;<br />INSERT <span style="color: #000000;">&#40;</span> ticket_id, concerns <span style="color: #000000;">&#41;</span> &nbsp;<br />VALUES <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'123'</span>, :<span style="color: #000000;">bin_data2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;</div>[/code:26zh5h6u] Issue SOLVED.
Binary file to field via SQL - SOLVED!
Rick, [quote:1aamkgq5] If I read your post correctly, you are trying to import a binary file to a Sql Table ? If so, the field type ( sql server ) must be VarBinary (max ) or equivalent. [/quote:1aamkgq5] Yes exactly. the field type in ADS is binary.
Binary value of an integer
Hi, is there any way to convert an integer to its binary value? like dec2bin(5) = 101 ?
Binary value of an integer
NtoC( 5, 2 ) --> '101'
Binary value of an integer
Doesn't work for me <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> msginfo( NtoC( 5, 2 )) ==> '5' is there something I need to configure?
Binary value of an integer
Works for me with xHarbour and linking with ct.lib
Binary value of an integer
Rao, thanks a lot! I've found the problem: There was a function NtoC implemented in my program which had overwritten the original function!
Bind Controls Inside Xbrowse
Hello, can any one help me how can i Bind controls Inside X browse.I want to bind GET and ButtonBmps inside Xbrowse regards, Sajith
Bind Controls Inside Xbrowse
Sajith, You can create child controls very easily, i.e.: @ 2, 2 GET oGet VAR cTest OF oXBrowse A GET will be created as a child control of the xbrowse.
Binding A Resource File Without Relinking the exe
Hello everyone. We have another company localize our resource (.rc) files, and they have a need to bind various revisions to our exe without having our source code, or even the objs. From the Borland documentation I would think that: c:\borland\bcc55\bin\brc32 AppName.rc AppName.exe would compile the .rc to .res, and bind the .res with the .exe. However, while the .res is produced, it is not bound to the .exe (the .exe is not updated at all). I took care to leave off the -r switch which is supposed to prevent binding of the .res to the .exe. I know binding a .res to an .exe was possible with the 16-bit Borland brc.exe utility. Does anyone know how to do it with the 32-bit Borland utilities, or what might be wrong with my syntax? Thanks!
Binding A Resource File Without Relinking the exe
Patrick, You could deliver the resources as a DLL to be used from the EXE. FWH allows that, so you just send them the DLL, they replace the DLL and the application will be updated. Anyhow we are going to review the brc32 flags
Binding A Resource File Without Relinking the exe
Patrick, We have tried: brc32 -fetest.exe test.rc but it does not update test.exe (it should) so you may better go the DLL way
Binding A Resource File Without Relinking the exe
Patrick, To build a DLL 32 bits from a RC please review: fwh\DLL\rc2dll32.bat From your application simply do a: SET RESOURCES TO "YourDLL.DLL" and FWH will search and use the resources from such DLL
Binding A Resource File Without Relinking the exe
Patrick, If I understand you right, you are sending them an EXE that already has resouces bound to it? If so, why not send them one that doesn't? James
Binding A Resource File Without Relinking the exe
Thanks Antonio, I will give the DLL approach a try, though I do prefer the way we have been doing it with a fully self-contained exe with no external code dependencies in which you have to worry that DLL's are all current when a user calls in with dialog anomalies. I've spent the past few hours doing Google searches for brc32 and reading a lot, and from what I can see this a well known bug with brc32. I know it's free software so we can't complain too much, but you would think Borland would have fixed it by now (it's been a problem for years). Is there an alternative to brc32 we could use? Surely resource compiling and binding can't be that obscure a task -- there must be many similar utilities. James - thanks for your suggestion but whether or not we give our localization office an exe with a bound resource is not the issue. The bug in brc32 prevents them from binding their alternative resource files. They would have to use ilink32 and have our link file and obj's at the very least.
Binding A Resource File Without Relinking the exe
Patrick, You may try Microsoft resources compiler instead of Borland's one. Its free, so if you don't locate it just say it, and we will email it to you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Binding A Resource File Without Relinking the exe
please traslate this Quizas mi idea te sirva. Existe una herramienta que es capaz de reemplazar recursos de un exe ya establecido, esta herramienta viene con algunos paquetes que hace un mod a windows xp, que se llama resource hack. por ejemplo los mod de crystal lo utilizan para cambiar iconos, bitmap, dialogos, me inmagino que strings tambien, en estos mod los cambios los hace por comando no via gui segun he logrado ver. <!-- m --><a class="postlink" href="http://delphi.icm.edu.pl/ftp/tools/ResHack.zip">http://delphi.icm.edu.pl/ftp/tools/ResHack.zip</a><!-- m --> salu2 carlos vargas
Binding A Resource File Without Relinking the exe
Patrick, It looks as you have set an autoresponder on your email account. Please email us when you turn it off, thanks
Binding Res-Files into Exe - Vista
I use Borlands RC.Exe to integrate an 16-Bit-ResFile into an 16-Bit-ExeFile. But using 16-Bit-RC.Exe under MS Vista, i get an Error "not an 32-bit-Appication". I use: RC -k x1.Res y1.Exe Is there an workaround or can I use another ResFile-Binder for 16-Bit-Exe?
Binding Res-Files into Exe - Vista
Frank, It looks as you are using Vista 64 bits, so 16 bits applications are no longer supported. Are you able to run your Clipper application ? It may not work too, as it is 16 bits too.
Binding Res-Files into Exe - Vista
I'm using Vista-Business 32 bits; all my DOS- and 16-Bit-Clipper-Apps run without any problems. I have found the solution as a workaround to "Rc.Exe": I'm using now the Blinker-Linkscript-Command "RC" and it works fine. Thanks
Biometria
Cordial Saludo al Foro, En posts anteriores vi que ya se trato el tema de manejo de lectores de huella desde fwh, sin embargo los links para bajar ejemplos ya no estan funcionando. Por favor, si alguien me puede facilitar un codigo fuente de ejemplo para usar la libreria GrFinger.Dll dentro desde fwh les agradeceria. Tengo un sensor UareU-4000 y tengo la version trial de GrFinger. De antemano gracias por la ayuda que me puedan brindar. RCastano
Biometria
hable con Vailton Renato en Brazil: <!-- e --><a href="mailto:renato@kssoftware.com.br">renato@kssoftware.com.br</a><!-- e --> saludos.
Biometria
Gracias Karinha, ya envie un mensaje a Renato. En realidad solo necesito saber como hacer la invocacion de las funciones que trae GrFinger desde FWH. Saludos RIcardo
Biometria
Hola a todos, Trate de buscar el link para el manejo de lector biometrico con la lib grfinger.dll y no esta disponible, si alguien la tiene lo agradeceria, saludos,
Biometric Reader
Dear friends: In a recent application, the client wants the user to identify himself in the LOGIN by his fingerprint. Does the biometric reader work the same as a barcode reader? Someone to give me a thread, or better, if you have a small example, it will be very grateful. Best regards
Biometric Reader
Dear Armando, What biometric reader is it ? It should provide a SDK to be used [url:zvqag2ng]https&#58;//github&#46;com/topics/fingerprint?l=c%2B%2B[/url:zvqag2ng]
Biometric Reader
Hello Armando, at the time I used this biometric reader: <!-- m --><a class="postlink" href="https://secugen.com/products/hamster-iv/">https://secugen.com/products/hamster-iv/</a><!-- m --> But overnight, because of Windows updates, it stopped working <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> But here I am sending you some examples so that you can get an idea of how the process worked: [list:1zeua5ch]Read footprint: BioCapture() Enroll a footprint: BioEnroll() Verify a fingerprint: VerificaHuella()[/list:u:1zeua5ch] [code=fw:1zeua5ch]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">///-------------------------------------------------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> BioCapture<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>      <br /><span style="color: #00C800;">Local</span> oNBioBSP,  nDeviceId, cEnroll, lSecuGen<br /><br />lSecuGen := .t.<br />    <span style="color: #00C800;">TRY</span><br />    oNBioBSP := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SecuBSPMxCOM.APIInterface"</span><span style="color: #000000;">&#41;</span><br />    CATCH<br />      lSecuGen := .f.<br />    END <br />    <br />    <br />    <span style="color: #00C800;">IF</span> !lSecuGen<br />       MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No esta instalado el lector de huella"</span>,<span style="color: #ff0000;">"Verifique por favor..."</span> <span style="color: #000000;">&#41;</span><br />   <br />       oNBioBSP := <span style="color: #00C800;">NIL</span><br />       <span style="color: #00C800;">Return</span> <span style="color: #ff0000;">""</span><br />    End<br /><br /><br /><span style="color: #00C800;">IF</span> lSecuGen <br /><br />   oNBioBSP:<span style="color: #000000;">EnumerateDevice</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   nDeviceId := oNBioBSP:<span style="color: #000000;">DeviceNum</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Numero de Dispositivos</span><br />   <span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> nDeviceId <span style="color: #000000;">&#41;</span><br />      MsgAlert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No esta conectado el Lector Biometrico en su equipo..."</span>,<span style="color: #ff0000;">"Verifique por favor..."</span> <span style="color: #000000;">&#41;</span><br />      oNBioBSP := <span style="color: #00C800;">NIL</span> <br />      <span style="color: #00C800;">Return</span> <span style="color: #ff0000;">""</span>   <br />   End <br />   <br />   nDeviceId := oNBioBSP:<span style="color: #000000;">DeviceID</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br />   oNBioBSP:<span style="color: #000000;">OpenDevice</span><span style="color: #000000;">&#40;</span> nDeviceId <span style="color: #000000;">&#41;</span><br />   <br />   oNBioBSP:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   cEnroll := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">If</span> oNBioBSP:<span style="color: #000000;">ErrorCode</span> == <span style="color: #000000;">0</span><br />      cEnroll := oNBioBSP:<span style="color: #000000;">FIRTextData</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">EndIf</span><br />   oNBioBSP:<span style="color: #000000;">CloseDevice</span><span style="color: #000000;">&#40;</span> nDeviceId <span style="color: #000000;">&#41;</span><br /><br />   oNBioBSP := <span style="color: #00C800;">NIL</span> <br /><br />   <span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> cEnroll <span style="color: #000000;">&#41;</span><br />End<br /><br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><br /><span style="color: #B900B9;">///-------------------------------------------------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> BioEnroll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>       <br /><span style="color: #00C800;">Local</span> oNBioBSP, oDevice, nDeviceId, cEnroll, oExt, oMatch<br /><span style="color: #00C800;">Local</span> oEnroll, oCapture, oExtra, oTemp, oVEr, lOk, hLib, lSecuGen<br /><br />lOk := .T.<br /><span style="color: #00C800;">TRY</span><br />   oNBioBSP:=CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'MyDll.Suma'</span><span style="color: #000000;">&#41;</span><br />   cEnroll := AllTrim<span style="color: #000000;">&#40;</span> oNBioBSP:<span style="color: #000000;">Enroll</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />CATCH<br />  lOk := .f.<br />END<br />    <span style="color: #00C800;">IF</span> !lOk<br />       MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No esta instalado el lector de huella"</span>,<span style="color: #ff0000;">"Verifique por favor..."</span> <span style="color: #000000;">&#41;</span><br />   <br />       oNBioBSP := <span style="color: #00C800;">NIL</span><br />       <span style="color: #00C800;">Return</span> <span style="color: #ff0000;">""</span><br />    End<br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> cEnroll <span style="color: #000000;">&#41;</span>   <br /><br />lSecuGen := .f.<br /><br />lOk := .T.<br /><span style="color: #00C800;">TRY</span><br />oNBioBSP := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NBioBSPCOM.NBioBSP"</span><span style="color: #000000;">&#41;</span><br />CATCH<br />  lOk := .f.<br />END<br /><br /><span style="color: #00C800;">If</span> !lOk<br />    lSecuGen := .t.<br />    <span style="color: #00C800;">TRY</span><br />    oNBioBSP := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SecuBSPMxCOM.APIInterface"</span><span style="color: #000000;">&#41;</span><br />    CATCH<br />      lSecuGen := .f.<br />    END<br />    <span style="color: #00C800;">IF</span> !lSecuGen<br />       MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No esta instalado el lector de huella"</span>,<span style="color: #ff0000;">"Verifique por favor..."</span> <span style="color: #000000;">&#41;</span><br />   <br />       oNBioBSP := <span style="color: #00C800;">NIL</span><br />       <span style="color: #00C800;">Return</span> <span style="color: #ff0000;">""</span><br />    End<br />End<br /><br /><span style="color: #00C800;">IF</span> lSecuGen <br />   oNBioBSP:<span style="color: #000000;">EnumerateDevice</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   nDeviceId := oNBioBSP:<span style="color: #000000;">DeviceNum</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Numero de Dispositivos</span><br />   <span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> nDeviceId <span style="color: #000000;">&#41;</span><br />      MsgAlert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No esta conectado el Lector Biometrico en su equipo..."</span>,<span style="color: #ff0000;">"Verifique por favor..."</span> <span style="color: #000000;">&#41;</span><br />      oNBioBSP := <span style="color: #00C800;">NIL</span> <br />      <span style="color: #00C800;">Return</span> <span style="color: #ff0000;">""</span>   <br />   End <br />   <br />   nDeviceId := oNBioBSP:<span style="color: #000000;">DeviceID</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br />   oNBioBSP:<span style="color: #000000;">OpenDevice</span><span style="color: #000000;">&#40;</span> nDeviceId <span style="color: #000000;">&#41;</span><br />   <br />   oNBioBSP:<span style="color: #000000;">Enroll</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br />   cEnroll := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">If</span> oNBioBSP:<span style="color: #000000;">ErrorCode</span> == <span style="color: #000000;">0</span><br />      cEnroll := oNBioBSP:<span style="color: #000000;">FIRTextData</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">EndIf</span><br />   oNBioBSP:<span style="color: #000000;">CloseDevice</span><span style="color: #000000;">&#40;</span> nDeviceId <span style="color: #000000;">&#41;</span><br /><br />   oNBioBSP := <span style="color: #00C800;">NIL</span> <br />   <br />   <span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> cEnroll <span style="color: #000000;">&#41;</span><br />End<br /><br />lOk := .T.<br /><span style="color: #00C800;">TRY</span><br />   oDevice := oNBioBSP:<span style="color: #000000;">Device</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />CATCH<br />  lOk := .f.<br />END<br /><br /><span style="color: #00C800;">If</span> !lOk<br />   MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No esta instalado el lector de huella"</span>,<span style="color: #ff0000;">"Verifique por favor..."</span> <span style="color: #000000;">&#41;</span><br />   oNBioBSP := <span style="color: #00C800;">NIL</span><br />   <span style="color: #00C800;">Return</span> <span style="color: #ff0000;">""</span><br />End<br /><br />oDevice:<span style="color: #000000;">Enumerate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />nDeviceId := oDevice:<span style="color: #000000;">EnumDeviceID</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />oDevice:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> nDeviceID <span style="color: #000000;">&#41;</span><br /><br />oExt := oNBioBSP:<span style="color: #000000;">Extraction</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />cEnroll := <span style="color: #ff0000;">""</span><br />oExt:<span style="color: #000000;">Enroll</span><span style="color: #000000;">&#40;</span> cEnroll <span style="color: #000000;">&#41;</span><br />cEnroll :=  oExt:<span style="color: #000000;">TextEncodeFIR</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />oDevice:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span> nDeviceID <span style="color: #000000;">&#41;</span><br /><br />oNBioBSP := <span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> cEnroll <span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #B900B9;">///-------------------------------------------------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> VerificaHuella<span style="color: #000000;">&#40;</span>lVer,cUser,cHuella<span style="color: #000000;">&#41;</span>    <br /><span style="color: #00C800;">Local</span> cEnroll1, cEnroll2, cSql, nRet, cUser<br /><br /><span style="color: #00C800;">DEFAULT</span> lVer := .f.<br /><br /><span style="color: #00C800;">If</span> lVer<br />   <span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span>cUser<span style="color: #000000;">&#41;</span><br />      MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No ingreso el ID del Usuario..."</span>,<span style="color: #ff0000;">"Verifique por favor..."</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> <span style="color: #ff0000;">""</span>     <br />   End<br /><span style="color: #00C800;">Else</span><br />    cUser:=Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">40</span><span style="color: #000000;">&#41;</span><br />    _MsgGet<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" Verificando..."</span>,<span style="color: #ff0000;">"Usuario:"</span>,@cUser <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> cUser <span style="color: #000000;">&#41;</span><br />       MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No ingreso el ID del Usuario..."</span>,<span style="color: #ff0000;">"Verifique por favor..."</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">Return</span> <span style="color: #ff0000;">""</span><br />    End<br /><br />End <br /><br />cSql := <span style="color: #ff0000;">"SELECT huellatxt FROM usuarios WHERE usuario='"</span>+allTrim<span style="color: #000000;">&#40;</span>cUser<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"'"</span><br />cEnroll1 := cHuella<br /><span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> cEnroll1 <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">IF</span> lVer<br />      MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"El Usuario actual no tiene definida su Impresion Digital..."</span>,<span style="color: #ff0000;">"Verifique por favor..."</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> .f.<br />   End<br />   MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"El Usuario ingresado no tiene definida su Impresion Digital..."</span>,<span style="color: #ff0000;">"Verifique por favor..."</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Return</span> <span style="color: #ff0000;">""</span><br />End<br />    <br />cEnroll2 := BioCapture<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>        <br /><span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> cEnroll2 <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">If</span> lVer<br />      <span style="color: #00C800;">Return</span> .f.<br />   End<br />   <span style="color: #00C800;">Return</span> <span style="color: #ff0000;">""</span><br />End<br /><br />nret := BioVerify<span style="color: #000000;">&#40;</span> cEnroll1, cEnroll2 <span style="color: #000000;">&#41;</span> <br /><span style="color: #00C800;">If</span> nRet == <span style="color: #000000;">0</span><br />   MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"La Impresion Digital ingresada no Coincide con la del Usuario: "</span>+cUser,<span style="color: #ff0000;">"Verifique por favor..."</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">If</span> lVer<br />      <span style="color: #00C800;">Return</span> .f.<br />   End<br />   cUser := <span style="color: #ff0000;">""</span><br />End<br /><span style="color: #00C800;">If</span> lVer<br />   <span style="color: #00C800;">Return</span> .t.<br />End<br /><br /><span style="color: #00C800;">Return</span> cUser<br /> </div>[/code:1zeua5ch] Best regards. Carlos
Biometric Reader
Antonio firend: The biometric reader has not been purchased yet, I am just starting to investigate what I need, so any advice or suggestion is welcome Best regards
Biometric Reader
Friend Carlos: Your example is a very valuable help, I will review it, thank you very much The biometric reader includes some DLL Best regards
Biometric Reader
Yes Armando, In the request-free-software downloads option on the company's website, you can download the SDK for Windows: [url:fou75pot]https&#58;//secugen&#46;com/request-free-software/[/url:fou75pot] Best regards. Carlos.
Birthday wishes to Reinaldo and Cristobal
Dear Reinaldo and dear Cristobal, Today our friends Reinaldo and Cristobal have their birthday. I wish you all the best. Best regards, Otto It was exciting that I got the notice from WINHOTELs FIVEWIN birthday reminder. I do so often remember the time when we had the xHarbour/Fivewin meeting here in Sillian. I hope we can arrange another meeting soon. [img:28k7srjl]https&#58;//mybergland&#46;com/fwforum/birthday&#46;jpg[/img:28k7srjl]
Birthday wishes to Reinaldo and Cristobal
Dear Mr. Cristobal and Mr. Reinaldo Wish you both Happy Birthday and many happy returns of the day.
Birthday wishes to Reinaldo and Cristobal
Happy Birthday to Reinaldo and Cristobal!!! EMG
Birthday wishes to Reinaldo and Cristobal
Dear Mr. Cristobal and Mr. Reinaldo Wish you both Happy Birthday
Birthday wishes to Reinaldo and Cristobal
Many thanks my friends Dear Otto, we should organize another meeting shortly. The one we did at your hotel was unforgettable.
Birthday wishes to Reinaldo and Cristobal
Hello Cristobal, Yes, we should. The organization is very easy for us. We have the meeting room and the rooms in the hotel available. We can also have a smaller meeting with excellent leisure activities. It is best if everyone who wants to participate leaves a comment or sends us an email. Mod Harbor and getting started with online programming would be a good topic. Best regards Otto 1st FWH + [x]Harbour 2017 international conference [url:3a4gfqkx]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=33515&start=45[/url:3a4gfqkx] [img:3a4gfqkx]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/dolomites2017&#46;jpeg[/img:3a4gfqkx]
Birthday wishes to Reinaldo and Cristobal
Dear Mr. Cristobal, Happy Birthday. Many years of life. Regards, Saludos.
Birthday wishes to Reinaldo and Cristobal
Many thanks Joao
BitMap transparente
Hola Amigos,,, como hacer un BITMAP transparante para colocarlo en un dialogo con un fondo de color distito al default ??Salu2
BitMap transparente
Willi,Tienes un ejemplo en samples\TestFold.prg[code:3sv46tie] REDEFINE BITMAP ID 130 OF oFld&#58;aDialogs&#91; 1 &#93; ; FILE "&#46;&#46;\bitmaps\question&#46;bmp" TRANSPAREN [/code:3sv46tie]
BitMap/Icones (Windows xp) para botoes e barras
Alguem conhece algum site pra pegar BitMaps e/ou Icones, para pegar e usar em botoes e barras na aplicacao (de preferencia tipo windows xp) ? Desde ja agradeco: Muito Obrigado ! Gilberto
BitMap/Icones (Windows xp) para botoes e barras
vejam este: <!-- m --><a class="postlink" href="http://www.download.joejoe.org/">http://www.download.joejoe.org/</a><!-- m -->
BitMaps from memory revisited
Antonio, I use a remote database which has two fields, the second field is a blob that contains a bitmap, which could be .bmp, .jpg, or .png. The first field is just a reference name. I get the data back as an array, then just use SetArray() to load into xbrowse. When I create an xbrowse the bitmap is handled mostly correctly, in that it displays in the grid. I need to take that same bitmap out of the array and simply display it in a window using an appropriate control (TBitmap, TImage, ?) without ever writing the bitmap to disk. There are a large number of examples that show how to load a bitmap from a file on disk, and an equally large number showing how to load a bitmap from a resource, but there are no examples that I can find that show how a bitmap as I have described can be displayed directly from memory without ever putting the file on disk. I know this can be done, xbrowse does it itself when :nEditType is set to EDIT_BUTTON on the field with the bitmap, the default behavior of pressing the button is to open a dialog that displays the bitmap. If I could figure out what is being called by default to manipulate and display that data I could probably figure this out from there, but a simple example would work better. Can I please get an example that shows how to take a bitmap that is in memory either as a harbour variable, or is in a database where it could be accessed using alias->blobname, attach that to an appropriate control and get it to display in either a window or a dialog. I know I can do this by first writing the blob to disk, then reloading from disk, but I have no desire to do this. And, in my case, it will never ever exist as a resource embedded in an .rc file, so examples for loading from resource don't help. Robb
BitMaps from memory revisited
I finally found what I was after reading TBitmap class source, there is a very useful LoadFromString() method that doesn't appear to be documented. It shows not only how to solve my current need, but also illustrates how to do the behind the scenes manipulation. I can make progress again. Robb
BitMaps from memory revisited
Robb, Also you can create a bitmap from memory (and fill its data in) using C language as we do in: fwh\source\function\bitmaps.c
Bitmap
Antonio, I create bitmap from resource like this: [code:2c87qtok] Function TestBmp &#40;&#41; Local oWnd &#58;= Nil Define Window oWnd @ 78, 20 BitMap oBmp Resource 'Info' Size 130, 78 Pixel Activate Window oWnd Return &#46;T&#46; [/code:2c87qtok] Bitmap is not properly displayed. Bitmap size is about 10kB. I send for You original bitmap file and screen from PocketPC. Regards Pawel
Bitmap
Pawel, The bitmap color located at the pixel 0, 0 is used to select the transparent color. As you are using black at 0, 0 in your bitmap, then all black color is made transparent. Change your bitmap color at 0, 0, in example, like this: [url=http&#58;//imageshack&#46;us:3bpj2iz4][img:3bpj2iz4]http&#58;//img50&#46;imageshack&#46;us/img50/8472/info0mv&#46;jpg[/img:3bpj2iz4][/url:3bpj2iz4] and if you use the clause NOBORDER also: @ 78, 20 BitMap Resource 'Info' Size 130, 78 Pixel NOBORDER then it looks like this: [url=http&#58;//imageshack&#46;us:3bpj2iz4][img:3bpj2iz4]http&#58;//img158&#46;imageshack&#46;us/img158/2160/pawel4wh&#46;jpg[/img:3bpj2iz4][/url:3bpj2iz4]
Bitmap
Antonio, thanks Pawel
Bitmap + binary
Good morning everyone, is there any way I can create a bitmap trough of a binary code? follows a txt file with the code I have. Link: <!-- m --><a class="postlink" href="https://mega.co.nz/#!aR8AmLJL!ce5fqX-IPiG9zwlIyLpa_2zO6aVWHByko9pkOpO-X44">https://mega.co.nz/#!aR8AmLJL!ce5fqX-IP ... 9pkOpO-X44</a><!-- m -->
Bitmap + binary
here is a sample to create small bitmaps on the fly [code=fw:1ovm9o3h]<div class="fw" id="{CB}" style="font-family: monospace;">DWORD orange2007s<span style="color: #000000;">&#91;</span><span style="color: #000000;">23</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">26</span><span style="color: #000000;">&#93;</span>=<span style="color: #000000;">&#123;</span><br />    <span style="color: #000000;">&#123;</span> 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde, 0xfffdde<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3, 0xfff9d3<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9, 0xfff6c9<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf, 0xfff3bf<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5, 0xfff0b5<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754, 0xffd754<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f, 0xfcd34f<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b, 0xf9d04b<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47, 0xf6cd47<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43, 0xf3ca43<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f, 0xf0c73f<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a, 0xedc43a<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136, 0xebc136<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32, 0xe8be32<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e, 0xe5bb2e<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a, 0xe2b82a<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425, 0xdfb425<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121, 0xdcb121<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d, 0xd9ae1d<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19, 0xd7ab19<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815, 0xd4a815<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g, 0xd1a50g<span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#123;</span> 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c, 0xcea20c<span style="color: #000000;">&#125;</span><br />    <span style="color: #000000;">&#125;</span>;<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BRUSH2007ORANGES <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />  HBITMAP hBmp;<br /><br />  hBmp = CreateBitmap <span style="color: #000000;">&#40;</span><span style="color: #000000;">26</span>,<span style="color: #000000;">23</span>,<span style="color: #000000;">1</span>,sizeof<span style="color: #000000;">&#40;</span>RGBQUAD<span style="color: #000000;">&#41;</span>*<span style="color: #000000;">8</span>, orange2007s<span style="color: #000000;">&#41;</span>;<br />  hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>long<span style="color: #000000;">&#41;</span> hBmp<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:1ovm9o3h]
Bitmap + binary
Good morning, thank you for attention and now I apologize for not understanding how to work right. The code that returns FastReport for me this is the link I posted in the first topic q. It generates only one line, how should I fill the vector with these my data? just a vector or a matrix of various vectors? and how to add'll call this bitmap? The function that I have to add a Bitmap to FastReport is this: FrPrn: AddPicture ("ReportTitle1", "Name", "C: \ test.bmp", 20, 20, 200, 200) / / ( Mirror: AddPicture (cParent, cName, cFileName, Nleft, NTOP, nWidth, nHeight) ) It's just the cFileName I wish not to use. How do I assimilate the function that you pass to cFileName? that will fill a variable with the result of the function work? Thank you for your attention.
Bitmap + binary
Arthur, arthur.prg [code=fw:39a5f2ak]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cFile := MemoRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"bitmap.txt"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nPos := <span style="color: #000000;">19</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cBytes := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, hBitmap<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> nPos < Len<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">19</span><br />&nbsp; &nbsp; &nbsp; cBytes += Chr<span style="color: #000000;">&#40;</span> HexToDec<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cFile, nPos, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nPos += <span style="color: #000000;">2</span><br />&nbsp; &nbsp;end &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;MemoWrit<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"arthur.txt"</span>, cBytes <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;hBitmap = BuildBitmap<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cBytes, <span style="color: #000000;">23</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBitmap, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> IsGdiObject<span style="color: #000000;">&#40;</span> hBitmap <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hBitmap <span style="color: #000000;">&#41;</span> &nbsp; <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br />HBITMAP CreateMemBitmap3<span style="color: #000000;">&#40;</span> void * cBitmap <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BUILDBITMAP <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> CreateMemBitmap3<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span> &nbsp; <br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:39a5f2ak] [img:39a5f2ak]http&#58;//img27&#46;imageshack&#46;us/img27/3875/9vwx&#46;png[/img:39a5f2ak]
Bitmap + binary
HBITMAP CreateMemBitmap3( void * cBitmap ); it is a new function included in FWH 13.07
Bitmap + binary
Antonio, [quote="Antonio Linares":tsomwvvr][code=fw:tsomwvvr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBitmap, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span></div>[/code:tsomwvvr][/quote:tsomwvvr] Which is better between [code=fw:tsomwvvr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBitmap, nTop, nLeft, nWidth, nHeight <span style="color: #000000;">&#41;</span></div>[/code:tsomwvvr] and [code=fw:tsomwvvr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> PalBmpDraw<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, hBitmap, , nWidth, nHeight <span style="color: #000000;">&#41;</span></div>[/code:tsomwvvr] ? EMG
Bitmap + binary
Antonio, I really liked it and this is exactly q I wish. I'm surprised, I have to confess, but would like to see if there is a possibility of doing something else. Upload this picture in FastReport. If you or someone you know I am extremely grateful. I tried but could not. This is the syntax to add an image in FastReport: AddPicture (cParent, cName, cFileName, Nleft, NTOP, nWidth, nHeight) cParent = is the object where the image is affiliated (Ex: 'Page1') cName = Name that the object of BMP will take the report cFileName = Image path. Here is exactly where I wanted to work. I thank you all.
Bitmap + binary
[quote="Enrico Maria Giordano":xrua752l]Antonio, [quote="Antonio Linares":xrua752l][code=fw:xrua752l]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBitmap, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span></div>[/code:xrua752l][/quote:xrua752l] Which is better between [code=fw:xrua752l]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBitmap, nTop, nLeft, nWidth, nHeight <span style="color: #000000;">&#41;</span></div>[/code:xrua752l] and [code=fw:xrua752l]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> PalBmpDraw<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, hBitmap, , nWidth, nHeight <span style="color: #000000;">&#41;</span></div>[/code:xrua752l] ? EMG[/quote:xrua752l] Up! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG