topic
stringlengths
1
63
text
stringlengths
1
577k
who use PostgreSQL with Fivewin ?
[quote="Jimmy":3ow3b94h]hi, i like to know who is using PostgreSQL with Fivewin <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> it seems me nobody use PostgreSQL but MySQL / MariaDB, or <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> --- if nobody is using PostgreSQL i like to ask for "new Concept" Alaska have a Concept for PostgreSQL so all Xbase++ User will follow it when use PgDBE it would be a big Argument if Fivewin can use PostgreSQL "the same Way" as PgDBE[/quote:3ow3b94h] Hi jimmy My friend Manu Exposito, creator of the MariaDB, SQLite, etc. HDO access library, among other libs, has created a mini object-oriented library to access Postgre. If you want to try it, it's free, it's in [url] <!-- m --><a class="postlink" href="https://forum.modharbour.app/viewtopic.php?f=20&t=526">https://forum.modharbour.app/viewtopic.php?f=20&t=526</a><!-- m --> [/url] Regards Jose.
who use PostgreSQL with Fivewin ?
hi RAO, you do NOT understand what i say: it is not for ME only <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> it is for Xbase++ User who want to change to Fivewin and use PostgreSQL --- i also have made a "native" Version for HMG which can be used under Fivewin but it use GRID not XBROWSEr which is used by Fivewin so Xbase++ User will ask : why use "extra" CODE when all are include in Fivewin as i can say it is METHOD SavePQQ(), which are NOT working as it use "your" Concept, which nobody seems to use it i request a Concept which IS used by Xbase++ User. it need to get "right" PRIMARY KEY which FUNCTION GetSerialCol() does so i´m asking to "enable" existing FUNCTION GetSerialCol(), thats all
who use PostgreSQL with Fivewin ?
hi, thx for Answer [quote="jvtecheto":2pfnrtls]My friend Manu Exposito, creator of the MariaDB, SQLite, etc. HDO access library, among other libs, has created a mini object-oriented library to access Postgre. If you want to try it, it's free, it's in [url] <!-- m --><a class="postlink" href="https://forum.modharbour.app/viewtopic.php?f=20&t=526">https://forum.modharbour.app/viewtopic.php?f=20&t=526</a><!-- m --> [/url][/quote:2pfnrtls] i have to Login / Register to get into Mod_harbout Forum .... --- i do have a "native" Solution to use LibPQ.DLL. under Xbase++ / HMG is use a GRID but under Fivewin i like to use XBROWSEr --- Fivewin does have ALL what is need but PRIMARY KEY is "identify" wrong in METHOD SavePQQ() it does work when use Fivewin Sample but not with PostgreSQL Table made by "other" like Xbase++ but what Sense make a Concept which is not used by any Fivewin User <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
why I can show only the number 17
I must create 16 get and insert the umber from 1 to 16 but i made this test and I can show on all gets only the number 17 why ? where is the error ? [code=fw:27i9oqtt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> BMP_H &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">15</span><br /><span style="color: #00D7D7;">#define</span> BMP_V &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">15</span><br /><span style="color: #00D7D7;">#define</span> &nbsp; TOTY &nbsp; &nbsp; &nbsp; <span style="color: #000000;">16</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">Local</span> oDlg<br /><span style="color: #00C800;">Local</span> nY &nbsp;:= <span style="color: #000000;">1</span><br /><span style="color: #00C800;">Local</span> nX &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp;<span style="color: #00C800;">Local</span> nRow:=<span style="color: #000000;">10</span><br /><span style="color: #00C800;">Local</span> ncol:=<span style="color: #000000;">1</span><br /><span style="color: #00C800;">Local</span> oget<span style="color: #000000;">&#91;</span> &nbsp;TOTY <span style="color: #000000;">&#93;</span><br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">from</span> <span style="color: #000000;">10</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">46</span><br /><br /><br />@ nrow<span style="color: #000000;">-10</span>, ncol <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Fila"</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">SIZE</span> &nbsp;BMP_H,BMP_V<br /><span style="color: #00C800;">For</span> nY := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> TOTY<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ nrow, ncol <span style="color: #0000ff;">GET</span> oGet<span style="color: #000000;">&#91;</span> nY<span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nY &nbsp;<span style="color: #0000ff;">SIZE</span> &nbsp;BMP_H,BMP_V <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">picture</span> <span style="color: #ff0000;">"99"</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nrow :=nrow+ BMP_H<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nCol := <span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">Next</span> nY<br /><br /><br />&nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span></div>[/code:27i9oqtt]
why I can show only the number 17
of course... always should be 17 "nY" variable when end bucle "FOR" is = 17 you need think other way to do it
why I can show only the number 17
silvio try with... [code=fw:27pn9if8]<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: #00D7D7;">#define</span> BMP_H &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">15</span><br /><span style="color: #00D7D7;">#define</span> BMP_V &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">15</span><br /><span style="color: #00D7D7;">#define</span> &nbsp; TOTY &nbsp; &nbsp; &nbsp; <span style="color: #000000;">16</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oDlg<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nY &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nX &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nRow:=<span style="color: #000000;">10</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> ncol:=<span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oget<span style="color: #000000;">&#91;</span> &nbsp;TOTY <span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">from</span> <span style="color: #000000;">10</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">46</span><br /><br /><br />&nbsp; &nbsp;@ nrow<span style="color: #000000;">-10</span>, ncol <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Fila"</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">SIZE</span> &nbsp;BMP_H,BMP_V<br />&nbsp; &nbsp;<span style="color: #00C800;">For</span> nY := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> TOTY<br />&nbsp; &nbsp; &nbsp; oGet<span style="color: #000000;">&#91;</span> nY <span style="color: #000000;">&#93;</span> := tget<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span>nRow, nCol, SetGet<span style="color: #000000;">&#40;</span> nY <span style="color: #000000;">&#41;</span>, oDlg, BMP_H, BMP_V, <span style="color: #ff0000;">"99"</span>,,,,,,,.t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nRow += BMP_H<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp;<br />&nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;<br />&nbsp;<span style="color: #00C800;">function</span> SetGet<span style="color: #000000;">&#40;</span> nY <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">return</span> bSETGET<span style="color: #000000;">&#40;</span> nY <span style="color: #000000;">&#41;</span></div>[/code:27pn9if8]
why I can show only the number 17
Daniel , U'RE the BEST
why Python ?
Google launched TensorFlow on February 2017. In less than one year, TensorFlow is a worldwide standard for AI. TensorFlow core is developed in C/C++ but the existing high level wrappers are coded in Python. So like it or not, we need to use some Python for now <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> We are building the TensorFlow language bindings for Harbour and FWH, but for now, we are far away from the functionality that we get using Python. We are going to show you how easily you can use Python from your FWH and harbour apps <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Just relax, open your mind and enjoy the travel <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
why not show the bitmap ?
[code=fw:3f130zwn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><br />Funcion test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> OwND,nspace:=<span style="color: #000000;">0</span><br /><br />&nbsp;hBtnSeparator := BMPBTNDBAR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> OwND<br /><br />&nbsp;oBar :=TBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> OwND, <span style="color: #000000;">26</span>, <span style="color: #000000;">26</span>, .T., <span style="color: #ff0000;">"TOP"</span>, , .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">for</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">3</span><br /><br />DrawMasked<span style="color: #000000;">&#40;</span> oBar:<span style="color: #000000;">hDC</span>, hBtnSeparator, oBar:<span style="color: #000000;">ntop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+4</span>, nspace <span style="color: #000000;">&#41;</span><br />&nbsp;<br />DeleteObject<span style="color: #000000;">&#40;</span>hBtnSeparator<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> OWND<br /><br />retur <span style="color: #00C800;">nil</span> <br /><br /><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------//</span><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Windows.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><br /><br /><br /><br /><br />DWORD btndbar <span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>=<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,0*/</span>0xff00ff,<span style="color: #B900B9;">/*1,0*/</span>0xff00ff,<span style="color: #B900B9;">/*2,0*/</span>0xff00ff,<span style="color: #B900B9;">/*3,0*/</span>0xff00ff,<span style="color: #B900B9;">/*4,0*/</span>0xff00ff,<span style="color: #B900B9;">/*5,0*/</span>0xff00ff,<span style="color: #B900B9;">/*6,0*/</span>0xff00ff,<span style="color: #B900B9;">/*7,0*/</span>0xff00ff,<span style="color: #B900B9;">/*8,0*/</span>0xff00ff,<span style="color: #B900B9;">/*9,0*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,1*/</span>0xff00ff,<span style="color: #B900B9;">/*1,1*/</span>0x668eaf,<span style="color: #B900B9;">/*2,1*/</span>0x668eaf,<span style="color: #B900B9;">/*3,1*/</span>0x668eaf,<span style="color: #B900B9;">/*4,1*/</span>0x668eaf,<span style="color: #B900B9;">/*5,1*/</span>0x668eaf,<span style="color: #B900B9;">/*6,1*/</span>0x668eaf,<span style="color: #B900B9;">/*7,1*/</span>0xff00ff,<span style="color: #B900B9;">/*8,1*/</span>0xff00ff,<span style="color: #B900B9;">/*9,1*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,2*/</span>0xff00ff,<span style="color: #B900B9;">/*1,2*/</span>0x668eaf,<span style="color: #B900B9;">/*2,2*/</span>0xfefeff,<span style="color: #B900B9;">/*3,2*/</span>0xfefeff,<span style="color: #B900B9;">/*4,2*/</span>0xfefeff,<span style="color: #B900B9;">/*5,2*/</span>0xfefeff,<span style="color: #B900B9;">/*6,2*/</span>0xfefeff,<span style="color: #B900B9;">/*7,2*/</span>0xff00ff,<span style="color: #B900B9;">/*8,2*/</span>0xff00ff,<span style="color: #B900B9;">/*9,2*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,3*/</span>0xff00ff,<span style="color: #B900B9;">/*1,3*/</span>0x668eaf,<span style="color: #B900B9;">/*2,3*/</span>0xfefeff,<span style="color: #B900B9;">/*3,3*/</span>0xff00ff,<span style="color: #B900B9;">/*4,3*/</span>0xff00ff,<span style="color: #B900B9;">/*5,3*/</span>0xff00ff,<span style="color: #B900B9;">/*6,3*/</span>0xff00ff,<span style="color: #B900B9;">/*7,3*/</span>0xff00ff,<span style="color: #B900B9;">/*8,3*/</span>0xff00ff,<span style="color: #B900B9;">/*9,3*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,4*/</span>0xff00ff,<span style="color: #B900B9;">/*1,4*/</span>0x668eaf,<span style="color: #B900B9;">/*2,4*/</span>0xfefeff,<span style="color: #B900B9;">/*3,4*/</span>0xff00ff,<span style="color: #B900B9;">/*4,4*/</span>0x668eaf,<span style="color: #B900B9;">/*5,4*/</span>0xfefeff,<span style="color: #B900B9;">/*6,4*/</span>0xff00ff,<span style="color: #B900B9;">/*7,4*/</span>0x668eaf,<span style="color: #B900B9;">/*8,4*/</span>0xfefeff,<span style="color: #B900B9;">/*9,4*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,5*/</span>0xff00ff,<span style="color: #B900B9;">/*1,5*/</span>0x668eaf,<span style="color: #B900B9;">/*2,5*/</span>0xfefeff,<span style="color: #B900B9;">/*3,5*/</span>0xff00ff,<span style="color: #B900B9;">/*4,5*/</span>0xff00ff,<span style="color: #B900B9;">/*5,5*/</span>0x668eaf,<span style="color: #B900B9;">/*6,5*/</span>0x668eaf,<span style="color: #B900B9;">/*7,5*/</span>0x668eaf,<span style="color: #B900B9;">/*8,5*/</span>0xfefeff,<span style="color: #B900B9;">/*9,5*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,6*/</span>0xff00ff,<span style="color: #B900B9;">/*1,6*/</span>0x668eaf,<span style="color: #B900B9;">/*2,6*/</span>0xfefeff,<span style="color: #B900B9;">/*3,6*/</span>0xff00ff,<span style="color: #B900B9;">/*4,6*/</span>0xff00ff,<span style="color: #B900B9;">/*5,6*/</span>0x668eaf,<span style="color: #B900B9;">/*6,6*/</span>0x668eaf,<span style="color: #B900B9;">/*7,6*/</span>0x668eaf,<span style="color: #B900B9;">/*8,6*/</span>0xfefeff,<span style="color: #B900B9;">/*9,6*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,7*/</span>0xff00ff,<span style="color: #B900B9;">/*1,7*/</span>0xff00ff,<span style="color: #B900B9;">/*2,7*/</span>0xff00ff,<span style="color: #B900B9;">/*3,7*/</span>0xff00ff,<span style="color: #B900B9;">/*4,7*/</span>0x668eaf,<span style="color: #B900B9;">/*5,7*/</span>0x668eaf,<span style="color: #B900B9;">/*6,7*/</span>0x668eaf,<span style="color: #B900B9;">/*7,7*/</span>0x668eaf,<span style="color: #B900B9;">/*8,7*/</span>0xfefeff,<span style="color: #B900B9;">/*9,7*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,8*/</span>0xff00ff,<span style="color: #B900B9;">/*1,8*/</span>0xff00ff,<span style="color: #B900B9;">/*2,8*/</span>0xff00ff,<span style="color: #B900B9;">/*3,8*/</span>0xff00ff,<span style="color: #B900B9;">/*4,8*/</span>0xff00ff,<span style="color: #B900B9;">/*5,8*/</span>0xfefeff,<span style="color: #B900B9;">/*6,8*/</span>0xfefeff,<span style="color: #B900B9;">/*7,8*/</span>0xfefeff,<span style="color: #B900B9;">/*8,8*/</span>0xfefeff,<span style="color: #B900B9;">/*9,8*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,9*/</span>0xff00ff,<span style="color: #B900B9;">/*1,9*/</span>0xff00ff,<span style="color: #B900B9;">/*2,9*/</span>0xff00ff,<span style="color: #B900B9;">/*3,9*/</span>0xff00ff,<span style="color: #B900B9;">/*4,9*/</span>0xff00ff,<span style="color: #B900B9;">/*5,9*/</span>0xff00ff,<span style="color: #B900B9;">/*6,9*/</span>0xff00ff,<span style="color: #B900B9;">/*7,9*/</span>0xff00ff,<span style="color: #B900B9;">/*8,9*/</span>0xff00ff,<span style="color: #B900B9;">/*9,9*/</span>0xff00ff<span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span>;<br /><br /><br />&nbsp;HBITMAP BitmapFromCode<span style="color: #000000;">&#40;</span> int iWidth, int iHeight, VOID* ImageBits <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> CreateBitmap<span style="color: #000000;">&#40;</span>iWidth,iHeight,<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>, ImageBits<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BMPBTNDBAR <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> BitmapFromCode<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, &btndbar <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br />&nbsp; <span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:3f130zwn]
why not show the bitmap ?
Hello Silvio. 1.- test error, FOR without NEXT 2.- IS NOT Funcion, is FUNCTION 3- there are not valid hDC in oBar control, you need one test this example [code=fw:3vxnd6nj]<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> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">Local</span> oWnd, oBar<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br />   oBar = TBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #000000;">26</span>, <span style="color: #000000;">26</span>, .T., <span style="color: #ff0000;">"TOP"</span>, , .T. <span style="color: #000000;">&#41;</span><br />   oBar:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">&#123;</span> | hDC | DrawOnBar<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #00C800;">FUNCTION</span> DrawOnBar<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> i,nspace:=<span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span> hBtnSeparator<br />   <br />   hBtnSeparator = BMPBTNDBAR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">for</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">3</span><br />      DrawMasked<span style="color: #000000;">&#40;</span> hDC, hBtnSeparator, <span style="color: #000000;">10</span>, nspace <span style="color: #000000;">&#41;</span><br />      nspace += <span style="color: #000000;">100</span><br />   <span style="color: #00C800;">next</span> <br />   <br />   DeleteObject<span style="color: #000000;">&#40;</span> hBtnSeparator <span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------//</span><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Windows.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><br /><br />DWORD btndbar <span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>=<span style="color: #000000;">&#123;</span><br />        <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,0*/</span>0xff00ff,<span style="color: #B900B9;">/*1,0*/</span>0xff00ff,<span style="color: #B900B9;">/*2,0*/</span>0xff00ff,<span style="color: #B900B9;">/*3,0*/</span>0xff00ff,<span style="color: #B900B9;">/*4,0*/</span>0xff00ff,<span style="color: #B900B9;">/*5,0*/</span>0xff00ff,<span style="color: #B900B9;">/*6,0*/</span>0xff00ff,<span style="color: #B900B9;">/*7,0*/</span>0xff00ff,<span style="color: #B900B9;">/*8,0*/</span>0xff00ff,<span style="color: #B900B9;">/*9,0*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />        <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,1*/</span>0xff00ff,<span style="color: #B900B9;">/*1,1*/</span>0x668eaf,<span style="color: #B900B9;">/*2,1*/</span>0x668eaf,<span style="color: #B900B9;">/*3,1*/</span>0x668eaf,<span style="color: #B900B9;">/*4,1*/</span>0x668eaf,<span style="color: #B900B9;">/*5,1*/</span>0x668eaf,<span style="color: #B900B9;">/*6,1*/</span>0x668eaf,<span style="color: #B900B9;">/*7,1*/</span>0xff00ff,<span style="color: #B900B9;">/*8,1*/</span>0xff00ff,<span style="color: #B900B9;">/*9,1*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />        <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,2*/</span>0xff00ff,<span style="color: #B900B9;">/*1,2*/</span>0x668eaf,<span style="color: #B900B9;">/*2,2*/</span>0xfefeff,<span style="color: #B900B9;">/*3,2*/</span>0xfefeff,<span style="color: #B900B9;">/*4,2*/</span>0xfefeff,<span style="color: #B900B9;">/*5,2*/</span>0xfefeff,<span style="color: #B900B9;">/*6,2*/</span>0xfefeff,<span style="color: #B900B9;">/*7,2*/</span>0xff00ff,<span style="color: #B900B9;">/*8,2*/</span>0xff00ff,<span style="color: #B900B9;">/*9,2*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />        <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,3*/</span>0xff00ff,<span style="color: #B900B9;">/*1,3*/</span>0x668eaf,<span style="color: #B900B9;">/*2,3*/</span>0xfefeff,<span style="color: #B900B9;">/*3,3*/</span>0xff00ff,<span style="color: #B900B9;">/*4,3*/</span>0xff00ff,<span style="color: #B900B9;">/*5,3*/</span>0xff00ff,<span style="color: #B900B9;">/*6,3*/</span>0xff00ff,<span style="color: #B900B9;">/*7,3*/</span>0xff00ff,<span style="color: #B900B9;">/*8,3*/</span>0xff00ff,<span style="color: #B900B9;">/*9,3*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />        <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,4*/</span>0xff00ff,<span style="color: #B900B9;">/*1,4*/</span>0x668eaf,<span style="color: #B900B9;">/*2,4*/</span>0xfefeff,<span style="color: #B900B9;">/*3,4*/</span>0xff00ff,<span style="color: #B900B9;">/*4,4*/</span>0x668eaf,<span style="color: #B900B9;">/*5,4*/</span>0xfefeff,<span style="color: #B900B9;">/*6,4*/</span>0xff00ff,<span style="color: #B900B9;">/*7,4*/</span>0x668eaf,<span style="color: #B900B9;">/*8,4*/</span>0xfefeff,<span style="color: #B900B9;">/*9,4*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />        <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,5*/</span>0xff00ff,<span style="color: #B900B9;">/*1,5*/</span>0x668eaf,<span style="color: #B900B9;">/*2,5*/</span>0xfefeff,<span style="color: #B900B9;">/*3,5*/</span>0xff00ff,<span style="color: #B900B9;">/*4,5*/</span>0xff00ff,<span style="color: #B900B9;">/*5,5*/</span>0x668eaf,<span style="color: #B900B9;">/*6,5*/</span>0x668eaf,<span style="color: #B900B9;">/*7,5*/</span>0x668eaf,<span style="color: #B900B9;">/*8,5*/</span>0xfefeff,<span style="color: #B900B9;">/*9,5*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />        <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,6*/</span>0xff00ff,<span style="color: #B900B9;">/*1,6*/</span>0x668eaf,<span style="color: #B900B9;">/*2,6*/</span>0xfefeff,<span style="color: #B900B9;">/*3,6*/</span>0xff00ff,<span style="color: #B900B9;">/*4,6*/</span>0xff00ff,<span style="color: #B900B9;">/*5,6*/</span>0x668eaf,<span style="color: #B900B9;">/*6,6*/</span>0x668eaf,<span style="color: #B900B9;">/*7,6*/</span>0x668eaf,<span style="color: #B900B9;">/*8,6*/</span>0xfefeff,<span style="color: #B900B9;">/*9,6*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />        <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,7*/</span>0xff00ff,<span style="color: #B900B9;">/*1,7*/</span>0xff00ff,<span style="color: #B900B9;">/*2,7*/</span>0xff00ff,<span style="color: #B900B9;">/*3,7*/</span>0xff00ff,<span style="color: #B900B9;">/*4,7*/</span>0x668eaf,<span style="color: #B900B9;">/*5,7*/</span>0x668eaf,<span style="color: #B900B9;">/*6,7*/</span>0x668eaf,<span style="color: #B900B9;">/*7,7*/</span>0x668eaf,<span style="color: #B900B9;">/*8,7*/</span>0xfefeff,<span style="color: #B900B9;">/*9,7*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />        <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,8*/</span>0xff00ff,<span style="color: #B900B9;">/*1,8*/</span>0xff00ff,<span style="color: #B900B9;">/*2,8*/</span>0xff00ff,<span style="color: #B900B9;">/*3,8*/</span>0xff00ff,<span style="color: #B900B9;">/*4,8*/</span>0xff00ff,<span style="color: #B900B9;">/*5,8*/</span>0xfefeff,<span style="color: #B900B9;">/*6,8*/</span>0xfefeff,<span style="color: #B900B9;">/*7,8*/</span>0xfefeff,<span style="color: #B900B9;">/*8,8*/</span>0xfefeff,<span style="color: #B900B9;">/*9,8*/</span>0xff00ff<span style="color: #000000;">&#125;</span>,<br />        <span style="color: #000000;">&#123;</span><span style="color: #B900B9;">/*0,9*/</span>0xff00ff,<span style="color: #B900B9;">/*1,9*/</span>0xff00ff,<span style="color: #B900B9;">/*2,9*/</span>0xff00ff,<span style="color: #B900B9;">/*3,9*/</span>0xff00ff,<span style="color: #B900B9;">/*4,9*/</span>0xff00ff,<span style="color: #B900B9;">/*5,9*/</span>0xff00ff,<span style="color: #B900B9;">/*6,9*/</span>0xff00ff,<span style="color: #B900B9;">/*7,9*/</span>0xff00ff,<span style="color: #B900B9;">/*8,9*/</span>0xff00ff,<span style="color: #B900B9;">/*9,9*/</span>0xff00ff<span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span>;<br /><br /> HBITMAP BitmapFromCode<span style="color: #000000;">&#40;</span> int iWidth, int iHeight, VOID* ImageBits <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />        <span style="color: #00C800;">return</span> CreateBitmap<span style="color: #000000;">&#40;</span>iWidth,iHeight,<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>, ImageBits<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BMPBTNDBAR <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>long<span style="color: #000000;">&#41;</span> BitmapFromCode<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, &btndbar <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:3vxnd6nj]
why not show the bitmap ?
THANKS
width of the browse column
Hi, all ! I need to perform my procedure when changing the width of the browse column with the mouse. Can this be done ?
width of the browse column
You need to modify the method ResizeEnd() of TXBrwColumn
width of the browse column
I understood. Thanks Mr. Rao
wifi
it is possible check the level of the wireless ? I use win ce 50/6.1 HTc TYNT II
wifi
Hello Silvio, have you found a way to check the level of wireless lan? Best regads, Otto
wifi
Otto, I need it because a man use the htc from beach and the server is on the chalet and use it to see the situation of umbrellas on beach. I wanted see a progress bar with the level of wifi and battery have you an idea ?
wifi
Hello Silvio, only an idea - I would use ftp via Internet in your case. WLAN is very limited (50-100m???). I have a ftp up – and download for such purpose for my mobile ECR on HTC. Best regards, Otto
wifi
I wish create also ftp link but I not Know How I can make it have uou an sample ? the wifi is too slow and danger beacuse we can found on beach smarthphone and phones with wifi system and How you sad we can use it on 50-100 metres.
wifi
Hello Silvio, here is my code. 1) FWppc for the handy 2 ) FW for the PC Best regards, Otto [quote:1i3nsr43] // FTP sample developed by Enrico Maria Giordano #include "Fwce.ch" #define FILE_ATTRIBUTE_READONLY 1 #define FILE_ATTRIBUTE_HIDDEN 2 #define FILE_ATTRIBUTE_SYSTEM 4 #define FILE_ATTRIBUTE_DIRECTORY 16 #define FILE_ATTRIBUTE_ARCHIVE 32 #define FILE_ATTRIBUTE_NORMAL 128 #define FILE_ATTRIBUTE_TEMPORARY 256 // // access types for InternetOpen() // #define INTERNET_OPEN_TYPE_PRECONFIG 0 // use registry configuration #define INTERNET_OPEN_TYPE_DIRECT 1 // direct to net #define INTERNET_OPEN_TYPE_PROXY 3 // via named proxy #define INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY 4 // prevent using java/script/INS // // manifests // #define INTERNET_INVALID_PORT_NUMBER 0 // use the protocol-specific default #define INTERNET_DEFAULT_FTP_PORT 21 // default for FTP servers #define INTERNET_DEFAULT_GOPHER_PORT 70 // " " gopher " #define INTERNET_DEFAULT_HTTP_PORT 80 // " " HTTP " #define INTERNET_DEFAULT_HTTPS_PORT 443 // " " HTTPS " #define INTERNET_DEFAULT_SOCKS_PORT 1080 // default for SOCKS firewall servers. // // service types for InternetConnect() // #define INTERNET_SERVICE_FTP 1 #define INTERNET_SERVICE_GOPHER 2 #define INTERNET_SERVICE_HTTP 3 // // flags for FTP // #define INTERNET_FLAG_TRANSFER_ASCII 1 #define INTERNET_FLAG_TRANSFER_BINARY 2 //----------------------------------------------------------------------------// function Main() local oWnd, oTmr DEFINE WINDOW oWnd TITLE "Timers" ; DEFINE TIMER oTmr INTERVAL 500 ACTION (oTmr:DeActivate(),oWnd:Say( 10, 17, Time() ), upload(),oTmr:Activate() ) ACTIVATE TIMER oTmr ACTIVATE WINDOW oWnd ON INIT (oWnd:SetSize( 200, 200, .T. )); ON CLICK MsgInfo( "Click!" ) oTmr:End() return nil //----------------------------------------------------------------------------// FUNC upload() LOCAL hInternet, hConnect local aInfo := {} LOCAL I := 0 aInfo := Directory( CurDir() + "\*.TXT" ) if Len( aInfo ) > 0 hGprs:=GprsConnect() hInternet = INTERNETOPEN( "216.117.77.7", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) IF hINTERNET = 0 MSGINFO("ERREUR CONNEXION INTERNET envoi sortant") RETURN .F. ENDIF // hConnect = INTERNETCONNECT( hInternet, "216.117.77.7", INTERNET_INVALID_PORT_NUMBER, "testinfo", "test", INTERNET_SERVICE_FTP, 0, 0 ) hConnect = INTERNETCONNECT( hInternet, "ftp.test.info", INTERNET_INVALID_PORT_NUMBER, "testinfo", "test", INTERNET_SERVICE_FTP, 0, 0 ) //msginfo( " hInternet " + str(hInternet) +" hConnect " + str( hConnect)) IF hConnect = 0 MSGINFO("ERREUR Création CONNEXION FTP envoi sortant ... Abandon transmission ") RETURN .F. ENDIF //? FTPGETFILE( hConnect, "Your remote file", "Your local file", 0, FILE_ATTRIBUTE_ARCHIVE, 0, 0 ) //? FTPPUTFILE( hConnect, "Your local file", "Your remote file", 0, 0 ) // IF file(CurDir() + "\test.txt")=.t. // msginfo("Datei vorhanden") // ENDIF aInfo := Directory( CurDir() + "\*.TXT" ) FOR I := 1 TO Len( aInfo ) msginfo( aInfo[I,1]) //msginfo( FTPPUTFILE( hConnect, CurDir() +"\"+ aInfo[I,1], "/testinfo/STB1/"+aInfo[I,1], 0, 0 )) if FTPPUTFILE( hConnect, CurDir() +"\"+ aInfo[I,1], "/testinfo/STB1/"+aInfo[I,1], 0, 0 )=.t. /* DLL32 FUNCTION FtpPutFile( hFTP AS LONG, cFileName AS LPSTR, cDestFile AS LPSTR,; n1 AS LONG, n2 AS LONG ) */ ferase ( CurDir() +"\"+aInfo[I,1]) else msginfo("konnte nicht gesendet werden: " + aInfo[I,1]) endif NEXT INTERNETCLOSEHANDLE( hConnect ) INTERNETCLOSEHANDLE( hInternet ) //msginfo("OK") endif RETURN NIL #pragma BEGINDUMP #include "windows.h" #include "wininet.h" #include "hbapi.h" #include "initguid.h" #include "connmgr.h" LPWSTR AnsiToWide( LPSTR ); HB_FUNC (GPRSCONNECT) { // By Pawel HANDLE phWebConnection = NULL; DWORD pdwStatus = 0; //Comprobamos si ya estamos conectados. ConnMgrConnectionStatus (phWebConnection, &pdwStatus); if (pdwStatus == CONNMGR_STATUS_CONNECTED) { hb_retnl( (long) 0 ); } else { //No estamos conectados. //CONNECTIONINFO es la estructura que //le indica al Connection manager como nos queremos conectar. CONNMGR_CONNECTIONINFO sConInfo; memset (&sConInfo,0, sizeof (CONNMGR_CONNECTIONINFO)); sConInfo.cbSize = sizeof (CONNMGR_CONNECTIONINFO); sConInfo.dwParams = CONNMGR_PARAM_GUIDDESTNET; //Queremos usar parametros "GuisDesNet" sConInfo.dwPriority = CONNMGR_PRIORITY_USERINTERACTIVE; //Esta es la prioridad mas alta. sConInfo.dwFlags = CONNMGR_FLAG_PROXY_HTTP; sConInfo.bExclusive = TRUE ; //Permitimos compartir la conexion con otras aplicaciones. sConInfo.bDisabled = FALSE; sConInfo.guidDestNet = IID_DestNetInternet; if (ConnMgrEstablishConnection (&sConInfo, &phWebConnection) == S_OK) { unsigned int k; for( k = 0; k < 8; k ++) { ConnMgrConnectionStatus(phWebConnection,&pdwStatus); if (pdwStatus == CONNMGR_STATUS_CONNECTED) { hb_retnl( (long) phWebConnection ); } if (pdwStatus == CONNMGR_STATUS_CONNECTIONCANCELED || pdwStatus == CONNMGR_STATUS_WAITINGCONNECTIONABORT) { hb_retnl( (long) -1 ); } Sleep (2500); } hb_retnl( (long) phWebConnection ); } else { hb_retnl( (long) -1 ); } } } HB_FUNC (GPRSRELEASE) { HANDLE hCon= NULL; ConnMgrReleaseConnection( ( HANDLE ) hb_parnl( 1 ),2 ); } HB_FUNC( INTERNETOPEN ) { LPWSTR cAgent = AnsiToWide( hb_parc( 1 ) ); LPWSTR cProxyName = AnsiToWide( hb_parc( 3 ) ); LPWSTR cProxyBypass = AnsiToWide( hb_parc( 4 ) ); HINTERNET hInternet = InternetOpen( cAgent, hb_parnl( 2 ), cProxyName, cProxyBypass, hb_parnl( 5 ) ); hb_xfree( cAgent ); hb_xfree( cProxyName ); hb_xfree( cProxyBypass ); hb_retnl( ( LONG ) hInternet ); } HB_FUNC( INTERNETCLOSEHANDLE ) { hb_retl( InternetCloseHandle( ( HINTERNET ) hb_parnl( 1 ) ) ); } HB_FUNC( INTERNETCONNECT ) { LPWSTR cServerName = AnsiToWide( hb_parc( 2 ) ); LPWSTR cUserName = AnsiToWide( hb_parc( 4 ) ); LPWSTR cPassword = AnsiToWide( hb_parc( 5 ) ); HINTERNET hInternet = InternetConnect( ( HINTERNET ) hb_parnl( 1 ), cServerName, ( INTERNET_PORT ) hb_parnl( 3 ), cUserName, cPassword, hb_parnl( 6 ), hb_parnl( 7 ), hb_parnl( 8 ) ); hb_xfree( cServerName ); hb_xfree( cUserName ); hb_xfree( cPassword ); hb_retnl( ( LONG ) hInternet ); } HB_FUNC( FTPGETFILE ) { LPWSTR cRemoteFile = AnsiToWide( hb_parc( 2 ) ); LPWSTR cNewFile = AnsiToWide( hb_parc( 3 ) ); hb_retl( FtpGetFile( ( HINTERNET ) hb_parnl( 1 ), cRemoteFile, cNewFile, hb_parl( 4 ), hb_parnl( 5 ), hb_parnl( 6 ), hb_parnl( 7 ) ) ); hb_xfree( cRemoteFile ); hb_xfree( cNewFile ); } HB_FUNC( FTPPUTFILE ) { LPWSTR cLocalFile = AnsiToWide( hb_parc( 2 ) ); LPWSTR cNewRemoteFile = AnsiToWide( hb_parc( 3 ) ); hb_retl( FtpPutFile( ( HINTERNET ) hb_parnl( 1 ), cLocalFile, cNewRemoteFile, hb_parnl( 4 ), hb_parnl( 5 ) ) ); hb_xfree( cLocalFile ); hb_xfree( cNewRemoteFile ); } #pragma ENDDUMP [/quote:1i3nsr43] And here the code for download: [quote:1i3nsr43] // Testing the FiveWin new Internet Classes #include "FiveWin.ch" //----------------------------------------------------------------------------// function Main() local oWnd, oTmr DEFINE WINDOW oWnd TITLE "Timers" DEFINE TIMER oTmr INTERVAL 10000 ACTION (oTmr:DeActivate(),oWnd:Say( 10, 17, Time() ), upload(),oTmr:Activate() ) of oWnd ACTIVATE TIMER oTmr ACTIVATE WINDOW oWnd ; ON CLICK MsgInfo( "Click!" ) oTmr:End() return nil //----------------------------------------------------------------------------// FUNC upload() local oInternet := TInternet():New() local oFTP := TFTP():New( "ftp.test.info", oInternet,"testinfo", "test" ) local aFiles LOCAL handle local cFile := "" if ! Empty( oFTP:hFTP ) /* DLL32 FUNCTION FtpSetCurrentDirectory( hFTP AS LONG, cDirName AS LPSTR ) ; AS BOOL PASCAL ; */ FtpSetCurrentDirectory(oFTP:hFTP, "/testinfo/STB1/") aFiles = oFTP:Directory("*.*" ) IF len(aFiles) > 0 AEval( aFiles, { | aFile | msginfo( aFile[ 1 ] ),cFile := ALLTRIM( aFile[ 1 ] ),; cFile := STRTRAN(UPPER(cFile),".TXT",".LTX"),; memowrit( "c:\dbf\" + cFile, ("STBWEB "+DTOC(date())+" / "+time()) ) ,; FtpGetFile (oFTP:hFTP,aFile[ 1 ], "c:\dbf\" + aFile[ 1 ] ,.t.,0,0,0 ) ,; oFTP:DeleteFile( aFile[ 1 ]),; ferase ("c:\dbf\" + cFile) } ) ENDIF /* DLL32 FUNCTION FtpGetFile( hFTP AS LONG, = INTERNETCONNECT cRemoteFile AS LPSTR cLocalFile AS LPSTR lOverWrite AS LONG n1 AS LONG n2 AS LONG n3 AS LONG */ else MsgAlert( "oFTP:hFTP is null" ) endif oInternet:End() //MsgInfo( "Done!" ) return nil //----------------------------------------------------------------------------// [/quote:1i3nsr43]
wifi
thanks a lot. Now I have a doubt ... If I use the HTC and I use a dbf I must save only on the dbf of pc or smartphone How I can use a ftp link to pc from smarthphone if it can download or upload a dbf file and not save into file dbf . I not understand How we must use ftp instead Wifi ( \\nomepc\folder)
wifi
Hello Silvio, Here a little example: Handy sends a file to the ftp-server: sendmetheUmbrellatablefrom15.8.2009.txt The PC sees a file sendmetheUmbrellatable ... and uploads a umbrella.dbf which the handy downloads. Now you have the actual data on your handy. If you make a change in umbrella.dbf you send for example a file “changeumbrellatable.dbf” which the PC processes. Best regards, Otto
wifi
Hello Antonio, do you think this class can be adapted to FWPPC? Thanks in advance Otto The CWifiPeek class does all the Wifi query stuff. It can be used in non-MFC applications, too. You have to add CWifiPeek.h and CWifiPeek.cpp to your project. [url:1dc3bxn9]http&#58;//www&#46;codeproject&#46;com/KB/mobile/PeekPocket&#46;aspx[/url:1dc3bxn9]
wifi
Otto, yes, we can use it from FWPPC <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Next week I will adapt it. This week I am busy with some other code. Please send me a reminder by email next week, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
wiki.fivetechsoft.com
Hello, What is wrong with the wiki-website? I get an http error 500. Thank you.
wiki.fivetechsoft.com
Hello I have the same error <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> Maurizio
wiki.fivetechsoft.com
<!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php">http://wiki.fivetechsoft.com/doku.php</a><!-- m -->
wiki.fivetechsoft.com
Thanks a lot for your help. It's working now.
wiki.fivetechsoft.com
We had to update it due to a new PHP version in the server
win-make: Interrupt/Exception caught (code = 0xc0000fd addr
Saludos al forum Trato de compilar Tdolphin y me da error en el win-make. Este es el error win-make: Interrupt/Esception caught (code = 0xc0000fd, addr = 0x421aa2 El sistema Operativo que uso es Windows 8.1 de 64 Bits
win-make: Interrupt/Exception caught (code = 0xc0000fd addr
[url:1gpfz41v]http&#58;//www&#46;avrfreaks&#46;net/forum/make-interruptexception-caught-code-0xc00000fd-addr[/url:1gpfz41v]
win-make: Interrupt/Exception caught (code = 0xc0000fd addr
[quote="ruben Dario":2igfc02x]Saludos al forum Trato de compilar Tdolphin y me da error en el win-make. Este es el error win-make: Interrupt/Esception caught (code = 0xc0000fd, addr = 0x421aa2 El sistema Operativo que uso es Windows 8.1 de 64 Bits[/quote:2igfc02x] Saludos, si quieres me contactas por gmail y veo la forma de ayudarte en forma remota
win-make: Interrupt/Exception caught (code = 0xc0000fd addr
Gracias, Por tu ayuda Daniel. Ya encontre el problema. Habia Instalado este programa --> Git-1.9.5-preview20150319 --> y habia conflicto , lo desistale y problema solucionado. No se si lo instale mal, o este programa forma conflito con el win-make.exe. Gracias
win-make: Interrupt/Exception caught (code = 0xc0000fd addr
Ruben, Posiblemente sea porque usan DLLs de MinGW (gcc) y no usan la misma versión
win2003 server y fivewin16
Estimados Me a pasado algo curioso Al ejecutar una aplicacion en fivewin 16bit este no se ejecuta lo cual lo hacia perfectamente antes..., he probado dos aplicaciones diferente e igual no se ejecutan Una aplicacion en clipper 5.3 se ejecuta sin ningun problema Una aplicación en Fivewin xharbour se ejecuta sin ningun problema Cual puede ser el problema que las aplicaciones de fivewin 16bit no se esten ejecutando Si alguien tiene la respuesta se lo agredezco Saludos Patricio
win2003 server y fivewin16
Problemas con el WOW (Windows On Windows) que es el emulador que utilizan los sistemas operativos TRUE32 para ejecutar aplicaciones de 16 bits. Prueba haciendo lo siguiente: 1) Crea un acceso directo a tu programa en el escritorio 2) En las propiedades del acceso directo indica que se ejecute "en su propio espacion de memoria" 3) Pasalo a 32 bits lo mas pronto posible <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
win32 Month Calendar
Has anyone done a wrapper for MONTHCAL_CLASS aka "SysMonthCal32" ?? Note this is different than the DTPicker. TIA
winUser() function? ( Solved! )
Dear friends, I want to use the function winUser() but I retrieve this error: [code:9yl8mgf4]Error&#58; Unresolved external '_HB_FUN_WINUSER' referenced from OBJ\MAIN&#46;OBJ[/code:9yl8mgf4] Exists any lib to include on my project?
winUser() function? ( Solved! )
Julio, the WinUser() function should be in msgbox.c from FWH, but you can also use this function [code:2xc9kvih]#pragma BEGINDUMP #include <windows&#46;h> #include <hbapi&#46;h> // BOOL GetUserName( LPTSTR lpBuffer, LPDWORD nSize ); // //http&#58;//msdn&#46;microsoft&#46;com/library/default&#46;asp?url=/library/en-us/sysinfo/base/getusername&#46;asp HB_FUNC ( GETUSERNAME ) { TCHAR lpBuffer&#91;255&#93;; DWORD nSize = 255; GetUserName( lpBuffer, &nSize ); hb_retc( lpBuffer ); } #pragma ENDDUMP [/code:2xc9kvih]
winUser() function? ( Solved! )
Stefan, Thank for you answer! I tried to use wNetGetUser()... are it return the same user!?
winUser() function? ( Solved! )
Julio, [quote:2lp5gce5]I tried to use wNetGetUser()... are it return the same user!?[/quote:2lp5gce5] yes, it does. Both return the current user name. Additionally wNetGetUser (cNetworkResourceName) can return the user name used to establish a network connection if you specify the parameter.
window 7
Hola a todos: Mi pregunta es la siguiente. ¿Porque en Windows 7 va tan lento? ¿Hay alguna solución? Me explico tengo usuarios que tienen el Windows 7 y el XP y con las mismas bases y programa en el Windows 7 va lentisimo y en Windows XP no. Me podeis orientar de como solucionar este problema. Yo compilo en Windows XP, pero tambien lohe compilado con Windows 7 y pasa igual. Un saludo y gracias anticipadas. Carlos
window 7
Carlos, Cuanta memoria tiene el ordenador ? Por lo menos debería usar 2 gigas de memoria
window 7
Yo uso Windows 7 64 bits y con 2GB es un poco lento (comparado con Xp con 2GB), el consumo de recursos de win7 es bestial (a pesar de ello no es tan lento como comentas), mientras mas memoria mejor, he visto equipos portatiles HP que vinieron con 1GB de ram y windows 7 (eso es una locura, no lo puedes ni usar). Yo lo tengo instalado con 2 instancias de SQL y casi siempre el emulador de PPC y funciona normal, es decir compila normal y la ejecucion es buena, trabajo con tablas de 300K registros via ado y la respuesta es casi inmediata.
window 7
Hola Yo utilizo windows 7 profesional 64Bit, con ads y tablas ADT y pienso que es mucho mas rapido que XP, la diferencia es que tengo un INTEL I3 CON 4GB RAM <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> y tengo una evaluacion de windows 7 de 4,9
window 7
Colthop, mira si este post te puede ayudar. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=20864&p=111100&hilit=se+debe+entender#p111100">viewtopic.php?f=6&t=20864&p=111100&hilit=se+debe+entender#p111100</a><!-- l --> Saludos
window 7
Hola a todos: El ordenador en cuestion tiene un procesador Intel(R) Atom (TM) CPU D410 @ 1,66 GHz 1,67GHz y tiene 2 GB de Ram. Exactamente lo que sucede es que va muy lento cuando la base de datos esta en el final, me explico: yo la filtro por ejercicios o años, y presento en pantalla todas las líneas que tengan un mismo numero en un campo APUNTE y es cuando esta en el último ejercicio y en el último número cuando se relentiza y tarda una barbaridad en ir al anterior número. Y cuando se crea nuevas líneas pasa lo mismo ya que se encuentra en la misma posición. Un saludo Carlos
window 7
Mi portatil es acutalmente un dell inspiron con un procesador dual core t4500 (nada del otro mundo), antes tenia un lenovo con ese procesador y solo 1gb de ram era windows xp y lo vendi al mes de comprarlo, es muy lento. Casi me sale una ulcera.
window class
Hi, How to find out the name of the window class by its handler ?
window class
MsgInfo( GetClassName( hWnd ) )
window class
Thank you !
window mdi sem menu é possível
Amigos, É possível utilizar uma window principal MDI sem MENU? Obrigado
window methods
I find so many interesting datas and methods in Window class, but I dont know what do they do. The documentation does not throw any light on these methods. In particular I would be glad if some light can be thrown on the use and potential of methods/data like :taskbar(), bTaskBar, :ClientEdge(), ::NcActivate()
window methods
<!-- m --><a class="postlink" href="http://msdn2.microsoft.com/en-us/library/ms632633.aspx">http://msdn2.microsoft.com/en-us/library/ms632633.aspx</a><!-- m --> <!-- m --><a class="postlink" href="http://msdn2.microsoft.com/en-us/library/ms632680.aspx">http://msdn2.microsoft.com/en-us/library/ms632680.aspx</a><!-- m --> <!-- m --><a class="postlink" href="http://arbel.net/dev/articles/client.aspx">http://arbel.net/dev/articles/client.aspx</a><!-- m -->
window resolution
Hello Antonio, Ownd:nvertres() and OWND:nhorzRes() are not active in fwppc. Is there a way to know the vertical height and horizontal ? Thanks Richard
window resolution
This is a working sample: [code:wlzswmrq]#include "Fwce&#46;ch" #define SM_CXSCREEN 0 #define SM_CYSCREEN 1 FUNCTION MAIN&#40;&#41; LOCAL oWnd DEFINE WINDOW oWnd @ 1, 1 BUTTON "Show sizes"; SIZE 120, 30; ACTION &#40; MSGINFO&#40; GETSYSMETRICS&#40; SM_CXSCREEN &#41; &#41;,; MSGINFO&#40; GETSYSMETRICS&#40; SM_CYSCREEN &#41; &#41; &#41; ACTIVATE WINDOW oWnd RETURN NIL[/code:wlzswmrq] EMG
window resolution
[quote="EnricoMaria":1o5yiqkw]This is a working sample: [code:1o5yiqkw]#include "Fwce&#46;ch" #define SM_CXSCREEN 0 #define SM_CYSCREEN 1 FUNCTION MAIN&#40;&#41; LOCAL oWnd DEFINE WINDOW oWnd @ 1, 1 BUTTON "Show sizes"; SIZE 120, 30; ACTION &#40; MSGINFO&#40; GETSYSMETRICS&#40; SM_CXSCREEN &#41; &#41;,; MSGINFO&#40; GETSYSMETRICS&#40; SM_CYSCREEN &#41; &#41; &#41; ACTIVATE WINDOW oWnd RETURN NIL[/code:1o5yiqkw] EMG[/quote:1o5yiqkw] Thanks Enrico I did not think about getsysmetrics !
window resolution
Richard, There is a new FWPPC build that you may already download that implements those methods and some new features.
window styles
Hi all !I want set styles for window as WS_EX_CLIENTEDGE. I found this style in Borland\BCC55\Include\winuser.hHow I can use this file in my programm
window styles
Natter,You may use the clause STYLE:DEFINE WINDOW oWnd STYLE nOr( WS_OVERLAPPEDWINDOW, WS_EX_CLIENTEDGE )
window styles
Better do it this way, as it is an extended style:#define GWL_EXSTYLE (-20)SetWindowLong( oWnd:hWnd, GWL_EXSTYLE, WS_EX_CLIENTEDGE )orSetWindowLong( oWnd:hWnd, GWL_EXSTYLE, nOr( GetWindowLong( oWnd:hWnd, GWL_EXSTYLE ), WS_EX_CLIENTEDGE ) )to keep the previous extended style too
window styles
Thank, Antonio ! I do it. But I get error "Variable WS_EX_CLIENTEDGE not found" I must insert #INCLUDE *.ch to my program for description this WS_EX_variables, but I found this in Winuser.h only
window styles
>I must insert #INCLUDE *.ch to my program for description this WS_EX_ variables, but I found this in Winuser.h onlyYou have found the proper solution. This manifest constant is a Windows API value.
window styles
All right. How I can compiling Winuser.h together my programm.
window styles
Put this at the top of your PRG.#include "winuser.h"
window styles
#include "winuser.h" - it's not work. Created file My.h with WS_EX_ variables. That is work !Thank all !
window styles
Natter,I used this ...ON INIT ownd:oWndClient:ClientEdge()..
window styles
Thank, Fraxzi !I work with external applications and change styles their different windows interactive.
window styles
Natter,>#include "winuser.h" - it's not work.This was probably because your PATH needed to be SET so the compiler could find it. Or, you could copy winuser.h to the application source directory.James
window styles
PATH is rightWell, I copy winuser.h to the application source directoryset #include "winuser.h" to my programm and compiledsee file Clip.logwinuser.h(11) Error E0024 Error in #pragmawinuser.h(38) Error F0028 Can't open #include file: 'stdarg.h'and etc.
window styles
Natter,OK, it seems like it also wants another file.Try this instead. Instead of putting #include "winuser.h" do this:#define WS_EX_CLIENTEDGE 512That should solve it.James
window styles
Yes, I do it. You know the others value ?#define WS_EX_ABSPOSITION ­ #define WS_EX_ACCEPTFILES#define WS_EX_CLIENTEDGE 512#define WS_EX_CONTEXTHELP#define WS_EX_CONTROLPARENT#define WS_EX_DLGMODALFRAME#define WS_EX_LEFT#define WS_EX_LEFTSCROLLBAR­ #define WS_EX_LTRREADING #define WS_EX_MDICHILD#define WS_EX_NOPARENTNOTIFY#define WS_EX_RIGHT#define WS_EX_RIGHTSCROLLBAR­ #define WS_EX_RTLREADING#define WS_EX_SMCAPTION#define WS_EX_STATICEDGE#define WS_EX_TOOLWINDOW#define WS_EX_TOPMOST#define WS_EX_TRANSPARENT#define WS_EX_WINDOWEDGE#define WS_EX_OVERLAPPEDWINDOW#define WS_EX_PALETTEWINDOW
window:center() doesn´t work right
Hello, Issuing a window:center method it doesn't center the window correctly. It seems to work only correct with dialogs. Is is a bug, anyone has some work around ? Antonio
window:center() doesn´t work right
Its working fine used this way: [code:1cxwhfom] ACTIVATE WINDOW oWnd ; ON INIT oWnd&#58;Center&#40;&#41; [/code:1cxwhfom]
window:center() doesn´t work right
I'm using build Marhc 2006. Is it ok ?
window:center() doesn´t work right
Please try it that way, thanks
window:center() doesn´t work right
Antonio, This is not working the center() is not caculated right. Antonio
window:center() doesn´t work right
Antonio, I've tried it but it doesn't centers the window. Antonio
window:center() doesn´t work right
Antonio, Do you want to center it in the main screen, or regarding its parent window (or dialog) ?
window:center() doesn´t work right
Antonio, I want to center it regarding its parent window. Regards Antonio
window:center() doesn´t work right
Hazlo así: oWnd:Center( oWndParent )
window:center() doesn´t work right
Antonio, It doesn't work result it's the same, not centered. Regards
window:center() doesn´t work right
Antonio, Please try this test: [code:a970ko0j] #include "FiveWin&#46;ch" function Main&#40;&#41; local oWnd DEFINE WINDOW oWnd TITLE "Center test" ACTIVATE WINDOW oWnd ; ON INIT BuildDlg&#40; oWnd &#41; return nil function BuildDlg&#40; oWnd &#41; local oDlg DEFINE DIALOG oDlg TITLE "Test" ACTIVATE DIALOG oDlg ; ON INIT oDlg&#58;Center&#40; oWnd &#41; return nil [/code:a970ko0j] [url=http&#58;//imageshack&#46;us:a970ko0j][img:a970ko0j]http&#58;//img516&#46;imageshack&#46;us/img516/407/centerdg5&#46;png[/img:a970ko0j][/url:a970ko0j]
window:center() doesn´t work right
It works with dialogs but not with mdichilds. Antonio
window:center() doesn´t work right
Antonio, Please try this: [code:31j6colk] #include "FiveWin&#46;ch" function Main&#40;&#41; local oWnd DEFINE WINDOW oWnd TITLE "Center test" MDI ACTIVATE WINDOW oWnd ; ON INIT BuildChild&#40; oWnd &#41; return nil function BuildChild&#40; oWnd &#41; local oChild DEFINE WINDOW oChild TITLE "Test" MDICHILD WndTop&#40; oChild&#58;hWnd, oWnd&#58;nHeight / 7 &#41; WndLeft&#40; oChild&#58;hWnd, oWnd&#58;nWidth / 10 &#41; return nil [/code:31j6colk]
window:center() doesn´t work right
Antonio, It doesn't center it. My resolution is 1400x1050. Antonio
window:center() doesn´t work right
Antonio, Here it is working fine on 1280x1024. Are you running the same test ?
window:center() doesn´t work right
Yes. The first mdichild is centered. How can I use it?
window:center() doesn´t work right
Do you want to center all of them ? Please explain a little what you want to do, thanks
window:center() doesn´t work right
Antonio, I need that the ::center() method on mdichilds places them in the center of the main window. Antonio
window:center() doesn´t work right
Antonio, I need that windows are centered in order that all the mdichild is automacticly visible otherwise the user will have to center the window by hand to begin toi work. The Mdichilds can't be maximized or chanhed in size. Antonio
window:center() doesn´t work right
Antonio, We are going to review it again asap. Its on our todo list.
window:center() doesn´t work right
Antonio, Thanks, Antonio
window:center() doesn´t work right
Antonio, Have you tried to use this code: [code:1s25qzqx] function BuildChild&#40; oWnd &#41; local oChild DEFINE WINDOW oChild TITLE "Test" MDICHILD WndTop&#40; oChild&#58;hWnd, 30 &#41; // change 30 for your own needs WndLeft&#40; oChild&#58;hWnd, 30 &#41; // " return nil [/code:1s25qzqx]
window:center() doesn´t work right
I´ve re writen the:center method and now works ok!. Thanks. Antonio
window:center() doesn´t work right
Antonio, > I´ve re writen the:center method and now works ok!. Excellent! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Will you mind to share the code with us ? thanks!
window:center() doesn´t work right
Antonio, Right! Here it is : METHOD Center() CLASS TDMdiChild //own class redefinition LOCAL nLargura,nAltura,ntop,nleft LOCAL nlrgmain,naltmain LOCAL meioljan, meiolmain,meioajan,meioamain nlargura := ::nwidth() //dialog width naltura := ::nheight() //dialog height nlrgmain := Wmain():owndclient:nwidth() //container width naltmain := Wmain():owndclient:nheight()//container height //middle of each dialog and container meioljan := nlargura /2 meioajan := naltura /2 meiolmain := nlrgmain /2 meioamain := naltmain/2 //coordinates to place the mdichild ntop := meioamain-meioajan nleft := meiolmain-meioljan WndTop( ::hWnd, ntop ) WndLeft( ::hWnd, nleft ) RETURN nil Antonio
window:center() doesn´t work right
Again problem. If I modify the size of the main window the mdichilds opened after are disapering. That is caused by my modify center() method posted before. Ntop or Nleft are returning a negative value and when this happens the child window disapears. Any ideas ? Antonio
window:center() doesn´t work right
>Ntop or Nleft are returning a negative value and when this happens the child window disapears. >Any ideas ? Try using the main window's bResize codeblock to call the center function then maybe the mdichild Move() method (to redisplay it). James
window:center() doesn´t work right
James, It worked. Thanks Antonio