topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
Access a MySQL
|
Hola amigos...
Consulta....
¿Como haria para leer un bd en access y luego pasarla a mysql,,,, no tengo experiencia en ADO,,, trabajo com eagle y con tmysql,, alguna sugerencia????
Salu2
|
Access a MySQL
|
Willi:
Pongámonos en contacto !.
Saludos
|
Access dbfs from mobile devices
|
Here is a webcast on mobile access with ADS 11 web platform.
<!-- m --><a class="postlink" href="http://response.sybase.com/forms/WW12Q2ADSWBCSTMobileAccess?elq=8ef015988ca84e348d82f5ecc496d491">http://response.sybase.com/forms/WW12Q2 ... ecc496d491</a><!-- m -->
Or visit <!-- m --><a class="postlink" href="http://devzone.advantagedatabase.com">http://devzone.advantagedatabase.com</a><!-- m --> to learn more and register for the free webcast. The more we learn these new technology the better for the rest of us.
This is not a development language. You still need to write your mobile apps using whatever development tool the device is compatible with. I think the webcast only shows how to access Advantage Web Platform using oData which is compatible with all mobile development systems.
Reinaldo.
|
Access tables and databases size limitation
|
Rick,
I googled for this and found that it seems as 2GB is the size limit for Access databases.
I appreciate your comments, thanks
|
Access tables and databases size limitation
|
Antonio
YES, 2gb seems to be the maximum size. The largest ( single ) .Mdb I have in production is well under 100mg. I will say that one irritating feature of Ms Access is that you must Compact and Repair occasionally because when you delete a record the size of the database does not get smaller and to permanently expunge deleted records, you must run the Compact and Repair utility <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
With that said, you can use multiple Access databases and have multiple connections to link databases, so theoretically size is not an issue.
I do like Ms Access for projects that have 10-50 concurrent users ( for small business ), but for Enterprise applications, I prefer Ms Sql Server or the free version of Sql Express that has a 10gb limitation 'per database' and of course you can have multiple databases per instance.
Here is my Compact and Repair utility for Ms Access that can be incorporated into any FiveWin ADO Application. If I am not mistaken, Enrico helped me with some of this code.
Rick Lipkin
[code=fw:1rqo64s1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//-- RepairUm.prg</span><br /><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"FIVEWIN.CH"</span><br /><br /><span style="color: #B900B9;">//----------------------</span><br />Func _RepairUm<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">LOCAL</span> SAYING,oBtn1,oBtn2<br /><span style="color: #00C800;">Local</span> oSay1,oSay2,oFontB,cLine,oLine<br /><span style="color: #00C800;">Local</span> lOk,cDefa,cSay1,cSay2,oRs,cSql,oErr<br /><span style="color: #00C800;">Local</span> oBmp<br /><br /><span style="color: #00C800;">If</span> xDatabase = <span style="color: #ff0000;">"A"</span><br /><span style="color: #00C800;">Else</span><br /> Saying := <span style="color: #ff0000;">"Compacting and Repair only Applies to Ms Access"</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> Saying <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span>.f.<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Endif</span><br /><br />oFontB := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Ms Sans Serif"</span>,,<span style="color: #000000;">-6</span>,.F.,.T. ,,,,.F. <span style="color: #000000;">)</span><br />cDefa := set<span style="color: #000000;">(</span><span style="color: #000000;">7</span><span style="color: #000000;">)</span><br /><br />xConnect:<span style="color: #000000;">CLose</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// close global connection</span><br />StandardGrad<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">If</span> File<span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illingNew.Mdb"</span> <span style="color: #000000;">)</span><br /> Ferase<span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illingNew.Mdb"</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">Endif</span><br /><br />cSay1 := <span style="color: #ff0000;">" "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br />cSay1 += <span style="color: #ff0000;">"Compact and Repair Database attemts to remove "</span><br />cSay1 += <span style="color: #ff0000;">"Deleted records and shrink the size of the database. "</span><br /><br />cSay2 := <span style="color: #ff0000;">" "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br />cSay2 += <span style="color: #ff0000;">"This routine will need EXCLUSIVE rights to run and "</span><br />cSay2 += <span style="color: #ff0000;">"No One Else can be logged in at the same time."</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">DEFINE</span> BITMAP oBmp <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"SETUP"</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"REPAIRUM"</span> ;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Compact and Repair Utility"</span> ;<br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSay1 <span style="color: #0000ff;">var</span> cSay1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">115</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">UPDATE</span><br /> oSay1:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFontB <span style="color: #000000;">)</span><br /> oSay1:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> nRgb<span style="color: #000000;">(</span><span style="color: #000000;">7</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">224</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// blue</span><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSay2 <span style="color: #0000ff;">var</span> cSay2 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">113</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">UPDATE</span><br /> oSay2:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFontB <span style="color: #000000;">)</span><br /> oSay2:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> nRgb<span style="color: #000000;">(</span>CLR_HRED<span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// red</span><br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oLINE <span style="color: #0000ff;">var</span> cLINE MEMO <span style="color: #0000ff;">ID</span> <span style="color: #000000;">129</span> <span style="color: #0000ff;">of</span> oDLG <span style="color: #0000ff;">UPDATE</span><br /> oLine:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFontB <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oBtn1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">of</span> oDlg ;<br /> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"OK"</span>, <span style="color: #ff0000;">"DOK"</span>, <span style="color: #ff0000;">"DOK"</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">" &Run "</span> <span style="color: #0000ff;">LEFT</span> <span style="color: #000000;">2007</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> lOk := _doit<span style="color: #000000;">(</span>@cLine,oLine,oDlg,oBtn1,oBtn2<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oBtn2 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">112</span> <span style="color: #0000ff;">of</span> oDlg ;<br /> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CANCEL"</span>, <span style="color: #ff0000;">"DCANCEL"</span>, <span style="color: #ff0000;">"DCANCEL"</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cancel "</span> <span style="color: #0000ff;">LEFT</span> <span style="color: #000000;">2007</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> lOK := .t., oDlg:<span style="color: #000000;">ENd</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #000000;">(</span>PalBmpDraw<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oBmp:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">(</span>!GETKEYSTATE<span style="color: #000000;">(</span> <span style="color: #000000;">27</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// do not allow esc key here</span><br /><br /><br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFontB<br />LightGreyGrad<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// re-establish global connection</span><br /><span style="color: #00C800;">TRY</span><br /> xConnect:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> xString <span style="color: #000000;">)</span><br />CATCH oErr<br /> Saying := <span style="color: #ff0000;">"Could not open a Global Connection to Database "</span>+xSource<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> Saying <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span>.F.<span style="color: #000000;">)</span><br />END <span style="color: #00C800;">TRY</span><br /><br />oBmp:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span> lOk <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------</span><br /><span style="color: #00C800;">Static</span> FUNC _Doit<span style="color: #000000;">(</span>cLine,oLine,oDlg,oBtn1,oBtn2<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Local</span> Saying,cCn1,cCn2,cDefa,yConnect,ySource<br /><span style="color: #00C800;">Local</span> oJro<br /><br />SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />cDefa := set<span style="color: #000000;">(</span><span style="color: #000000;">7</span><span style="color: #000000;">)</span><br /><br />oBtn1:<span style="color: #000000;">Hide</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oBtn2:<span style="color: #000000;">Hide</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />cLine := <span style="color: #ff0000;">"Checking for Exclusive Use to Database"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br />cLine += xSource<br />oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />SysWait<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /><br />Ferase<span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Ldb"</span> <span style="color: #000000;">)</span><br />SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">If</span> File<span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Ldb"</span> <span style="color: #000000;">)</span><br /> cLine := <span style="color: #ff0000;">"Checking for Exclusive Use to Database "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += xSource+<span style="color: #ff0000;">" Failed..."</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += <span style="color: #ff0000;">"This Process may Re-Start"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">5</span><span style="color: #000000;">)</span><br /><br /> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span>.f.<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Endif</span><br /><br /><br />ySOURCE := cDEFA+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illingNew.mdb"</span><br /><br />cLine := <span style="color: #ff0000;">"Atempting to create JRO.JetEngine"</span><br />oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Try</span><br /> oJro := CREATEOBJECT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"JRO.JetEngine"</span> <span style="color: #000000;">)</span><br />Catch<br /> cLine := <span style="color: #ff0000;">"Atempting to create JRO.JetEngine Failed"</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span>.<span style="color: #000000;">5</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Error in Creating JRO.JetEngine"</span> <span style="color: #000000;">)</span><br /> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span><br />End <span style="color: #00C800;">Try</span><br /><br />cLine := <span style="color: #ff0000;">"Compacting Database to "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br />cLine += ySource+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br />oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /><br />cCn1 := <span style="color: #ff0000;">"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="</span><br />cCn1 += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.mdb;"</span><br />cCn1 += <span style="color: #ff0000;">"Jet OLEDB:Database Password="</span>+xPassword<br />cCn2 := <span style="color: #ff0000;">"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="</span><br />cCn2 += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illingNew.mdb;"</span><br />cCn2 += <span style="color: #ff0000;">"Jet OLEDB:Database Password="</span>+xPassword<br /><br /><span style="color: #00C800;">Try</span><br /> oJro:<span style="color: #000000;">CompactDatabase</span><span style="color: #000000;">(</span>cCn1,cCn2 <span style="color: #000000;">)</span><br />Catch<br /> cLine := <span style="color: #ff0000;">"Compacting Database to "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += ySource+<span style="color: #ff0000;">" Failed .. "</span><br /> cLine += <span style="color: #ff0000;">"This Process may Re-Start"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span>.f.<span style="color: #000000;">)</span><br />End <span style="color: #00C800;">Try</span><br /><br />cLine := <span style="color: #ff0000;">"Compacting Database to "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br />cLine += ySource+<span style="color: #ff0000;">" Successful"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br />oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />SysWait<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">If</span> File<span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illingNew.mdb"</span> <span style="color: #000000;">)</span><br /><br /> cLine := <span style="color: #ff0000;">"Deleating Old Database backup file "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing._db"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /><br /> Ferase<span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing._db"</span> <span style="color: #000000;">)</span><br /><br /> cLine := <span style="color: #ff0000;">"Copying "</span>+cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Mdb to "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing._db"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /><br /> Copy File<span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Mdb"</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing._db"</span> <span style="color: #000000;">)</span><br /><br /> cLine := <span style="color: #ff0000;">"Checking for new backup File"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing._db"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">If</span> file<span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing._db"</span> <span style="color: #000000;">)</span><br /> cLine := <span style="color: #ff0000;">"Checking for new backup File"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing._db .. Success"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Else</span><br /> cLine := <span style="color: #ff0000;">"Checking for new backup File"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing._db .. Failed"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span>.f.<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Endif</span><br /><br /> cLine := <span style="color: #ff0000;">"Deleting Old Database File"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Mdb"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /><br /> Ferase<span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.mdb"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">If</span> File<span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.mdb"</span> <span style="color: #000000;">)</span><br /> cLine := <span style="color: #ff0000;">"Deleting Old Database File"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Mdb ... Failed"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span>.f.<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Else</span><br /> cLine := <span style="color: #ff0000;">"Deleting Old Database File"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Mdb ... Success"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Endif</span><br /><br /> cLine := <span style="color: #ff0000;">"Renaming New Repaired Database File"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illingNew.Mdb to"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Mdb"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /><br /> Rename <span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illingNew.Mdb"</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Mdb"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">If</span> File<span style="color: #000000;">(</span> cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Mdb"</span> <span style="color: #000000;">)</span><br /> cLine := <span style="color: #ff0000;">"Renaming New Repaired Database File"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illingNew.Mdb to"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Mdb ... Success"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Else</span><br /> cLine := <span style="color: #ff0000;">"Renaming New Repaired Database File"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illingNew.Mdb to"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illing.Mdb ... Failed"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += <span style="color: #ff0000;">"Please contact your Administrator"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Endif</span><br /><br /> cLine := <span style="color: #ff0000;">"Completed Repair and Compacted Database Routine"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += <span style="color: #ff0000;">"Success !!! "</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">5</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Else</span><br /><br /> cLine := <span style="color: #ff0000;">"Sorry .. for some Strange reason the Repaired Database"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += cDefa+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>illingNew.Mdb"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> cLine += <span style="color: #ff0000;">"Could not be Retrieved .. Failure"</span>+chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> oLine:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysReFresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Endif</span><br /><br />oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// end RepairUm.prg</span><br /> </div>[/code:1rqo64s1]
RepairUm.Rc
[code=fw:1rqo64s1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />REPAIRUM <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">28</span>, <span style="color: #000000;">52</span>, <span style="color: #000000;">199</span>, <span style="color: #000000;">256</span><br /><span style="color: #0000ff;">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_CAPTION<br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"Microsoft Sans Serif"</span><br /><span style="color: #000000;">{</span><br /> CONTROL <span style="color: #ff0000;">"&Ok"</span>, <span style="color: #000000;">111</span>, <span style="color: #ff0000;">"TBtnBmp"</span>, <span style="color: #000000;">32</span> | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style="color: #000000;">103</span>, <span style="color: #000000;">214</span>, <span style="color: #000000;">41</span>, <span style="color: #000000;">25</span><br /> CONTROL <span style="color: #ff0000;">"&Cancel"</span>, <span style="color: #000000;">112</span>, <span style="color: #ff0000;">"TBtnBmp"</span>, <span style="color: #000000;">32</span> | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style="color: #000000;">150</span>, <span style="color: #000000;">214</span>, <span style="color: #000000;">41</span>, <span style="color: #000000;">25</span><br /> CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">115</span>, <span style="color: #ff0000;">"STATIC"</span>, SS_CENTER | SS_NOPREFIX | WS_GROUP, <span style="color: #000000;">8</span>, <span style="color: #000000;">31</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">51</span><br /> LTEXT <span style="color: #ff0000;">""</span>, <span style="color: #000000;">129</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">141</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">64</span>, SS_NOPREFIX | WS_GROUP<br /> CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">113</span>, <span style="color: #ff0000;">"STATIC"</span>, SS_CENTER | SS_NOPREFIX | WS_GROUP, <span style="color: #000000;">8</span>, <span style="color: #000000;">82</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">51</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:1rqo64s1]
|
Access tables and databases size limitation
|
Rick,
many thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Access tables and databases size limitation
|
Rick,
Thank you for sharing
|
Access the structure HB_ITEM Harbour
|
Good for all.
See if someone can tell me how to access the internal structure of HB_ITEM Harbour (not xHarbour).
Specifically I want to access the address:
myItem->item.asString.length // NOTE, not the value but also the direction.
As an example:
myItem->item.asString.value;
I can access like this:
char *MyPointer = myItem->item.asString.value;
or function:
char *MyPointer = hb_itemGetCPtr(myItem) // This is the preferred
But myItem->item.asString.length, how?
There functions that do the same as hb_itemGetCPtr(myIyem) but myItem->item.asString.length?
///////////////// Español /////////////////////////
Buenas a todos.
A ver si alguien sabe decirme como acceder a la estructura interna de HB_ITEM en Harbour (no en xHarbour).
Concrétamente quiero acceder a la dirección de:
myItem->item.asString.length // OJO, no al valor si no a la dirección.
Como ejemplo:
myItem->item.asString.value;
puedo acceder así:
char * miPuntero = myItem->item.asString.value;
o con la función:
char * miPuntero = hb_itemGetCPtr( myItem ); // Esta es la aconsejable
Pero para myItem->item.asString.length, cómo?
Hay alguna función que haga lo mismo que hb_itemGetCPtr( myIyem ) pero para myItem->item.asString.length?
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> <!-- s:twisted: --><img src="{SMILIES_PATH}/icon_twisted.gif" alt=":twisted:" title="Twisted Evil" /><!-- s:twisted: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> <!-- s:arrow: --><img src="{SMILIES_PATH}/icon_arrow.gif" alt=":arrow:" title="Arrow" /><!-- s:arrow: -->
|
Access the structure HB_ITEM Harbour
|
You ca try
ULONG hb_arrayGetCLen( myItem )
Regards
Massimo
|
Access the structure HB_ITEM Harbour
|
[url:y4voppup]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=27716&p=154769#p154769[/url:y4voppup]
|
Access the structure HB_ITEM Harbour
|
Sorry,
this is the function
ULONG hb_itemGetCLen( myItem )
Regards
Massimo
|
Access the structure HB_ITEM Harbour
|
Example
[code=fw:24vmxx8z]<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;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> nLen<br /> <br /> nLen := MyTest<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Example"</span> <span style="color: #000000;">)</span> <br /> <br /> MsgStop<span style="color: #000000;">(</span> nLen <span style="color: #000000;">)</span> <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapiitm.h"</span><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> MYTEST <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> PHB_ITEM myItem = hb_itemNew<span style="color: #000000;">(</span><span style="color: #00C800;">NULL</span><span style="color: #000000;">)</span> ;<br /> ULONG nRet ;<br /> const char *pStr = hb_parc<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> ;<br /> <br /> hb_itemPutC<span style="color: #000000;">(</span> myItem, pStr <span style="color: #000000;">)</span> ;<br /> <br /> nRet = hb_itemGetCLen<span style="color: #000000;">(</span> myItem <span style="color: #000000;">)</span>;<br /> <br /> hb_itemRelease<span style="color: #000000;">(</span> myItem <span style="color: #000000;">)</span>;<br /> <br /> hb_retnl<span style="color: #000000;">(</span> nRet <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:24vmxx8z]
Regards
Massimo
|
Access the structure HB_ITEM Harbour
|
Gracias Massimo.
Realmente lo que pasa es lo que dice Daniel.
Yo no quiero saber el ancho sino la dirección del elemento que guarda...
////////////////////////
Thanks Massimo.
Actually what happens is what Daniel says.
I do not want to know the width but the direction of the element that keeps ... <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
|
Access to Web Services
|
I need to access web services. From the documentation for the web service, I quote below:
[quote:3sw2dme8]
This method lets providers list and download available files (reports and circular letters).
The method that lists available files for download is called getProvidersFiles. It expects
the following parameters:
• username – string containing username.
• password – string containing password.
This method returns an array of ProviderFile objects. Following is a description of the
properties of a ProviderFile object:
Property Name Type Description
created String Date when file was created
fileId Integer ID used to look for the file
fileName String Name of file
fileType String Type of File
provider String provider owner of file
npiNumber String Provider’s NPI
taxIDNumber String Provider’s Tax ID
[/quote:3sw2dme8]
Notice how web services has access to web methods that can recieve parameters and return data. In this case it returns an object.
Is it possible with fw to gain access to web services?
Reinaldo.
|
Access violation with many includes
|
I am starting a new thread due to a change in topic in another thread. Here is the original question:--------------Seem to have hit a wall. I have a main.rc file with many includes. Maybe 600. About 14 won't compile. I get and access violation. So I added a main2.rc with the 14 includes included in main.rc. Same access violation. Any thoughts?Thank you Harvey----------------Yikes, 600! What are they all? How many are RC files? What eactly does the error say? Can you combine some of those includes into the same file? Regards,James
|
Access violation with many includes
|
[quote:3dpvcti1]Yes 600. Some may be due to my ineffieient programing over the years. The program is very complex. After I finish conversion to 32bits. I'll let you have a copy NC.
all rc files. Just says "access violation" when compiling. If I comment out the items at the bottom of this list it compiles.[/quote:3dpvcti1]Then your only option may be to combine some of them into one file. There must be a maximum number of include files allowed and you have exceded it.If you are using an include file for each dialog (as workshop wants to do) you can eliminate any of them by changing the ID reference to use the actual numeric ID rather than the manifest constant located in the include file.Regards,James
|
Access violation with many includes
|
I think I understand. Can you send me an example.
|
Access violation with many includes
|
Harvey,When you create a dialog, Workshop will generate an include file something like this:#define ID_DATE 110#define ID_CLIENT 120#define ID_ARTICLE 130#define ID_AMOUNT 140#define ID_TOTAL 150#define ID_NOTES 160Then in your code you write something like this:redefine get var dData ID ID_DATE...You can rewrite the line like this:redefine get var dData ID 120 ...You will have to do the same for all the #defines in the include file. Then you can just eliminate the include file.Regards,James
|
Access violation with many includes
|
Try it later today when I get back home.Thanks for all your help.
|
Access violation with many includes
|
I created a small dll for the items the main.rc file will not compile. Everything is working fine even the manifest. You've been a great help.
|
Access violation with many includes
|
Glad to hear you got it working.James
|
Access violation with many includes
|
Harvey,an access violation can also happen if you have an icon file with several included icons inside and with a color depth which is not supported by the resource compiler of borland.Delete the unsupported icons out of the icon file and it will workIf I remember right, 8bit and 24bit colors are supported. So all icons files from vista can´t be used in their original form.
|
Access cuantas tablas y cual es y su estructura
|
Quisiera saber (con ADODB.Connection) cuantas tablas tiene (numero) cuales (los nombres) y los nombres de los campos de cada una de ellas, en una base de datos ACCESS.
Si ademas puedo saber el tipo de dato de cada campo (texto, fecha, numero, etc...) pues mejor.
Gracias.
|
Access: copiar recordset a dbf y borrar el recordset
|
Hola.
Tengo una base de datos Access con dos tablas. Lo que quiero es conectar periódicamente con esa base de datos, recuperar con recordset lo que tenga cada tabla, copiar los recordsets a archivos DBF y a continuación borrar la información que he recuperado de Access.
Tengo claro lo de recuperar la información con los recordsets siguiendo el ejemplo del programa TESTXBR3.PRG. Es la copia a dbf y el borrado lo que no tengo claro.
Agradecería cualquier ayuda al respecto.
Gracias.
|
Access: copiar recordset a dbf y borrar el recordset
|
crear el recordset con
FW_OpenRecordSet( oCn, cSql, nLockType, nCursorType, nMaxRecords, nOpt )
copiar el recorset a una tabla dbf
FW_AdoExportToDBF( oRs, cDbf, lEditStruct )
borra la data en tabla de access
si oConn enla conexion creada con Fw_OpenAdoConnection( cConnStr, lShowError )
oConn:execute( "DELETE FROM mytabla" )
salu2
carlos vargas
|
Accessing 32-bit DLLs from 64-bit code
|
Thanks to Lailton for googling for it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[url:bgrgxdoe]https://blog.mattmags.com/2007/06/30/accessing-32-bit-dlls-from-64-bit-code/[/url:bgrgxdoe]
Basically the technique is to use IPC (Interprocess communication) between a 64 bits app and a 32 bits app:
[quote:bgrgxdoe]The following IPC mechanisms are supported by Windows:
Clipboard
COM
Data Copy
DDE
File Mapping
Mailslots
Pipes
RPC
Windows Sockets[/quote:bgrgxdoe]
[url:bgrgxdoe]https://msdn.microsoft.com/en-us/library/aa365574.aspx?f=255&MSPPError=-2147217396[/url:bgrgxdoe]
From all of them, the WM_COPYDATA seems the simplest way to go <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
SendMessage( hWndToReceiveTheMessage, WM_COPYDATA, hWndSender, pPointerToACOPYDATASTRUCT structure ) --> value returned from hWndToReceiveTheMessage
|
Accessing 32-bit DLLs from 64-bit code
|
[url:12zim179]https://stackoverflow.com/questions/1128150/win32-api-to-enumerate-dll-export-functions[/url:12zim179]
[url:12zim179]https://msdn.microsoft.com/en-us/library/windows/desktop/ms679318(v=vs.85).aspx[/url:12zim179]
[code=fw:12zim179]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <stdio.h><br /><span style="color: #00D7D7;">#include</span> <dbghelp.h><br /><br />BOOL CALLBACK EnumSymProc<span style="color: #000000;">(</span> <br /> PSYMBOL_INFO pSymInfo, <br /> ULONG SymbolSize, <br /> PVOID UserContext<span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> UNREFERENCED_PARAMETER<span style="color: #000000;">(</span>UserContext<span style="color: #000000;">)</span>;<br /> <br /> printf<span style="color: #000000;">(</span><span style="color: #ff0000;">"%08X %4u %s<span style="color: #000000;">\n</span>"</span>, <br /> pSymInfo->Address, SymbolSize, pSymInfo->Name<span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">TRUE</span>;<br /><span style="color: #000000;">}</span><br /><br />void main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> HANDLE hProcess = GetCurrentProcess<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> DWORD64 BaseOfDll;<br /> char *Mask = <span style="color: #ff0000;">"*"</span>;<br /> BOOL status;<br /><br /> status = SymInitialize<span style="color: #000000;">(</span>hProcess, <span style="color: #00C800;">NULL</span>, <span style="color: #00C800;">FALSE</span><span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span>status == <span style="color: #00C800;">FALSE</span><span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #00C800;">return</span>;<br /> <span style="color: #000000;">}</span><br /> <br /> BaseOfDll = SymLoadModuleEx<span style="color: #000000;">(</span>hProcess,<br /> <span style="color: #00C800;">NULL</span>,<br /> <span style="color: #ff0000;">"foo.dll"</span>,<br /> <span style="color: #00C800;">NULL</span>,<br /> <span style="color: #000000;">0</span>,<br /> <span style="color: #000000;">0</span>,<br /> <span style="color: #00C800;">NULL</span>,<br /> <span style="color: #000000;">0</span><span style="color: #000000;">)</span>;<br /> <br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span>BaseOfDll == <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> SymCleanup<span style="color: #000000;">(</span>hProcess<span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">return</span>;<br /> <span style="color: #000000;">}</span> <br /> <br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span>SymEnumSymbols<span style="color: #000000;">(</span>hProcess, <span style="color: #B900B9;">// Process handle from SymInitialize.</span><br /> BaseOfDll, <span style="color: #B900B9;">// Base address of module.</span><br /> Mask, <span style="color: #B900B9;">// Name of symbols to match.</span><br /> EnumSymProc, <span style="color: #B900B9;">// Symbol handler procedure.</span><br /> <span style="color: #00C800;">NULL</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// User context.</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #B900B9;">// SymEnumSymbols succeeded</span><br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #B900B9;">// SymEnumSymbols failed</span><br /> printf<span style="color: #000000;">(</span><span style="color: #ff0000;">"SymEnumSymbols failed: %d<span style="color: #000000;">\n</span>"</span>, GetLastError<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /> <br /> SymCleanup<span style="color: #000000;">(</span>hProcess<span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span></div>[/code:12zim179]
|
Accessing 32-bit DLLs from 64-bit code
|
Hi Antonio,
Thanks for it!
I will to test <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Accessing SQL Server via Internet
|
Is there an ado driver for Microsoft SqlServer which allows the user to access SQL through the internet. So you could create a FiveWin application which access the SQL data through the internet.
Thanks,
Byron ...
|
Accessing SQL Server via Internet
|
Hi Bayron
I use SQLRDD for xHarbour
regards.
|
Accessing SQL Server via Internet
|
I thought SQLRDD allowed the user to use the dBase DML to traverse through the data, how do you set it up for access through the internet?
Byron ...
|
Accessing SQL Server via Internet
|
<!-- m --><a class="postlink" href="https://www.youtube.com/watch?v=VOUDdUJ5BLY">https://www.youtube.com/watch?v=VOUDdUJ5BLY</a><!-- m -->
|
Accessing SQL Server via Internet
|
You don't need a special driver for accesing ADO via internet.
You only have to use the correct IP-adress (or noip) and forward the correct PORT to access the SQL-server if the SQL-server is behind a router
|
Accessing SQL Server via Internet
|
[quote="Marc Vanzegbroeck":161ixyvk]You don't need a special driver for accesing ADO via internet.
You only have to use the correct IP-adress (or noip) and forward the correct PORT to access the SQL-server if the SQL-server is behind a router[/quote:161ixyvk]
True.
But a client can connect like this, if server-side is configured correctly. If we are managing the server-side, we need to know how to configure the server and the router for accessing the server over internet.
|
Accessing a Delphi DLL function.
|
Hi Everybody,
I have a Test DLL from a company that has a cost effective way of converting a standard USB Jump drive into a software protection device.
The software is called AntiDuplicate. It modifies a standard USB Jump drive so that it knows the difference between the original and a copy thus allowing you to use it as a hardware key (sells for $129.00 U.S.)
I need to know if it is possible to read data form this file.
The test dll can be downloaded from my site:
[url]
<!-- w --><a class="postlink" href="http://www.can-soft.net/dl/TestDLL.zip">www.can-soft.net/dl/TestDLL.zip</a><!-- w -->
[/url]
They also gave me this info:
[quote:316pl7p2]
If Fivewin can call functions with the array as argument and use the result from the same array, we can use AntiDuplicate DLL.
This package contains the DLL and an example of the test function call (on Delphi Pascal). If you prefer example on other program language, please let me know.
If you'll call function correctly, after the function call you'll get A[99] = 8300.
[/quote:316pl7p2]
Does anyone know if Fivewin can work with this?
Can someone provide a sample of how to read it?
Thanks,
Jeff
|
Accessing a Delphi DLL function.
|
Jeff,
Please review samples\dlls\delphi32\*.prg to access a Delphi DLL from FW
|
Accessing a Delphi DLL function.
|
Antonio,
I have looked at the sample but how do you return an array from a Delphi DLL?
The samples seem to work fine for text but I get NIL returned with the array.
Thanks,
Jeff
|
Accessing a Delphi DLL function.
|
Jeff,
> If you prefer example on other program language, please let me know
Could you please ask them for a C language sample ? thanks
|
Accessing a Delphi DLL function.
|
Jeff,
Please try this:
[code:1lrjvjq1]
#include "FiveWin.ch"
#include "Struct.ch"
function Main()
local oStruct, cBuffer
STRUCT oStruct
MEMBER n1 AS LONG
MEMBER n2 AS LONG
... // please repeat it up to 128
MEMBER n128 AS LONG
ENDSTRUCT
cBuffer = oStruct:cBuffer
TestFunc1( cBuffer )
oStruct:cBuffer = cBuffer
MsgInfo( oStruct:n1 )
return nil
DLL FUNCTION TESTFUNC1( pValues as LPSTR ) AS BOOL PASCAL LIB "
TestLib12.dll'
[/code:1lrjvjq1]
|
Accessing a Delphi DLL function.
|
Antonio,
The code you gave me will only return a 0 (zero).
I asked for a C Language sample and this is what they sent me:
[code:nyaj8k2k]
=======================
typedef VOID (CALLBACK* LPFNDLLACC1)(LONG[127]);
.....
HINSTANCE hDLL; // Handle to DLL
LPFNDLLACC1 lpfnDllFunc1; // Function pointer
LONG a[128];
INT i;
.....
hDLL = LoadLibrary("TestLib12.dll");
if (hDLL != NULL)
{
for (i = 0; i < 128; i++)
a[i] = i;
lpfnDllFunc1 = (LPFNDLLACC1)GetProcAddress(hDLL, "TestFunc1");
if (!lpfnDllFunc1)
{
printf("Function not found!\n");
}
else
{
// call the function
lpfnDllFunc1(a);
printf("Result = %u\n", a[99]);
}
FreeLibrary(hDLL);
}
=======================
[/code:nyaj8k2k]
Thanks,
Jeff
|
Accessing a Delphi DLL function.
|
Jeff,
Please change this line:
DLL FUNCTION TESTFUNC1( pValues AS LPSTR ) AS BOOL PASCAL FROM "TestFunc1" LIB "TestLib12.dll"
|
Accessing a Delphi DLL function.
|
Same thing ... Always shows 0 (zero)
|
Accessing a Delphi DLL function.
|
Jeff,
Could you please ask the developers to place a MessageBox( 0, "here", "inside the DLL", 0 ); inside that DLL function just to check if we properly access it ? thanks
|
Accessing a Delphi DLL function.
|
Hi Antonio,
Ok ... here is the latest DLL from the company:
<!-- m --><a class="postlink" href="http://www.antiduplicate.com/t/TestDLL.zip">http://www.antiduplicate.com/t/TestDLL.zip</a><!-- m -->
Thanks,
Jeff
|
Accessing a Delphi DLL function.
|
Jeff,
The function is getting called as the MessageBox() is shown.
Could you provide me the PRG declaring the 128 members of the struct ? Thanks,
|
Accessing a Delphi DLL function.
|
Antonio,
Please check your email.
Jeff
|
Accessing a Delphi DLL function.
|
Jeff,
I am testing it this way, so it can be simpler:
[code:2ea4dl6v]
#include "FiveWin.ch"
#include "Struct.ch"
function Main()
local oStruct, cBuffer, n
STRUCT oStruct
MEMBER cData AS STRING LEN 4 * 128
ENDSTRUCT
oStruct:cData = Replicate( " ", 4 * 128 )
MsgInfo( Empty( oStruct:cData ) )
cBuffer = oStruct:cBuffer
TestFunc1( cBuffer )
oStruct:cBuffer = cBuffer
MsgInfo( Empty( oStruct:cData ) )
for n = 1 to Len( oStruct:cData )
if SubStr( oStruct:cData, n, 1 ) != " "
MsgInfo( n )
endif
next
return nil
DLL FUNCTION TESTFUNC1( pValues as LPSTR ) AS BOOL PASCAL ;
FROM "TestFunc1" LIB "TestLib12.dll"
[/code:2ea4dl6v]
|
Accessing a Delphi DLL function.
|
Jeff,
There you have the MessageBox() shown value:
[code:3g2rt5ct]
for n = 1 to Len( oStruct:cData )
if SubStr( oStruct:cData, n, 1 ) != " "
MsgInfo( n )
endif
next
MsgInfo( Bin2L( SubStr( oStruct:cData, 1, 4 ) ) ) // <=====
[/code:3g2rt5ct]
Don't know why they show [99], when they are placing it at zero <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Accessing a Delphi DLL function.
|
Antonio,
Are you sure this is right? They told me that the value should be 8300 at a[99].
With this code we get a value of 808464534.
It looks like the input and output values are the same?
Jeff
|
Accessing a Delphi DLL function.
|
Jeff,
I am not showing a[99], my code shows a[0].
In C language arrays are zero based, not 1 based, like in Clipper
|
Accessing a Delphi DLL function.
|
Considering that a long value uses four bytes, then you could inspect a[99] using SubStr( oStruct:cData, 99 * 4, 4 ).
Please also try 98 * 4 and 100 * 4
|
Accessing a Delphi DLL function.
|
Antonio,
Ok, I am lost. I really don't understand how we are connecting to this dll.
I guess my main question is ... are we accessing the dll correctly and getting the correct response ?
I don't want to spend $129.00 if it will not work with Fivewin <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
Thanks,
Jeff
|
Accessing a Delphi DLL function.
|
Jeff,
The DLL expects an array of 128 long numbers (a long number uses 4 bytes = 32 bits).
Instead of using 128 struct members, we are using one single string that has 128 * 4 bytes.
The DLL is being accessed as the MessageBox() is shown, though they show a [99], and according to our test they are changing the first long (SubStr( oStruct:cData, 1, 4 ) ) of the array, not the 99.
Could you please ask them about this ? Could they confirm you that they are modifying the 99 element of the array instead of the first one ?
|
Accessing a Delphi DLL function.
|
Hi Antonio,
Here is the reply:
Yes, in the DLL we change a[99] only, a[0] remains the same.
We've compiled a test application (using the code from our C.txt sample), and placed this to the TestDLL.zip at the same address, please download it.
By this application you can set a[0] value before the DLL function call ( = 0 by default), click the button to call DLL, and then see both a[0] and a[99] result values.
If a[0] is equal to 0, a[1] = 1 ... a[127] = 127 before the function call, after the function call a[99] would be equal to 8300.
|
Accessing a Delphi DLL function.
|
Jeff,
Ok, here you having it working fine. I redesigned it in a total different way:
[code:2u3wtsc5]
#include "FiveWin.ch"
function Main()
local cArray := FillArray()
MsgInfo( A99( cArray ) )
TestFunc1( cArray )
MsgInfo( A99( cArray ) )
return nil
DLL FUNCTION TESTFUNC1( pValues AS LPSTR ) AS BOOL PASCAL ;
FROM "TestFunc1" LIB "TestLib12.dll"
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
HB_FUNC( FILLARRAY )
{
LONG a[ 128 ];
int i;
for( i = 0; i < 128; i++ )
a[ i ] = i;
hb_retclen( ( char * ) a, 128 * sizeof( LONG ) );
}
HB_FUNC( A99 )
{
LONG * a = ( LONG * ) hb_parc( 1 );
hb_retnl( a[ 99 ] );
}
#pragma ENDDUMP
[/code:2u3wtsc5]
|
Accessing a Delphi DLL function.
|
Thanks for all the help Antonio.
I am going to buy the software today.
I will let you know you well it works.
Jeff
|
Accessing a Delphi DLL function.
|
Jeff,
You are welcome,
IMO it will work fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Accessing a web service from FiveTouch !!!
|
Thanks to Rafa Carmona here you have a working example of how to access a web service
using Harbour code and FiveTouch! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
This opens the door to manage any remote database (MySQL, SQL, etc) using a web service
which it is the advised way to do it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Finally we can use any database engine from FiveTouch! Many thanks Rafa!!!
[code=fw:ptqrw9kn]<div class="fw" id="{CB}" style="font-family: monospace;">PROCEDURE test_htip<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oHttp, hQuery, cResponse<br /><br /> hQUery := <span style="color: #000000;">{</span> => <span style="color: #000000;">}</span><br /> hb_HCaseMatch<span style="color: #000000;">(</span> hQuery, .F. <span style="color: #000000;">)</span><br /><br /> oHttp := TIPClientHTTP<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"http://adaptaproyectoserp.com.ve/webservices/client.php"</span>, .T. <span style="color: #000000;">)</span><br /> hQuery<span style="color: #000000;">[</span> <span style="color: #ff0000;">"nombre"</span> <span style="color: #000000;">]</span> := <span style="color: #ff0000;">"THefull The BEST!"</span><br /> <br /> <span style="color: #00C800;">IF</span> ! oHttp:<span style="color: #000000;">open</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Error: oHttp:open(): "</span> + oHttp:<span style="color: #000000;">lastErrorMessage</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">IF</span> ! oHttp:<span style="color: #000000;">post</span><span style="color: #000000;">(</span> hQuery <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Error: oHttp:post(): "</span> + oHttp:<span style="color: #000000;">lastErrorMessage</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> cResponse := oHttp:<span style="color: #000000;">readAll</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oHttp:<span style="color: #000000;">close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> Alert<span style="color: #000000;">(</span> cResponse <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">RETURN</span></div>[/code:ptqrw9kn]
[img:ptqrw9kn]https://bitbucket.org/fivetech/screenshots/downloads/webservice_fivetouch.JPG[/img:ptqrw9kn]
|
Accessing a web service from FiveTouch !!!
|
Excellent, Good News
|
Accessing a web service from FiveTouch !!!
|
Using it from FiveTouch for Android:
[img:netzyvzj]https://bitbucket.org/fivetech/screenshots/downloads/fivetouch_web_service_android1.png[/img:netzyvzj]
[img:netzyvzj]https://bitbucket.org/fivetech/screenshots/downloads/fivetouch_web_service_android2.png[/img:netzyvzj]
|
Accessing a web service from FiveTouch !!!
|
Antônio,
Could you build an small example of use MySql with FiveTouch ?
|
Accessing a web service from FiveTouch !!!
|
Vilian,
Simply call a remote PHP from FiveTouch, like in the above example, and use the MySQL returned value
You don't even need to build a web service in the server. Just simple PHP code to retrieve a MySQL field value and return it
|
Accessing to MySQL from FiveTouch
|
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=33&t=36840">viewtopic.php?f=33&t=36840</a><!-- l -->
|
Acción al pulsar imagen en Browse
|
Hola.
Estoy intentando ejecutar una acción cuando se pulsa una imagen de una celda del xBrowse pero no me reacciona, supongo que me dejo algo.
En base al ejemplo xbrimag2.prg de Fivewin, he incluido el data bBmpAction:
[code=fw:jnh16dpj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> :<span style="color: #000000;">cDataType</span> := <span style="color: #ff0000;">'F'</span><br /> :<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">80</span><br /> :<span style="color: #000000;">nDataBmpAlign</span> := AL_CENTER<br /> :<span style="color: #000000;">aImgRect</span> := <span style="color: #ff0000;">"circle"</span><br /> :<span style="color: #000000;">bBmpAction</span> := <span style="color: #000000;">{</span>||MsgInfo<span style="color: #000000;">(</span><span style="color: #ff0000;">'hola'</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br />END</div>[/code:jnh16dpj]
[url=https://ibb.co/8rkrKqP:jnh16dpj][img:jnh16dpj]https://i.ibb.co/8rkrKqP/2021-08-20-10h20-39.png[/img:jnh16dpj][/url:jnh16dpj]
Que me estoy dejando?
Salud!
|
Acción al pulsar imagen en Browse
|
Victor, prueba con la data bLDClickData del objeto columna
|
Acción al pulsar imagen en Browse
|
Victor
Intenta con:
[code=fw:u28ilv3m]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">bLClicked</span>:= <span style="color: #000000;">{</span>|r,c,f,oBrw| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">MouseColPos</span><span style="color: #000000;">(</span>c<span style="color: #000000;">)</span>=<span style="color: #000000;">1</span>,<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'hola'</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /> </div>[/code:u28ilv3m]
|
Acción al pulsar imagen en Browse
|
[quote="acuellar":1dlyncnt]Victor
Intenta con:
[code=fw:1dlyncnt]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">bLClicked</span>:= <span style="color: #000000;">{</span>|r,c,f,oBrw| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">MouseColPos</span><span style="color: #000000;">(</span>c<span style="color: #000000;">)</span>=<span style="color: #000000;">1</span>,<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'hola'</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /> </div>[/code:1dlyncnt][/quote:1dlyncnt]
Esto no me funciona ya que es a nivel del browse y lo que necesito es que reacciones a la pulsación de la imagen en una columna
[quote="cnavarro":1dlyncnt]Victor, prueba con la data bLDClickData del objeto columna[/quote:1dlyncnt]
Me ha funcionado, lo único que ha de ser con doble click
[code=fw:1dlyncnt]<div class="fw" id="{CB}" style="font-family: monospace;">:<span style="color: #000000;">bLDClickData</span> := <span style="color: #000000;">{</span> || <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Hola"</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span></div>[/code:1dlyncnt]
He visto en la clase que existe la DATA [b:1dlyncnt]bRClickData [/b:1dlyncnt]pero no [b:1dlyncnt]bLClickData[/b:1dlyncnt], supongo que será una limitación del sistema ya que el click simple izquierdo del ratón es el que lleva el foco al objeto.
Con el doble click izquierdo ya me apaño.
Gracias a los dos!!!
|
Acción con tecla ESCAPE en tGet
|
Las siguientes instrucciones en los metodos KeyChar y KeyDown de tGet y tControl(), no sólo evitan un beep, sino que también impiden la ejecución de cualquier acción al pulsar la tecla ESC.
if nKey == VK_ESCAPE // avoids a beep!
::oWnd:KeyChar( nKey, nFlags )
return 1
endif
Tuve que hacer override de esos métodos (quitando estas instrucciones) para que un diálogo con un get se cerrara al pulsar un ESC, es decir,
@ 0,0 GET oGet VAR cVar OF oDlg ......
oGet:bKeyDown:={|nK,nF| if(nK=VK_ESCAPE,oDlg:End(),nil)}
Pregunta: ¿Cuáles pueden ser las consecuencias negativas de estos override?
Gracias.
César Lozada
|
Acción con tecla ESCAPE en tGet
|
Buenos dias Cesar, desculpe el incomodo...
Por favor, tienes alguna nueva version de SETMENUBG()????
//
[code:gz4e1yjo]
*******************************************************************************
*
* Function SetMenuBG(oWndMain, nClrBack, oBrush)
*
* ENGLISH : Changes menus backgrounds or paint them with a brush
* ESPANHOL: Cambia el color de fondo de los menús o les agrega un brush
*
* TESTED / PROBADO: FWH23c, xHarbour0.81
*
* César E. Lozada (cesarlozada@hotmail.com)
* Los Teques, Venezuela 2003-08-08
*
*******************************************************************************
[/code:gz4e1yjo]
Best regars, saludos.
|
Acción con tecla ESCAPE en tGet
|
César,
En principio no tiene que haber problemas por ese cambio, salvo que el GET tenga un VALID y no quieras que el usuario salga del diálogo con ESC.
Aunque en tal caso el VALID del diálogo se ejecutaría.
|
Acción con tecla ESCAPE en tGet
|
Up! Donde está César??
|
Acción en Items TreeView
|
Al seleccionar una Items en un TreeView se puede ejecutar una acción ?
¿Como?
Saludos,
Manuel
|
Acción en un bitmap
|
Compañeros, tengo un bitmap en un dialogo, lo implementé de la siguiente manera,
[code=fw:2hzz9hfd]<div class="fw" id="{CB}" style="font-family: monospace;"><br />hBitmap := LoadBitmap<span style="color: #000000;">(</span> GetResources<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">'cerrar'</span> <span style="color: #000000;">)</span><br />DrawBitmap<span style="color: #000000;">(</span> hDc, hBitmap, <span style="color: #000000;">8</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">4</span> <span style="color: #000000;">]</span> - <span style="color: #000000;">45</span>, <span style="color: #000000;">37</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">)</span><br /> </div>[/code:2hzz9hfd]
Me gustaría que se pudiera ejecutar una acción al hacer click en él. Existe alguna manera ? Muchísimas gracias.
Saludos
|
Acción en un bitmap
|
Horacio,
Lo idóneo es que uses un control TBitmap. Si lo estás mostrando sobre una ventana puedes hacer:
@ <nFila>, <nColumna> BITMAP oBmp OF oWnd RESOURCE "cerrar" ;
ON CLICK MsgInfo( "Mi acción" )
Para un diálogo definido desde recursos:
REDEFINE BITMAP oBmp ID <nId> OF oDlg RESOURCE "cerrar" ;
ON CLICK MsgInfo( "Mi acción" )
Y en el fichero RC lo defines como un control definido por el usuario de clase "TBitmap"
|
Acción en un bitmap
|
Antonio, esta rutina la utilizo en el método Paint del dialogo, si utilizo la clase me da errores cada tanto. Por eso decidí implementarlo de esta manera. Capaz que se pueda usar la clase pero no he podido dilucidar el porque de los gpf. Gracias
Saludos
|
Acción en un bitmap
|
Horacio, te estoy contestando desde una tableta, por lo que no tengo el FWH a mano, pero con oDlg:blButtonDown o como se llame, puedes llamar a una función pasándole nRow y nCol, para saber si has pinchado sobre el Bmp o no. Eso lo hago algunas veces y va muy bien.
Un saludo.
|
Acción en un bitmap
|
Antolín, gracias por tu respuesta. Si pudieras postear un ejemplo te lo agradecería.
Saludos
|
Acción en un bitmap
|
Algo como esto::
[code=fw:2o3mfwi6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> ....<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">GET</span> ....<br /> ...<br /> oDlg:<span style="color: #000000;">bPainted</span> := <span style="color: #000000;">{</span> |hDc| <span style="color: #000000;">(</span> PalbmpLoad<span style="color: #000000;">(</span>hDc,<span style="color: #000000;">10</span>,<span style="color: #000000;">10</span>,hBmp,hPal<span style="color: #000000;">)</span>, .... <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oDlg:<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">{</span> |nRow,nCol| AccionBmp<span style="color: #000000;">(</span>nRow,nCol,hBmp<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> ...<br /><br />Suoponiendo que el Bitmap esta en las coordenadas <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> y mide 200X300 <span style="color: #000000;">(</span>AnchoXAlto<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">FUNCTION</span> AccionBmp<span style="color: #000000;">(</span>nRow,nCol,hBmp<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> nRow > <span style="color: #000000;">9</span> .AND. nRow < <span style="color: #000000;">311</span> .AND. nCol > <span style="color: #000000;">9</span> .AND. nCol < <span style="color: #000000;">211</span><br /> ...<br /> HE PINCHADO SOBRE EL BITMAP<br /> Y REALIZO LA ACCION PREVISTA<br /> ...<br /> <span style="color: #00C800;">ENDIF</span><br /> ...<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:2o3mfwi6]
|
Acción en un bitmap
|
Muchas gracias Antolín por tu sugerencia, pruebo y comento.
Saludos
|
Acción en un bitmap
|
Funcionó perfectamente. Muchas gracias Antolín.
Saludos
|
Accordion Menu
|
Hello everyone, a cool new control for our programs I think it could be a Accordion Menu... I think it could be done by modifying the OUTLOOK CLASS...
[img:30842qzd]http://f-source.com/accordion-menu/iphone/images/iphone-menu-demo.png[/img:30842qzd]
|
Accounting Software
|
Hi All
Has anyone interfaced their software with Sage Pastel or any of the other
smaller accounting packages ie MYOB , Quickbooks.
Regards
Colin
|
Accounting Software
|
Colin,
I've done some work with Quickbooks. What do you want to know?
Randal
|
Accounting Software
|
I import data from accounting software using CSV files.
Colin I'd like to see what your doing with quickBooks. Do you have a direct link to QB or use an intermiedate step such as a csv file?
|
Accounting Software
|
Hi Randal and Harvey
Harvey - Randal has the done the interface to Quickbooks.
I am trying to interface my job costing software to an accounting package - my
client likes Sage Pastel - there is a SDK which uses activex but I cant find any
code samples and if I want to evaluate the product I would have to purchase the
full accounting product , SDK and the SQL database it uses and this is over $2000 AUD.
So this is why I am asking about other products and how the interface is achieved.
Cheers
Colin
|
Accounting Software
|
Sorry Got you mixed up. Can you client upload data from a csv. I send my data to excel have it save in a CSV file which is then imported into their bookkeeping program. This any help?
|
Accounting Software
|
Harvey
I am hoping to transfer data in realtime rather than in batches.
Cheers
Colin
|
Accounting Software
|
You can also use an SDK ( free ) for Quickbooks, but you would have to buy that product.
There are samples available for working with QB.
|
Accounting Software
|
Harvey,
[quote:mkosu07y]I send my data to excel have it save in a CSV file which is then imported into their bookkeeping program.[/quote:mkosu07y]
You do know that you can save data directly to a CSV file directly from within FW? You don't have to go through Excel.
James
|
Accounting Software
|
Thanks james I do create a CSV directly from the porgram. Its on the import side when the file to import must be a csv file.
|
Ace32.dll y mas dll porque?
|
saludos al foro:
Valla que surgen detalles durante las actualizaciones.
Como puedo saber para que me sirve la ace32.dll tanto local como en red. He tenido ese detalle con pruebas en red de mis app.
Y asi como esa, las que necesite saber.
Es suponer que algunas libs, requieren su dll, pero existe referencia de ello.
Me esta marcando detalles de que mi app. no funciona por el ace32.dll
Por ultimo, puedo sin problemas correr mi app. 32 bits en un sistema w7 a 64 bits?
Ayuda.
|
Ace32.dll y mas dll porque?
|
Noé,
Usas Advantage RDD ? Si no lo usas, no tienes porque enlazar su libreria ni necesitar su DLL.
Las aplicaciones en 32 bits (las que construyes con Harbour y FWH) funcionan perfectamente en Windows de 64 bits <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Ace32.lib
|
Yesterday I changed xHarbour to newest , 1.1.0 version . All is working ok , except this lib . Sorry but in one place one program is using this .. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> . Can any share with me a newest ace32.dll and adsloc32.dll ?
My e-mail : <!-- e --><a href="mailto:rimantasu@gmail.com">rimantasu@gmail.com</a><!-- e --> ... Many thanks in advance !
Regards !
|
Ace32.lib
|
Thanks to NageswaraRao ! All is working OK now ...
Regards !
|
Aceleradoes (Hotkeys)
|
Seria muy bueno que los Aceleradores (hotkeys), funcionen correctamente con o sin el parametro 2007 en BTNBMP y BUTTONBMP.
Se ha trabajado en la apariencia, lo cual esta muy bien y es la razon por la cual me actualice a la 9.04, pero ... siempre hay un pero...se descuido la funcionalidad, a mi me paso hoy, una actualizacion a una aplicacion que funcionaba bien, me dio lios.
saludos <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
Aceleradoes (Hotkeys)
|
Blessed,
Puedes proporcionar un pequeño ejemplo de lo que antes funcionaba bien y ahora no va ? gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Aceleradoes (Hotkeys)
|
Hello Antonio
this is my workaround :
Maurizio
DEFINE BUTTONBAR oBar SIZE 40,40 OF oDlg
DEFINE BUTTON oBtn RESOURCE 'Add' OF oBar ACTION MsgInfo("Ciao")
oBtn:cargo := VK_F3
oDlg:bKeyDown = { | nKey | CheckKey(nKey,oBar)}
Function CheckKey(nKey,oBar)
Local nX,nY
Local lControl := GetKeyState(VK_CONTROL ) // Ho premuto il tasto control
IF nKey >= VK_F2 .AND. nKey <= VK_F12
IF oBar:lActive
FOR ny := 1 TO len(oBar:aControls)
IF oBar:aControls[ny]:cargo # nil .AND. oBar:aControls[ny]:lActive
if oBar:aControls[nY]:cargo == nKey
oBar:setfocus()
oBar:aControls[nY]:Click()
endif
ENDIF
NEXT
ENDIF
ENDIF
Return nil
|
Aceleradoes (Hotkeys)
|
saludos Antonio:
[quote:ahro8tqs]
Postby Antonio Linares » Wed May 06, 2009 7:39 am
Blessed,
Puedes proporcionar un pequeño ejemplo de lo que antes funcionaba bien y ahora no va ? gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
regards, saludos
[/quote:ahro8tqs]
Mi comentario es especificamente Acerca de los hotkeys, lo de mis clientes son lios en mi codigo, nada que ver con FiveWin <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
Aceleradoes (Hotkeys)
|
Blessed,
me referia a los hotkeys <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Son los hotkeys de los textos de los botones ?
Puedes mostrar un ejemplo de como los defines ? gracias,
|
Aceleradoes (Hotkeys)
|
Perdon,
Aqui el ejemplo:
[code=fw:3ryh6y8q]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">790</span> ;<br /> <span style="color: #0000ff;">OF</span> oWndChilds<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Reporte"</span> ;<br /> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Data"</span> <span style="color: #0000ff;">LEFT</span> <span style="color: #000000;">2007</span> ;<br /> <span style="color: #0000ff;">ACTION</span> GOConsultaDoc<span style="color: #000000;">(</span> cMovi_Tipo, cMovi_Razon, cMovi_Docum <span style="color: #000000;">)</span><br /> </div>[/code:3ryh6y8q]
Asumiento que con en el PROMPT la letra seguida de & sera el hotkey como me funciona en la clase BUTTON y claro esta haciendo uso de indicaciones del archivo "Fivewin.ch"
[code=fw:3ryh6y8q]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #000000;">[</span><oBtn><span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ID</span> <nId> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <bar: <span style="color: #0000ff;">OF</span>, <span style="color: #0000ff;">BUTTONBAR</span> > <oBar> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <resource: <span style="color: #0000ff;">NAME</span>, <span style="color: #0000ff;">RESNAME</span>, RESOURCE> <cResName1> ;<br /> <span style="color: #000000;">[</span>,<cResName2><span style="color: #000000;">[</span>,<cResName3><span style="color: #000000;">]</span><span style="color: #000000;">[</span>,<cResName4><span style="color: #000000;">]</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <file: <span style="color: #000000;">FILE</span>, FILENAME, DISK> <cBmpFile1> ;<br /> <span style="color: #000000;">[</span>,<cBmpFile2><span style="color: #000000;">[</span>,<cBmpFile3><span style="color: #000000;">[</span>,<cBmpFile4><span style="color: #000000;">]</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <action:<span style="color: #0000ff;">ACTION</span>,EXEC,<span style="color: #0000ff;">ON</span> CLICK> <uAction,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">MESSAGE</span> <cMsg> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <adjust: <span style="color: #0000ff;">ADJUST</span> > <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">WHEN</span> <uWhen> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lUpdate: <span style="color: #000000;">UPDATE</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> TOOLTIP <cToolTip> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">PROMPT</span> <cPrompt> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lNoBorder: <span style="color: #000000;">NOBORDER</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <layout: <span style="color: #0000ff;">CENTER</span>, TOP, <span style="color: #0000ff;">LEFT</span>, BOTTOM, RIGHT> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <l2007: <span style="color: #000000;">2007</span>> <span style="color: #000000;">]</span> ; <br /> <span style="color: #000000;">[</span> <lTrans: <span style="color: #000000;">TRANSPARENT</span>> <span style="color: #000000;">]</span></div>[/code:3ryh6y8q]
Saludos
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.