topic
stringlengths
1
63
text
stringlengths
1
577k
Pegar"" DIALOGO a MAIN WINDOW
Para "pegar" un dialogo al MAIN WINDOW al iniciar mi programa, uso la clausula ON INIT, asi como oDlg:Move(x,y) para posicionar dicho dialogo dentro del WINDOW; al dialogo le quito el CAPTION asi este no se puede mover. El problema lo tengo que el MAIN WINDOW si se puede mover y maximizar. Lo que quisiera es que cua...
Pegar"" DIALOGO a MAIN WINDOW
George, Para que el diálogo sea "child" de la ventana, usa la claúsula OF: DEFINE DIALOG ... OF oWnd Así se moverá a la vez que se mueva la ventana.
Pegar"" DIALOGO a MAIN WINDOW
Antonio Asi es que lo tengo desde el principio, debe ser otra cosa que me falta. Abajo esta el codigo simplificado a ver si tu puedes ver algo que yo estoy pasando por alto >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> FUNCTION Main() BWCCRegister(GetResources()) PUBLIC oWnd DEFINE FONT oFont NAME "MS SAN...
Pegar"" DIALOGO a MAIN WINDOW
George, Es preciso que muestres como está definido "DIALOG_4" en tu fichero RC.
Pegar"" DIALOGO a MAIN WINDOW
Antonio, El DIALOG_4 no lo estoy definiendo como CHILD. El problema es que si lo defino como CHILD entonces, aunque se mueve bien con el WINDOW MAIN, el DIALOG_4 no se dibuja completo y algunos controle ni siquieran funcionan, los say no se dibujan, etc. Seguire investigando, pues es la primera vez que intento esto ...
Pegar"" DIALOGO a MAIN WINDOW
Esto quiza te pueda servir [code:2y8fvhcj]/* ╔═════════════════════════════════════&#9552...
Pegar"" DIALOGO a MAIN WINDOW
Renomas Gracias por tu ayuda Pero al tratar de compilar la clase que me enviaste se me genera un error: Unresolved external symbol HB_FUN_TDLGCHILD_END. Parece que no existe el metodo END. Saludos George
Pegar"" DIALOGO a MAIN WINDOW
George, Por favor revisa el ejemplo samples\TestMdi4.prg
Pegar"" DIALOGO a MAIN WINDOW
Antonio, Solucionado gracias al ejemplo testmdi4.prg Gracias George
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Dear Antonio and friends![b:20op8ghm]* New: REDEFINE SAY ... TRANSPARENT already available. No need to declare a variable to hold the SAY object to set its transparency. [/b:20op8ghm]My syntax is here:[code:20op8ghm]REDEFINE SAY PROMPT "Test oSay Transparent" ID 4001 OF oDlg FONT ( TFont():new( "Tah...
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Hello JC,i couldn't detect any problem.As you can see : a transparent SAY on Gradient-background.Value 0.50 is a GETThe say-text is directly written inside the resource. !!!!I didn't use REDEFINE SAY[img:2761oldd]http&#58;//www&#46;pflegeplus&#46;com/pictures/setting9&#46;jpg[/img:2761oldd]RegardsUwe <!-- s:lol: --><i...
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Uwe, this is my REDEFINE SAY into our application:[img:2swl9dyx]http&#58;//lh3&#46;ggpht&#46;com/ferreira&#46;together/SLWbm9euuWI/AAAAAAAAAKc/qRhMwH5JeZM/s800/say&#46;JPG[/img:2swl9dyx]It's on top of a bitmap image from resource!Not works!
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Hello JC,I understand.This is complete different ( Text on BMP ).I will give you a source-sample for this in this topic.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
[quote="ukoenig":20ata0f5]Hello JC, I understand. This is complete different ( Text on BMP ). I will give you a source-sample for this in this topic. Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->[/quote:20ata0f5]Uew, please send me on <!-- e --><a hre...
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Júlio,Are you using a BRUSH from a bitmap for the Dialog ?
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
[quote="Antonio Linares":e3pmnzzd]Júlio, Are you using a BRUSH from a bitmap for the Dialog ?[/quote:e3pmnzzd]Antonio, not! I'm using this way:[code:e3pmnzzd]TBitmap&#40;&#41;&#58;redefine&#40; nId, cResName,, oDlg,,,, lStretch,,,,,, lTransparent &#41;[/code:e3pmnzzd]
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Júlio,Then try to use:oBitmap:Say( nRow, nCol, cText, ... ) METHOD Say( nRow, nCol, cText, nClrFore, nClrBack, oFont, lPixel,; lTransparent, nAlign )
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
[quote="Antonio Linares":12vzrf65]Júlio, Then try to use: oBitmap:Say( nRow, nCol, cText, ... ) METHOD Say( nRow, nCol, cText, nClrFore, nClrBack, oFont, lPixel,; lTransparent, nAlign )[/quote:12vzrf65]Antonio,I tried with this implementation, but not works![code:12vzrf65] oBitmap &#58;= TBit...
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Julio,You have to do that call from the ON INIT of the dialog:ACTIVATE DIALOG oDlg ;ON INIT oBitmap:Say( 2, 2, "Cadastro Plano de Contas",,,,, .T. )
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
And remove the SAY control ! ("text") <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
In fact, it should be used from the ON PAINT, to properly refresh:ACTIVATE DIALOG oDlg ; ON PAINT oBitmap:Say( 2, 2, "Cadastro Plano de Contas",,,,, .T. )
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Antonio,My code:[code:95ak1q3i]DEFINE DIALOG oDlg RESOURCE "DEFAULT_FORM" OF oWnd ICON oIcon oBitmap &#58;= TBitmap&#40;&#41;&#58;redefine&#40; 100, "IMG_BARRA_TOP",, oDlg &#41; &#46;&#46;&#46; ACTIVATE DIALOG oDlg CENTER ON PAINT &#40; oBitmap&#58;say&#40; 2, 2, "Cadastro Plano de Contas",,,,,...
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Hello JC,Like Antonio told you : You have to use ONPAINT, to solve your problem. Here is just a quick sample, how i use text-writing on BMP's from Resource on any places.The BMP-resource is filled with a brush or color, then a text is painted. I use it for my Title-paintings. Maybe you can find some informations on it....
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Uwe,>Like Antonio told you : You have to use ONPAINT, to solve your problem. I think what JC is saying is that the 3rd-party product, sensitive SAY, does work without being called from ON PAINT, so it is techinically possible. He hopes that Antonio can achive the same with the native FW SAY. I hope so too.James
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
James,FWH uses a Windows standard control ("static") for the SAYs. This way standard static controls can be used from the resources editors. I guess that TSSay implements a user defined control to solve those limitations.
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
[quote="James Bott":333azhx0]Uwe, >Like Antonio told you : You have to use ONPAINT, to solve your problem. I think what JC is saying is that the 3rd-party product, sensitive SAY, does work without being called from ON PAINT, so it is techinically possible. He hopes that Antonio can achive the same with the native FW...
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Dear friends!The TSSay class!<!-- m --><a class="postlink" href="http://rapidshare.com/files/140764158/SSay.prg.html">http://rapidshare.com/files/140764158/SSay.prg.html</a><!-- m -->
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Júlio,Here you have a working example <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->test.prg[code:25b1g35e] #include "FiveWin&#46;ch" function Main&#40;&#41; local oDlg, oBmp, oFont DEFINE FONT oFont NAME "Verdana" SIZE 0, -16 BOLD DEFINE DIALOG oDlg RESOUR...
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Antonio, James, Uwe and friends!It's works now! With very much strength!! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->This is my generic user function:[code:3vzdns3p]FUNCTION aplImage&#40; oDlg, nId, cResNome, lTransparente, lStretch, cLabel &#41; LOCAL oBitmap DEFAULT lT...
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Julio,You have to modify your function as you are creating fonts and you are not releasing them:[code:9weg12lc] FUNCTION aplImage&#40; oDlg, nId, cResNome, lTransparente, lStretch, cLabel &#41; LOCAL oBitmap static oFont DEFAULT lTransparente &#58;= &#46;F&#46; , ; cResNome &#58;= "IMG_BAR...
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Thank you Linares!I have changed my source!Antonio, no have a way for redefine the say with this syntax and with the same effect of a bPainted call?[b:1l7s06ig]REDEFINE SAY ... TRANPARENT[/b:1l7s06ig]
REDEFINE SAY ... TRANSPARENT"" not work! SOLVED!
Júlio,No, not yet
Resize"" event for tcbrowse column
Hi, What event gets triggered when the user resizes the column width of the tcbrowse control? I appreciate any help. Bert
Resize"" event for tcbrowse column
Bert, Class TCBrowse does not send any specific notification for such event. What action do you need to do on such event ? We may provide you some info about how to do it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Resize"" event for tcbrowse column
Hi, This is just a cosmetic thing. I have a dialog with two "identical" grids. I want the grids to be of the same column widths all the time. So, I need to know if the user resizes the first grid so i can update the other one. Thanks Bert
Resize"" event for tcbrowse column
Bert, You could easily modify Class TWBrowse Method LButtonUp() to fire such notification. Here I show you how to modify it. You may need to add a new DATA bColResized: [code=fw:2ab84y6a]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> LButtonUp<span style="co...
Resize"" event for tcbrowse column
Antonio, thanks a lot. This should do it. Have a nice day. Bert
SUBMARINE"" - template for a web page (DBF database)
HEllo friends, [b:3gc71n11]Project name "SUBMARINE"[/b:3gc71n11] template for a web page We will evolve step by step this example. data comes from a DBF file bootstrap 4 -> card-columns from w3 school added a bs4 w3school slider snippet Live-Demo [url:3gc71n11]https&#58;//www&#46;modharbour&#46;club/submarine/index&#...
Shortname"" for FIELD of DBF
hi, when "read" XLSx via Excel ActiveX i often have "Header" which are longer than 10 Sign for FIELD in DBF those "Header" Name can be equal on SUBSTR("Headername",1,10) so i need a "Shortname" did somebody know a Way to get a unique "Shortname" from String which is longer than 10 Sign <!-- s:?: --><img src="{SMILIE...
Shortname"" for FIELD of DBF
Dear Jimmy, I tried ChatGPT :=) Best regards and have a nice Sunday, Otto hi, when "read" XLSx via Excel ActiveX i often have "Header" which are longer than 10 Sign for FIELD in DBF those "Header" Name can be equal on SUBSTR("Headername",1,10) so i need a "Shortname" did somebody know a Way to get a unique "Shor...
Shortname"" for FIELD of DBF
[quote="Jimmy":irwek2cd]hi, when "read" XLSx via Excel ActiveX i often have "Header" which are longer than 10 Sign for FIELD in DBF those "Header" Name can be equal on SUBSTR("Headername",1,10) so i need a "Shortname" did somebody know a Way to get a unique "Shortname" from String which is longer than 10 Sign <!-- s...
Shortname"" for FIELD of DBF
hi Otto, [quote="Otto":2bkl1k7s]I tried ChatGPT [/quote:2bkl1k7s] Answer from ChatGPT might work ... but a Hash is not "readable" for Human as Marc say to change last 2 Sign (of 10) is enough to make it unique for 99 "Header"
Snap"" for Clipper
Snap outout for FWH window.prg: filelist.doc [code=fw:1xb84c57]<div class="fw" id="{CB}" style="font-family: monospace;">System: <br /><span style="color: #000000;">Author</span>: <br /><span style="color: #000000;">26</span>/<span style="color: #000000;">10</span>/<span style="color: #000000;">11</span>   <span style...
Snap"" for Clipper
Y aqui snap: [url:2jjveess]http&#58;//www&#46;the-oasis&#46;net/files/utils/snp502&#46;zip[/url:2jjveess]
Snap"" for Clipper
Do you have "Snap" for Clipper ? I would like to review the kind of output that "Snap" produced from PRGs, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> It seems as there was also a "documentor" from Wallsoft and another named "TechWriter"
Snap"" for Clipper
Tienes "Snap" para Clipper ? Me gustaría revisar el formato de la información que "Snap" producía a partir de los PRGs, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Parece que tambien existía un "documentor" producido por Wallsoft y otro llamado "TechWriter"
Snap"" for Clipper
[url:2ptwc78x]https&#58;//code&#46;google&#46;com/p/harbourclick/[/url:2ptwc78x]
Snap"" for Clipper
prcsumry.doc [code=fw:1pueohhy]<div class="fw" id="{CB}" style="font-family: monospace;">System: <br /><span style="color: #000000;">Author</span>: <br /><span style="color: #000000;">26</span>/<span style="color: #000000;">10</span>/<span style="color: #000000;">11</span> &nbsp; <span style="color: #000000;">11</span>...
Snap"" for Clipper
xref.doc [quote:23l0k2s6]Author: 26/10/11   11:32:10 Token Cross-Reference Report ------------------------------------------------------------------------------- 767 tokens are included in this report. Legend for context symbols:    (blank) reference does not change the variable or field value.    = variable or f...
Snap"" for Clipper
404 Not Found The resource requested could not be found on this server! Regards.
Speech Recognition"" y FWH
Algun compañero del foro ha experimentado con "Speech Recognition" (comandos via voz). Es decir controlar nuestros programas por medio de comandos dados de forma hablada en lugar de usar el teclado. En que se basa esta tecnica? Cual ActiveX es el recomendado para trabajar con xHarbour + FWH? Saludos, George
Speech Recognition"" y FWH
Es curioso que ningun miembro del foro, ni siquiera A. Linares, haya experimentado con SAPI + FWH. Es decir controlar nuestros programas por medio de "Comando de Voz" en vez de usar el teclado o el "mouse". Aqui les dejo algunos links por si les interesa el tema: <!-- m --><a class="postlink" href="http://www.microsof...
Starting With"" ""Containing""
[quote="Marc Venken":1xyjmy4u]From Mr. Rao... [code=fw:1xyjmy4u]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'ord.ch'</span><br /...
Starting With"" ""Containing""
I made the search on xbrowse with @ 10, 165 GET oGet VAR cSeek..... @ 10, 550 COMBOBOX oBrw:oSortCbx VAR oBrw:cSortOrder; SIZE 150,400 PIXEL OF oDlg HEIGHTGET 14.8 STYLE CBS_DROPDOWN I'd like add also the options "Starting With", "Containing" on combobox but I not Know how make it I saw this on [b:3dc...
Starting With"" ""Containing""
From Mr. Rao... [code=fw:3ndns0j5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'ord.ch'</span><br /><span style="color: #00D7D7;"...
Starting With"" ""Containing""
[quote:1a46sphe]I'd like add also the options "Starting With", "Containing" on combobox but I not Know how make it [/quote:1a46sphe] XBROWSER.PRG already has the code for it. Please adapt .
Starting With"" ""Containing""
[quote="nageswaragunupudi":1e0nb9aw][quote:1e0nb9aw]I'd like add also the options "Starting With", "Containing" on combobox but I not Know how make it [/quote:1e0nb9aw] XBROWSER.PRG already has the code for it. Please adapt .[/quote:1e0nb9aw] yes I saw but I need to create this : when I insert this line @ ...
Text"" Date/Time to ""Number"" ?
hi, have write my own "phpBB Froum Grabber" but i have use HMG Syntax. it work well with HMG and Xbase++ phpBB Forum but with FiveWin Forum i have Problem with Date/Time Format [quote:3zb6m28v]&raquo; Thu Oct 06, 2005 6:24 pm </p> &raquo; Thu Oct 06, 2005 8:28 pm </p> &raquo; Fri Oct 07, 2005 7:11 pm </p> &raquo; Su...
Text"" Date/Time to ""Number"" ?
<!-- m --><a class="postlink" href="https://github.com/Petewg/harbour-core/wiki/Date-Time">https://github.com/Petewg/harbour-core/wiki/Date-Time</a><!-- m -->
Text"" Date/Time to ""Number"" ?
hi, [quote="cnavarro":1fvn72ds]https://github.com/Petewg/harbour-core/wiki/Date-Time[/quote:1fvn72ds] thx for Answer. which hb_* Function is to use to convert "Oct 06, 2005" into Type "D" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> which DATE Format is need <!...
Text"" Date/Time to ""Number"" ?
Do you wan to convert the string "&raquo; Thu Oct 06, 2005 6:24 pm </p>" into string "2005-10-06 18:24:00" ? You said you could do it with Xbase++. Can you please share your XBase++ code that does this conversion?
Text"" Date/Time to ""Number"" ?
hi, [quote="nageswaragunupudi":174pjj53]Do you wan to convert the string "&raquo; Thu Oct 06, 2005 6:24 pm </p>" into string "2005-10-06 18:24:00" ?[/quote:174pjj53] Yes [quote="nageswaragunupudi":174pjj53] You said you could do it with Xbase++. Can you please share your XBase++ code that does this conversion?[/quote:...
Text"" Date/Time to ""Number"" ?
Not sure this is useful to anybody to me, but this is how I convert back and forth from harbour datetime to ISO datetime. [code=fw:2dymxiv8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// -------------------------------------------------------------------------- //</spa...
Text"" Date/Time to ""Number"" ?
[code=fw:30u03v7p]<div class="fw" id="{CB}" style="font-family: monospace;">Secs<span style="color: #000000;">&#40;</span> <cTimeStr> / <tDateTime> <span style="color: #000000;">&#41;</span> --> nSecs<br />TimeToSec<span style="color: #000000;">&#40;</span> <cTimeStr> <span style="color: #000000;">&#41;</span> --> nSec...
Text"" Date/Time to ""Number"" ?
Thanks Rao. The secs() function in harbour actually gets mapped to hb_sec() in dateshb.c, which took me a few minutes to find. But I see a bunch of potentially useful functions there now that I'm going to test to see if I can get rid of the code I'm currently using and revert to native harbour. Robb
Text"" Date/Time to ""Number"" ?
[quote="rhlawek":zby7shvq]Not sure this is useful to anybody to me, but this is how I convert back and forth from harbour datetime to ISO datetime. [code=fw:zby7shvq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// --------------------------------------------------------...
VMWare server"" - too good to be true?
Hello! <!-- m --><a class="postlink" href="http://www.theregister.co.uk/2006/02/03/vmware_goes_free/">http://www.theregister.co.uk/2006/02/03 ... goes_free/</a><!-- m --> <!-- m --><a class="postlink" href="http://news.com.com/VMware+to+make+server+product+free/2100-1012_3-6034615.html">http://news.com.com/VMware+to+m...
Windows to Go"" by Microsoft
[url:5cyasopb]http&#58;//www&#46;redmondpie&#46;com/microsoft-shows-off-windows-to-go-usb-stick-runs-windows-8-on-older-windows-7-pcs/[/url:5cyasopb]
Wine"" free source code
The free source code of "Wine" ([b:13s708qw]Win[/b:13s708qw]dows [b:13s708qw]E[/b:13s708qw]mulator) is a great source of information for many Windows APIs functions:<!-- m --><a class="postlink" href="http://cvs.winehq.org/cvsweb/wine/dlls/">http://cvs.winehq.org/cvsweb/wine/dlls/</a><!-- m --><!-- m --><a class="post...
Wine"" free source code
[quote="Antonio Linares":qoli4u1e]The free source code of "Wine" ([b:qoli4u1e]Win[/b:qoli4u1e]dows [b:qoli4u1e]E[/b:qoli4u1e]mulator) is a great source of information for many Windows APIs functions: <!-- m --><a class="postlink" href="http://cvs.winehq.org/cvsweb/wine/dlls/">http://cvs.winehq.org/cvsweb/wine/dlls/</...
Wine"" free source code
William,Si tienes Linux instalado tambien, puedes instalarle "Wine" y ejecutar tus aplicaciones Windows en Linux. Tambien está disponible para Mac, aunque como producto comercial denominado "CrossOver", pero es "Wine" <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->Funciona ...
Wine"" free source code
Antonio,asi es, he estado estudiando C++, y veo muchas cosas interesantes.
close"" FW_OpenADOExcelSheet()
hi, i use[code=fw:1af16qre]<div class="fw" id="{CB}" style="font-family: monospace;">   objRS := FW_OpenADOExcelSheet<span style="color: #000000;">&#40;</span> cPathcFile, cSheet, cRange, lHeaders <span style="color: #000000;">&#41;</span></div>[/code:1af16qre] to get "ADODB.Recordset" of Excel Sheet FW_OpenADOExcelS...
close"" FW_OpenADOExcelSheet()
[code=fw:6sz2ehe0]<div class="fw" id="{CB}" style="font-family: monospace;">oRs:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oRs:<span style="color: #000000;">ActiveConnection</span>:<span style="color: #000000;">Close</span><span st...
close"" FW_OpenADOExcelSheet()
hi, thx for Answer
disable"" Item in Listbox / Combobox
hi, when have a Listbox / Combobox with Drive-Letter i want to show all but "disable" all "fix Drive" [img:2hpibtwb]https&#58;//i&#46;postimg&#46;cc/TYsL2Qjp/Listbox-disable-Items&#46;png[/img:2hpibtwb] i want to use it for USB-Stick which i want to "safe eject"
disable"" Item in Listbox / Combobox
Try using GetDriveType() = DRIVE_REMOVABLE.
disable"" Item in Listbox / Combobox
hi Enrico, i do have use GetDriveType to get Drive Type now i want to change LISTBOX to "show" Removable Drive in other Color HMG [code=fw:2ujshgjr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">PUBLIC</span> bColorUSB := <span style="color: #000000;">&#123;</span> || <span st...
error adding symbols"" error with buildg.bat?
"d:\harbour201712\lib\win\mingw/libhbmacro.a: error adding symbols: Malformed archive collect2.exe: error: ld returned 1 exit status My setting in buildg.bat if "%fwh%" == "" set fwh=.\.. set hdir=d:\harbour201712 set hdirc=%hdir%\bin\harbour.exe set hlibs=%hdir%\lib\win\mingw set mingw=%hdir%\comp\mingw set path=%m...
error adding symbols"" error with buildg.bat?
[quote="Taavi":2seu8yko]"d:\harbour201712\lib\win\mingw/libhbmacro.a: error adding symbols: Malformed archive collect2.exe: error: ld returned 1 exit status My setting in buildg.bat if "%fwh%" == "" set fwh=.\.. set hdir=d:\harbour201712 set hdirc=%hdir%\bin\harbour.exe set hlibs=%hdir%\lib\win\mingw set mingw=%hdir...
id"" for PRIMARY KEY ?
hi, i saw Name "id" for PRIMARY KEY in PostgreSQL Sample does Fivewin use Name "id" as default also for "other" SQL <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
id"" for PRIMARY KEY ?
Jimmy .. you can use any value you want to name your Primary key ..When I create all my Sql Tables I use the name of the table +EID .. example I have a table names "User" .. so the primary key I would create would be "UserEID" Totally you choice on how to name your primary key .. ps I do not use the "Auto" incrematin...
id"" for PRIMARY KEY ?
[quote:rthc4moo]does Fivewin use Name "id" as default also for "other" SQL <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [/quote:rthc4moo] Yes, by default for autoincrement primary field. Programmer can choose different field names. FWH functions allow specifying t...
id"" for PRIMARY KEY ?
hi, ok, understand @Rick are your User Name UNIQUE <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [quote:15hchrz5]Auto incremating Primary keys lend themselves to Sql Injection attacks[/quote:15hchrz5] did you have a Sample to show the Problem <!-- s:?: --><img...
id"" for PRIMARY KEY ?
Jimmy I create my own primary keys that way I control when a table is appended .. if you use auto increment an attacker could force an table append or "Inject" records into your tables and the database doesn't care .. the primary keys are generated automatically .. for me I create ALL my primary keys programmatically ...
id"" for PRIMARY KEY ?
[quote="Rick Lipkin":3h8gyr2h]Jimmy I create my own primary keys that way I control when a table is appended .. if you use auto increment an attacker could force an table append or "Inject" records into your tables and the database doesn't care .. the primary keys are generated automatically .. for me I create ALL my ...
id"" for PRIMARY KEY ?
Rao I am not talking about a regular user .. I am talking about a cyber attacker who wishes to gain control of your application and then try to insert or "Inject" malicious rows into your database .. If you have autoincrement set on your primary key .. there is nothing to stop a malicious attack to insert new rows int...
id"" for PRIMARY KEY ?
I am not asking how do generate unique primary key. I am asking for an example of an FWH program, using which SQLI (sql injection) is possible.
id"" for PRIMARY KEY ?
Rao .. I do not have an answer .. My "primary key procedure" is more of a preventative measure to keep attackers (from using whatever means) to hack my tables and covertly insert rows . Rick Lipkin
id"" for PRIMARY KEY ?
It all depends on our program. Not on autoinc keys We will discuss about SQLI after a few days.
swaping"" de funciones
Esto es un "hack" de la máquina virtual <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->, pero puede resultar muy util en determinadas circunstancias. Lo publico aqui por si alguien quiere probarlo:test.prg[code:1hekecyf] #include "FiveWin&#46;ch" static pOld function Main...
swaping"" de funciones
Otro ejemplo:test.prg[code:2hsvc0m4] #include "FiveWin&#46;ch" static pOld function Main&#40;&#41; pOld &#58;= FunSwap&#40; "DATE", "TOMORROW" &#41; MsgInfo&#40; Date&#40;&#41; &#41; // We have replaced the original Date&#40;&#41; function! &#58;-&#41; return nil function Tomorrow&#40;&#41; local uRet &...
swaping"" de funciones
Una manera util de crear logs ó verificar parámetros:test.prg[code:30843blq] #include "FiveWin&#46;ch" static pOld function Main&#40;&#41; pOld &#58;= FunSwap&#40; "TEST", "LOGIT" &#41; MsgInfo&#40; Test&#40; "Hello", " world!" &#41; &#41; return nil function Test&#40; u1, u2 &#41; return u1 + u2 function...
swaping"" de funciones
Gracias, esto esta muy interesante, con esto ya no hay duda a la hora de querer reemplazar una función de la librería por una nuestra, ya le encontré utilidad con la gran ventaja de poder hacer llamado a la original, algo así como si fuera un método de la clase superior <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.g...
swaping"" de funciones
¿habrá alguna manera de mandar el apuntador para poder substituir por una función estática? algo como esto (es xharbour no se si también lo tenga harbour)pOld := FunSwap( "TIME", @mytime() )o inclusivepOld := FunSwap( @time(), @mytime() )realmente la única importante sería la primera, ya que time() siempre es visible
swaping"" de funciones
Quique,Sabía que te iba a interesar este tema <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->Se puede hacer todo lo que comentas, pero ojo, el código ha de ser distinto, ya que @name() devuelve un item "pointer", pero a partir de él podemos llegar a su puntero real <!-- s:-...
swaping"" de funciones
Jajajajaja ¿tan obvio soy? <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> Si me interesa, de hecho, ya tengo el programa en el que lo voy a probar, pero si me interesa la posibilidad de utilizar funciones estáticas para las funciones substitutas, esto es con el fin de no tener ...
swaping"" de funciones
Quique,No es que sea adivino, sino que esta mañana encontré esto <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --><!-- m --><a class="postlink" href="http://groups.google.com/group/comp.lang.xharbour/browse_thread/thread/690659b43475b371">http://groups.google.com/group/comp.l...
swaping"" de funciones
Pues me echaré un clavado, si no, le pediré ayuda a los expertos, lo que pasa es que mi conocimiento de C es algo menos que básico, ya escribiré aquí la solución para que la suban al fivewin wiki
swaping"" de funciones
Cortesia de Vic (<!-- e --><a href="mailto:vic@guerra.com.mx">vic@guerra.com.mx</a><!-- e -->) (no es conocido del foro porque no se asoma por aquí), gracias gran gurú de xharbour.[code:2k2i2alr] function Main&#40;&#41; FunSwapPtr&#40; "DATE", @MyDate&#40;&#41; &#41; ? DATE&#40;&#41; ? &&#40; "DATE&#40;&#4...