messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2008-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Gilbert,\n\nAlready sent the EXE to your email", "time": "15:26", "topic": "Checkboxes disappear pressing ALT in Vista", "username": "Antonio Linares" } ]
Checkboxes disappear pressing ALT in Vista
[ { "date": "2023-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nHow do I show standard checkboxes in a [b:1tu7le5m]specific[/b:1tu7le5m] xbrowse column?", "time": "13:54", "topic": "Checkboxes in specific xbrowse column?", "username": "Natter" } ]
Checkboxes in specific xbrowse column?
[ { "date": "2023-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:2ihtjl7y]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCol:<span style=\"color: #000000;\">SetCheck</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#91;</span>aBmps<span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span>lEdit<span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span>aPrompts<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:2ihtjl7y]", "time": "15:06", "topic": "Checkboxes in specific xbrowse column?", "username": "nageswaragunupudi" } ]
Checkboxes in specific xbrowse column?
[ { "date": "2023-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks !", "time": "18:52", "topic": "Checkboxes in specific xbrowse column?", "username": "Natter" } ]
Checkboxes in specific xbrowse column?
[ { "date": "2008-10-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio and friends,\r\n\r\nExists a way to do for remove the checkbox of the root nodes?\r\nIn the image below, the checkboxes with red circle, need be removed! \r\nIt's possible?\r\n[img:2yavxybk]http&#58;//lh3&#46;ggpht&#46;com/ferreira&#46;together/SNTzWYLl_ZI/AAAAAAAAALs/ZZDCMh_NMOA/s800/tree&#46;JPG[/img:2yavxybk]", "time": "13:11", "topic": "Checkboxes of root nodes!?", "username": "JC" } ]
Checkboxes of root nodes!?
[ { "date": "2008-10-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Júlio,\r\n\r\nPlease provide a working PRG to test, thanks", "time": "13:34", "topic": "Checkboxes of root nodes!?", "username": "Antonio Linares" } ]
Checkboxes of root nodes!?
[ { "date": "2008-10-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1uytbcx9]Júlio,\n\nPlease provide a working PRG to test, thanks[/quote:1uytbcx9]\r\n\r\nAntonio,\r\n\r\nPlease take it at <!-- m --><a class=\"postlink\" href=\"http://rapidshare.com/files/154237267/TestTree.zip.html\">http://rapidshare.com/files/154237267/TestTree.zip.html</a><!-- m -->", "time": "13:59", "topic": "Checkboxes of root nodes!?", "username": "JC" } ]
Checkboxes of root nodes!?
[ { "date": "2008-10-15", "forum": "FiveWin for Harbour/xHarbour", "text": "A little sample to provide any idea!\r\n\r\n[img:czbyjd3d]http&#58;//www&#46;craigmurphy&#46;com/blog/wp-content/uploads/2006/04/treeview&#46;gif[/img:czbyjd3d]", "time": "15:43", "topic": "Checkboxes of root nodes!?", "username": "JC" } ]
Checkboxes of root nodes!?
[ { "date": "2008-10-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\r\n\r\nThis is possible to do?", "time": "12:26", "topic": "Checkboxes of root nodes!?", "username": "JC" } ]
Checkboxes of root nodes!?
[ { "date": "2008-10-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Julio,\r\n\r\nPlease review this thread:\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://forums.fivetechsoft.com/viewtopic.php?t=7047\">http://forums.fivetechsoft.com/viewtopic.php?t=7047</a><!-- m -->", "time": "12:44", "topic": "Checkboxes of root nodes!?", "username": "Antonio Linares" } ]
Checkboxes of root nodes!?
[ { "date": "2008-10-16", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":3pkphjt1]Julio,\n\nPlease review this thread:\n\n<!-- m --><a class=\"postlink\" href=\"http://forums.fivetechsoft.com/viewtopic.php?t=7047\">http://forums.fivetechsoft.com/viewtopic.php?t=7047</a><!-- m -->[/quote:3pkphjt1]\r\n\r\nAntonio,\r\n\r\nYes, I have looked your example but it's not my intention!\r\nI got it put in the correct format, with checkboxes... really, it's very simple...\r\nNow, I want to change this option into class or via codification.\r\n\r\nI have sent to you a wrong example. I'm sorry!\r\n\r\nAt all node, when it's a root node, in this item I want to not display the checkboxes... like the image above! The checkboxes only in sub-items of all items of treeview.\r\n\r\nPlease, look this image below to explanation:\r\n[img:3pkphjt1]http&#58;//lh6&#46;ggpht&#46;com/ferreira&#46;together/SPctBchVREI/AAAAAAAAAMU/JdQ5LSEAJH4/s800/treeview&#46;gif[/img:3pkphjt1]", "time": "13:01", "topic": "Checkboxes of root nodes!?", "username": "JC" } ]
Checkboxes of root nodes!?
[ { "date": "2008-10-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Nobody? Any idea?", "time": "14:44", "topic": "Checkboxes of root nodes!?", "username": "JC" } ]
Checkboxes of root nodes!?
[ { "date": "2006-07-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nWhy do menu items with checks appear with the check in a border?\n\n[img:29v4hyaj]http&#58;//home&#46;quicksoftware&#46;co&#46;za/menu&#46;jpg[/img:29v4hyaj]\n\nAlso, is there a way to \"bullet\" a menu item, like the view menu in windows explorer?\n\nAlex", "time": "09:36", "topic": "Checked menuitem", "username": "AlexSchaft" } ]
Checked menuitem
[ { "date": "2006-07-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Alex,\n\nPlease comment out this line in source\\winapi\\menus.c line 295:\n[code:3ruicgvc]\n if&#40; lpdis->itemState & ODS_CHECKED &#41;\n &#123;\n HBITMAP hBmp = LoadBitmap&#40; 0, MAKEINTRESOURCE&#40; OBM_CHECK &#41; &#41;;\n\n if&#40; ! &#40; lpdis->itemState & ODS_SELECTED &#41; &#41;\n DrawGrayed&#40; lpdis->hDC, hBmp, lpdis->rcItem&#46;top + 1,\n lpdis->rcItem&#46;left + 1 &#41;;\n else\n DrawMasked&#40; lpdis->hDC, hBmp, lpdis->rcItem&#46;top + 1,\n lpdis->rcItem&#46;left + 1 &#41;;\n DeleteObject&#40; hBmp &#41;;\n // WindowInset&#40; lpdis->hDC, &rct &#41;; HERE!\n &#125;\n[/code:3ruicgvc]\nWe have to implement the bullet option.", "time": "14:42", "topic": "Checked menuitem", "username": "Antonio Linares" } ]
Checked menuitem
[ { "date": "2006-07-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nWhat #defines do I need to compile this? Compiling fails using Xhb\n\nTried WIN32\n\nAlex", "time": "07:37", "topic": "Checked menuitem", "username": "AlexSchaft" } ]
Checked menuitem
[ { "date": "2006-07-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Alex,\n\nWe email you the modified library for your review, thanks.", "time": "07:46", "topic": "Checked menuitem", "username": "Antonio Linares" } ]
Checked menuitem
[ { "date": "2006-07-17", "forum": "FiveWin for Harbour/xHarbour", "text": "It seems that there is still a light grey background under the check sign.\n\nEMG", "time": "17:15", "topic": "Checked menuitem", "username": "Enrico Maria Giordano" } ]
Checked menuitem
[ { "date": "2006-07-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nPlease try this:\n[code:2sur9ld0]\n if&#40; lpdis->itemState & ODS_CHECKED &#41; \n &#123; \n HBITMAP hBmp = LoadBitmap&#40; 0, MAKEINTRESOURCE&#40; OBM_CHECK &#41; &#41;; \n\n DrawMasked&#40; lpdis->hDC, hBmp, lpdis->rcItem&#46;top + 1, \n lpdis->rcItem&#46;left + 1 &#41;; \n DeleteObject&#40; hBmp &#41;; \n &#125; \n[/code:2sur9ld0]", "time": "17:28", "topic": "Checked menuitem", "username": "Antonio Linares" } ]
Checked menuitem
[ { "date": "2006-07-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Can you send me the new lib, please?\n\nEMG", "time": "17:34", "topic": "Checked menuitem", "username": "Enrico Maria Giordano" } ]
Checked menuitem
[ { "date": "2007-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI've gotten menus.c to compile, and highlighted menu items are ok, but unhighlighted items still have the gray background?", "time": "10:00", "topic": "Checked menuitem", "username": "AlexSchaft" } ]
Checked menuitem
[ { "date": "2007-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Alex,\n\nAre you still using DrawMasked() ? If yes, does your bitmap has the transparent color at pixel 0, 0 ?\n\nPlease post a screenshot of the bitmap and how it looks in the menu. Thanks", "time": "10:25", "topic": "Checked menuitem", "username": "Antonio Linares" } ]
Checked menuitem
[ { "date": "2007-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nThis is the gray background of unselected menu items, as below\n\n[img:wy8mp9bw]http&#58;//home&#46;quicksoftware&#46;co&#46;za/menuitems&#46;jpg[/img:wy8mp9bw]", "time": "10:30", "topic": "Checked menuitem", "username": "AlexSchaft" } ]
Checked menuitem
[ { "date": "2007-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Alex,\n\nAre those menuitems \"checked\" ?", "time": "11:49", "topic": "Checked menuitem", "username": "Antonio Linares" } ]
Checked menuitem
[ { "date": "2007-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, they are <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "11:51", "topic": "Checked menuitem", "username": "AlexSchaft" } ]
Checked menuitem
[ { "date": "2007-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Alex,\n\nPlease make this change in your menus.c:\n[code:dxhlu1sb]\n if&#40; lpdis->itemState & ODS_CHECKED &#41;\n &#123;\n HBITMAP hBmp = LoadBitmap&#40; 0, MAKEINTRESOURCE&#40; OBM_CHECK &#41; &#41;;\n\n DrawMasked&#40; lpdis->hDC, hBmp, lpdis->rcItem&#46;top + 1,\n lpdis->rcItem&#46;left + 1 &#41;;\n DeleteObject&#40; hBmp &#41;;\n &#125;\n[/code:dxhlu1sb]", "time": "12:05", "topic": "Checked menuitem", "username": "Antonio Linares" } ]
Checked menuitem
[ { "date": "2007-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Did that change from your earlier post.\n\nSelected items are ok, unselected are not", "time": "12:59", "topic": "Checked menuitem", "username": "AlexSchaft" } ]
Checked menuitem
[ { "date": "2007-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Alex,\n\nYou are using white as the menu color, please select another menu color and check if that makes a difference, thanks", "time": "15:53", "topic": "Checked menuitem", "username": "Antonio Linares" } ]
Checked menuitem
[ { "date": "2022-02-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Sometimes we have the need to check the value that returns Windows GetLastError(), so this code is required:\n\n[code=fw:30o6563u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">void ShowErrorTxt<span style=\"color: #000000;\">&#40;</span> DWORD dwError <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />   LPVOID lpMsgBuf;<br />   char buffer<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#93;</span>;<br /><br />   FormatMessage<span style=\"color: #000000;\">&#40;</span> FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,<br />                  <span style=\"color: #00C800;\">NULL</span>,<br />                  dwError,<br />                  MAKELANGID<span style=\"color: #000000;\">&#40;</span> LANG_NEUTRAL, SUBLANG_DEFAULT <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #B900B9;\">// Default language</span><br />                  <span style=\"color: #000000;\">&#40;</span> LPTSTR <span style=\"color: #000000;\">&#41;</span> &lpMsgBuf,<br />                  <span style=\"color: #000000;\">0</span>,<br />                  <span style=\"color: #00C800;\">NULL</span> <span style=\"color: #000000;\">&#41;</span>;<br />   sprintf_s<span style=\"color: #000000;\">&#40;</span> buffer, <span style=\"color: #ff0000;\">\"%i\"</span>, dwError <span style=\"color: #000000;\">&#41;</span>;<br />   MessageBox<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#40;</span> char * <span style=\"color: #000000;\">&#41;</span> lpMsgBuf, buffer, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>;               <br />   LocalFree<span style=\"color: #000000;\">&#40;</span> lpMsgBuf <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span></div>[/code:30o6563u]\n\nI post it here so it is usefull for all and I can find it next time <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "09:42", "topic": "Checking GetLastError() from C", "username": "Antonio Linares" } ]
Checking GetLastError() from C
[ { "date": "2015-01-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Is there a function to test and see if a windows service is running or not?", "time": "16:57", "topic": "Checking Windows Service", "username": "Jeff Barnes" } ]
Checking Windows Service
[ { "date": "2015-01-28", "forum": "FiveWin for Harbour/xHarbour", "text": "You can try this (from my notes)--I don't know if it will work.\n\n[code=fw:29ks0kln]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// Check whether the application is already running in the same PC </span><br /><span style=\"color: #00C800;\">if</span> IsExeRunning<span style=\"color: #000000;\">&#40;</span> cFileName<span style=\"color: #000000;\">&#40;</span> HB_ARGV<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;MsgWait<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"This application is already running\"</span>, <span style=\"color: #ff0000;\">\"Application Name\"</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;Quit <br /><span style=\"color: #00C800;\">endif</span></div>[/code:29ks0kln]", "time": "22:34", "topic": "Checking Windows Service", "username": "James Bott" } ]
Checking Windows Service
[ { "date": "2008-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\r\nMicrosoft just released the Windows XP's service pack 3.\r\nIs there any way to detect it ? \r\n\r\nI always detected the windows version using the version in the registry but in this case it is the same of the service pack 2 (5.1.2600).\r\n\r\nThanks in advance", "time": "16:29", "topic": "Checking Windows XP sp.3", "username": "Marco Turco" } ]
Checking Windows XP sp.3
[ { "date": "2008-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Solved using oSystemInfo:csp", "time": "20:04", "topic": "Checking Windows XP sp.3", "username": "Marco Turco" } ]
Checking Windows XP sp.3
[ { "date": "2008-06-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\r\nI need to check if the value of some controls (get, combobox..) in a folder has changed in order to request a confirm to the customer before exit.\r\n\r\nDue the outlook interface I am using the customer can loose the data simply selecting another record so a confirm exit is needed.\r\n\r\nSee image at <!-- w --><a class=\"postlink\" href=\"http://www.softwarexp.co.uk/beta/sample.jpg\">www.softwarexp.co.uk/beta/sample.jpg</a><!-- w -->\r\n\r\nI made the following routine to check it that providing the oFld as parameter will scan all GET controls inside and check the ::oGet:Changed() value.\r\n\r\nFunction CheckChanged(oFld)\r\n local aArray,i,n,nPrompts,lChanged\r\n\r\n lChanged:=.f.\r\n nPrompts:=len(oFld:aPrompts)\r\n\r\n for n:=1 to nPrompts\r\n aArray:=oFld:aDialogs[n]:aControls\r\n for i:=1 to len(aArray)\r\n if oFld:aDialogs[n]:aControls[i]:Classname=\"TGET\"\r\n if oFld:aDialogs[n]:aControls[i]:oGet:Changed()\r\n lChanged:=.t. && has changed\r\n exit\r\n endif\r\n endif\r\n next\r\n next\r\n return(lChanged)\r\n\r\nThe problem is that I only can check changes in GET controls but I need to check the combobox and tcbrowse also. \r\nAny ideas to make this ? As I know the ::Changed() data is only applied on GET controls.\r\n\r\nThanks iin advance.", "time": "11:33", "topic": "Checking changes in folder", "username": "Marco Turco" } ]
Checking changes in folder
[ { "date": "2008-06-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Marco,\r\n\r\nThis is the way I do this check :\r\n[code:tljo7nna]\nLOCAL cFIELD1, oFIELD1\nLOCAL cFIELD2, oFIELD2\n&#46;&#46;&#46;&#46;\ncFIELD1 &#58;= oFIELD1 &#58;= FILE->FIELD1\ncFIELD2 &#58;= oFIELD2 &#58;= FILE->FIELD2\n&#46;&#46;&#46;&#46;\nDEFINE DIALOG &#46;&#46;&#46;&#46;\n&#46;&#46;&#46;&#46;\nREDEFINE GET cFIELD1 ID 101 OF &#46;&#46;&#46;&#46;\nREDEFINE CHECKBOX cFIELD2 ID 102 OF &#46;&#46;&#46;&#46;\n&#46;&#46;&#46;&#46;\nACTIVATE DIALOG &#46;&#46;&#46;&#46;\n\nIF cFIELD1 = oFIELD1 &#46;AND&#46; cFIELD2 = oFIELD2\n &#46;&#46;&#46;&#46; data has not been changed &#46;&#46;&#46;&#46;\nELSE\n &#46;&#46;&#46;&#46; data has been changed &#46;&#46;&#46;&#46;\nENDIF\n[/code:tljo7nna]\r\n\r\nIt doesn't matter what the kind of cFIELD1 or cFIELD2 is : a GET, a CHECKBOX, a RADIO BUTTON, ...\r\n\r\nIt always works.\r\n\r\nGood luck", "time": "13:50", "topic": "Checking changes in folder", "username": "driessen" } ]
Checking changes in folder
[ { "date": "2008-06-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Driessen,\r\nyou are right but I have a lot of variables to check so I would like find an automatic check without manage each control.", "time": "15:33", "topic": "Checking changes in folder", "username": "Marco Turco" } ]
Checking changes in folder
[ { "date": "2008-06-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Marco,\r\n\r\nDo you use a Class TDataBase for fields editing ?\r\n\r\nIf yes, then you can simply check oDataBase:Modified() <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "16:06", "topic": "Checking changes in folder", "username": "Antonio Linares" } ]
Checking changes in folder
[ { "date": "2008-06-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":2enc0qlu]Marco,\n\nDo you use a Class TDataBase for fields editing ?\n\nIf yes, then you can simply check oDataBase:Modified() <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->[/quote:2enc0qlu]\r\n\r\nUnfortunately that data file is not in a dbf format.", "time": "16:49", "topic": "Checking changes in folder", "username": "Marco Turco" } ]
Checking changes in folder
[ { "date": "2008-06-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Marco,\r\n\r\nIf you use locals, then I am thinking that we could implement an easy and very powerfull solution <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nif you keep the locals together, then we could step through them and build an array from them, and later on, compare the original values with the array. Thats what Class TDataBase does basically.\r\n\r\nThere are some functions in [x]Harbour to step through the local variables by their position (order) and no by its name. So it can be done <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "16:57", "topic": "Checking changes in folder", "username": "Antonio Linares" } ]
Checking changes in folder
[ { "date": "2008-06-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Marco,\r\n\r\nHere you have a working sample. It can be very much simplified, as I have included some code so testers can understand the virtual machine stack structure. Also the \"locals\" checker code could be placed into an external function:\r\n[code:1jsx704x]\n#include \"FiveWin&#46;ch\"\n\nfunction Main&#40;&#41;\n\n Test&#40; \"one\", \"two\", \"three\" &#41;\n\nreturn nil\n\nfunction Test&#40; x, y, z &#41;\n\n local local1 &#58;= \"first\", local2 &#58;= \"second\", aBegin &#58;= HB_DBG_VMSTKLLIST&#40;&#41;, aEnd, n\n \n MsgInfo&#40; \"Name of the function&#58; \" + aBegin&#91; 1 &#93; &#41;\n MsgInfo&#40; \"Is this a function or a method ? \" + If&#40; aBegin&#91; 2 &#93; != nil, \"Method\", \"function\" &#41; &#41;\n\n for n = 1 to PCount&#40;&#41;\n MsgInfo&#40; \"parameter \" + AllTrim&#40; Str&#40; n &#41; &#41; + \"&#58; \" + cValToChar&#40; aBegin&#91; 2 + n &#93; &#41; &#41;\n next \n \n n++\n while n < Len&#40; aBegin &#41; - 1\n MsgInfo&#40; \"local \" + AllTrim&#40; Str&#40; n - PCount&#40;&#41; - 1 &#41; &#41; + \"&#58; \" + cValToChar&#40; aBegin&#91; n + 1 &#93; &#41; &#41;\n n++\n end \n\n local2 &#58;= \"changed!\" // we change a local value\n\n aEnd = HB_DBG_VMSTKLLIST&#40;&#41;\n for n = PCount&#40;&#41; + 1 to Len&#40; aEnd &#41; - 1\n if aBegin&#91; n &#93; != aEnd&#91; n &#93;\n MsgInfo&#40; \"local \" + AllTrim&#40; Str&#40; n - PCount&#40;&#41; - 2 &#41; &#41; + \" has changed!\" &#41;\n endif\n next\n \nreturn nil\n[/code:1jsx704x]", "time": "19:55", "topic": "Checking changes in folder", "username": "Antonio Linares" } ]
Checking changes in folder
[ { "date": "2008-06-28", "forum": "FiveWin for Harbour/xHarbour", "text": "A simplified version:\r\n[code:3arfsxbt]\n#include \"FiveWin&#46;ch\"\n\nfunction Main&#40;&#41;\n\n Test&#40; \"one\", \"two\", \"three\" &#41;\n\nreturn nil\n\nfunction Test&#40; x, y, z &#41;\n\n local local1 &#58;= \"first\", local2 &#58;= \"second\", aBegin &#58;= HB_DBG_VMSTKLLIST&#40;&#41;, aEnd, n\n\n // your code&#46;&#46;&#46;\n \n local2 &#58;= \"changed!\" // we change a local value\n \n // Now we check for changes in locals variables\n\n aEnd = HB_DBG_VMSTKLLIST&#40;&#41;\n for n = PCount&#40;&#41; + 1 to Len&#40; aEnd &#41; - 1\n if aBegin&#91; n &#93; != aEnd&#91; n &#93;\n MsgInfo&#40; \"local \" + AllTrim&#40; Str&#40; n - PCount&#40;&#41; - 2 &#41; &#41; + \" has changed!\" &#41;\n endif\n next\n \nreturn nil\n[/code:3arfsxbt]", "time": "20:04", "topic": "Checking changes in folder", "username": "Antonio Linares" } ]
Checking changes in folder
[ { "date": "2008-06-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Maybe this will work , also when folders are nested\r\n\r\nFrank\r\n\r\n[code:1pmbz52d]\n\n#include \"FiveWin&#46;ch\"\n#include \"common&#46;ch\"\n\nfunction Main&#40;&#41;\n\n local oDlg, oFld\n LOCAL Num &#58;= 100\n LOCAL MemInpVal&#91;0&#93;\n LOCAL n &#58;= 1 , oRadMenu , oGet\n DEFINE DIALOG oDlg RESOURCE \"test\"\n\n REDEFINE FOLDER oFld ID 110 OF oDlg ;\n DIALOGS \"dlg1\", \"dlg2\" PROMPTS \"One\", \"Two\"\n REDEFINE GET oGet VAR Num OF oFld&#58;aDialogs&#91;1&#93; ID 100\n REDEFINE RADIO oRadMenu VAR n ID 110 , 120 OF oFld&#58;aDialogs&#91;2&#93;\n \n REDEFINE BUTTON ID 120 OF oDlg ACTION CompInputValue&#40;oDlg , @MemInpVal &#41;\n\n ACTIVATE DIALOG oDlg CENTERED ;\n ON INIT &#40;SaveInputValue&#40;oDlg , @MemInpVal&#41;&#41;\n\nreturn nil\n\nPROC SaveInputValue&#40;oDlg , Arr&#41;\n*************************\nLOCAL el , elem , oRadMenu&#91;0&#93;\nFOR EACH el IN oDlg&#58;aControls\n IF el&#58;ClassName == \"TFOLDER\"\n FOR EACH elem IN el&#58;aDialogs \n SaveInputValue&#40;elem , @Arr&#41;\n NEXT\n ELSE\n IF el&#58;ClassName = \"TRADIO\"\n IF ASCAN&#40;oRadMenu , &#123;|j|j==el&#58;oRadMenu&#125;&#41; == 0\n AADD&#40;oRadMenu , el&#58;oRadMenu&#41;\n AADD&#40;Arr,el&#58;oRadMenu&#58;nOption&#40;&#41;&#41;\n END\n ELSEIF __ObjHasMethod&#40;el,\"VarGet\"&#41;\n // Maybe better &#58; IF el&#58;ClassName IN &#123;\"TGET\",\"TCHECK\", &#46;&#46;&#46;&#46;&#46;&#46;&#125;\n AADD&#40;Arr,el&#58;VarGet&#40;&#41; &#41;\n END \n END\nNEXT\nRETURN\n**********************************************************************************************\nFUNC CompInputValue&#40;oDlg , MemInpVal &#41;\n***************************************\nLOCAL Arr&#91;0&#93; , i\nLOCAL lOk &#58;= &#46;T&#46;\nSaveInputValue&#40;oDlg,@Arr&#41;\nFOR i &#58;= 1 TO Len&#40;MemInpVal&#41;\n IF Arr&#91;i&#93; <> MemInpVal&#91;i&#93;\n lOk &#58;= &#46;F&#46;\n EXIT\t \n END\nNEXT\nRETURN lOk\n************************************************************\nTest DIALOG 19, 47, 233, 124\nSTYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU\nCAPTION \"FiveWin Folders\"\n&#123;\n CONTROL \"\", 110, \"SysTabControl32\", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 4, 5, 225, 99\n PUSHBUTTON \"&OK\", 120, 98, 108, 37, 14\n&#125;\n\ndlg1 DIALOG 18, 18, 205, 80\nSTYLE WS_CHILD | 4\n&#123;\nLTEXT \"Number &#58; \", 90, 10 , 2 , 40 , 10 //, WS_BORDER | WS_TABSTOP\nEDITTEXT 100, 37 , 2, 20 , 10, WS_BORDER | WS_TABSTOP\nCONTROL \"First\", 110, \"BUTTON\", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 37, 30, 28, 12\n&#125;\n\ndlg2 DIALOG 18, 18, 205, 80\nSTYLE WS_CHILD | 4\n&#123;\n CONTROL \"Second\", 110, \"BUTTON\", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 37, 30, 28, 12\n CONTROL \"Third\", 120, \"BUTTON\", BS_AUTORADIOBUTTON | WS_TABSTOP, 37, 43, 28, 12\n&#125;\n\n[/code:1pmbz52d]", "time": "09:18", "topic": "Checking changes in folder", "username": "demont frank" } ]
Checking changes in folder
[ { "date": "2008-06-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio\r\n\r\nIn many cases we are using arrays , or why not , nested arrays , or arrays are mixted with others.\r\n\r\nIn this case i suppose that this code is much more complicated and has to\r\nbe changed .\r\n\r\nFrank\r\n\r\n[quote=\"Antonio Linares\":3mgzssfg]A simplified version:\n[code:3mgzssfg]\n#include \"FiveWin&#46;ch\"\n\nfunction Main&#40;&#41;\n\n Test&#40; \"one\", \"two\", \"three\" &#41;\n\nreturn nil\n\nfunction Test&#40; x, y, z &#41;\n\n local local1 &#58;= \"first\", local2 &#58;= \"second\", aBegin &#58;= HB_DBG_VMSTKLLIST&#40;&#41;, aEnd, n\n\n // your code&#46;&#46;&#46;\n \n local2 &#58;= \"changed!\" // we change a local value\n \n // Now we check for changes in locals variables\n\n aEnd = HB_DBG_VMSTKLLIST&#40;&#41;\n for n = PCount&#40;&#41; + 1 to Len&#40; aEnd &#41; - 1\n if aBegin&#91; n &#93; != aEnd&#91; n &#93;\n MsgInfo&#40; \"local \" + AllTrim&#40; Str&#40; n - PCount&#40;&#41; - 2 &#41; &#41; + \" has changed!\" &#41;\n endif\n next\n \nreturn nil\n[/code:3mgzssfg][/quote:3mgzssfg]", "time": "19:23", "topic": "Checking changes in folder", "username": "demont frank" } ]
Checking changes in folder
[ { "date": "2008-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Frank,\r\nyour code is the easyest solution for my case. \r\n\r\nThanks to all for the tips.", "time": "10:20", "topic": "Checking changes in folder", "username": "Marco Turco" } ]
Checking changes in folder
[ { "date": "2010-06-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nHow can we check in FWH if an application is running on a 64-bit Windows version ?\n\nThanks you very much in advance.", "time": "10:09", "topic": "Checking for a Windows 64-bit", "username": "driessen" } ]
Checking for a Windows 64-bit
[ { "date": "2010-06-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Michel,\n\n[url:1ya5231g]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_function_iswin64[/url:1ya5231g]", "time": "10:32", "topic": "Checking for a Windows 64-bit", "username": "Antonio Linares" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n[quote=\"Antonio Linares\":2ee6flw7][url:2ee6flw7]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_function_iswin64[/url:2ee6flw7][/quote:2ee6flw7]\nI found out that IsWin64() doesn't work on Windows 7 professional 64bit (6.1 build 7600 - it returns .f.)\n\nI'm still on FWH 9.05 - xH 1.2.1 - bcc 5.5 - Is this the problem ?\n\nHi,\nDavide", "time": "02:29", "topic": "Checking for a Windows 64-bit", "username": "Davide" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Simple test:\n\n[img:3nmcuhqf]http&#58;//img825&#46;imageshack&#46;us/img825/7167/iswin64&#46;png[/img:3nmcuhqf]\n\nNobody's using IsWin64() here ?\n\nHi,\nDavide", "time": "00:08", "topic": "Checking for a Windows 64-bit", "username": "Davide" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi guys,\n\nhere's the function, taken from <!-- m --><a class=\"postlink\" href=\"http://msdn.microsoft.com/en-us/library/ms684139%28VS.85%29.aspx\">http://msdn.microsoft.com/en-us/library ... 85%29.aspx</a><!-- m -->\n\nI tested in:\nWindows 98 -> .F.\nWinXP 32 SP3 -> .F.\nVista 32 SP2 -> .F.\nWin7 64 -> .T.\n\nCould you please check if I made the right corrections for xH and test it against your own 32/64 bit Windows ?\n\nThanks,\nDavide\n\n\n[code=fw:i6ymh0ok]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span> <br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />? IsWow64<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <stdio.h><br /><br />typedef BOOL <span style=\"color: #000000;\">&#40;</span>WINAPI *LPFN_ISWOW64PROCESS<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#40;</span>HANDLE, PBOOL<span style=\"color: #000000;\">&#41;</span>;<br /><br />LPFN_ISWOW64PROCESS fnIsWow64Process;<br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> ISWOW64 <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />    BOOL bIsWow64 = <span style=\"color: #00C800;\">FALSE</span>;<br /><br />    <span style=\"color: #B900B9;\">//IsWow64Process is not available on all supported versions of Windows.</span><br />    <span style=\"color: #B900B9;\">//Use GetModuleHandle to get a handle to the DLL that contains the function</span><br />    <span style=\"color: #B900B9;\">//and GetProcAddress to get a pointer to the function if available.</span><br /><br />    fnIsWow64Process = <span style=\"color: #000000;\">&#40;</span>LPFN_ISWOW64PROCESS<span style=\"color: #000000;\">&#41;</span> GetProcAddress<span style=\"color: #000000;\">&#40;</span><br />        GetModuleHandle<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">TEXT</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"kernel32\"</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"IsWow64Process\"</span><span style=\"color: #000000;\">&#41;</span>;<br /><br />    <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">NULL</span> != fnIsWow64Process<span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #000000;\">&#123;</span><br />        <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span>!fnIsWow64Process<span style=\"color: #000000;\">&#40;</span>GetCurrentProcess<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,&bIsWow64<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #000000;\">&#123;</span><br />            <span style=\"color: #B900B9;\">//handle error</span><br />        <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #000000;\">&#125;</span><br />    hb_retl<span style=\"color: #000000;\">&#40;</span> bIsWow64 <span style=\"color: #000000;\">&#41;</span>;<br />    <span style=\"color: #00C800;\">return</span>; <span style=\"color: #B900B9;\">// bIsWow64;</span><br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------</span><br /> </div>[/code:i6ymh0ok]", "time": "02:09", "topic": "Checking for a Windows 64-bit", "username": "Davide" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Davide...\n\nYes, your purpose is correct, but if the application was built under 32 bits, for correct this function we changed source\\winapi\\wndis.c\nwith this change applications built under 32 and 64 will show .T.\n\nThanks...\n\n[code=fw:1lvyeuwc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />#ifdef _WIN64<br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> ISWIN64 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Check if Windows 64 is running</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;hb_retl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> sizeof<span style=\"color: #000000;\">&#40;</span> void * <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span> &nbsp; &nbsp; &nbsp; <br />#else <br />typedef BOOL <span style=\"color: #000000;\">&#40;</span>WINAPI *LPFN_ISWOW64PROCESS<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#40;</span>HANDLE, PBOOL<span style=\"color: #000000;\">&#41;</span>;<br /><br />LPFN_ISWOW64PROCESS fnIsWow64Process;<br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> ISWIN64 <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; BOOL bIsWow64 = <span style=\"color: #00C800;\">FALSE</span>;<br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//IsWow64Process is not available on all supported versions of Windows.</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//Use GetModuleHandle to get a handle to the DLL that contains the function</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//and GetProcAddress to get a pointer to the function if available.</span><br /><br />&nbsp; &nbsp; fnIsWow64Process = <span style=\"color: #000000;\">&#40;</span>LPFN_ISWOW64PROCESS<span style=\"color: #000000;\">&#41;</span> GetProcAddress<span style=\"color: #000000;\">&#40;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; GetModuleHandle<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"kernel32\"</span><span style=\"color: #000000;\">&#41;</span> ,<span style=\"color: #ff0000;\">\"IsWow64Process\"</span><span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">NULL</span> != fnIsWow64Process<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;!fnIsWow64Process<span style=\"color: #000000;\">&#40;</span>GetCurrentProcess<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,&bIsWow64<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; hb_retl<span style=\"color: #000000;\">&#40;</span> bIsWow64 <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br />#endif <span style=\"color: #B900B9;\">/*_WIN64*/</span><br />&nbsp;</div>[/code:1lvyeuwc]", "time": "19:27", "topic": "Checking for a Windows 64-bit", "username": "Daniel Garcia-Gil" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Daniel,\n\nthank you for your feedback.\n[quote=\"Daniel Garcia-Gil\":1d23a1gj]HB_FUNC( ISWIN64 )[/quote:1d23a1gj]\nI intentionally left IsWin64() untouched and added IsWow64() because the former is already used (for example) in rPreview.prg to determine whether to load the 32 or 64 bit DLL. Your change would make a FWH32 program trying to load PREV64.DLL (that's not possible)\n\nHi,\nDavide", "time": "10:07", "topic": "Checking for a Windows 64-bit", "username": "Davide" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-16", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Davide\":3llrzluh]Daniel,\n\nthank you for your feedback.\n[quote=\"Daniel Garcia-Gil\":3llrzluh]HB_FUNC( ISWIN64 )[/quote:3llrzluh]\nI intentionally left IsWin64() untouched and added IsWow64() because the former is already used (for example) in rPreview.prg to determine whether to load the 32 or 64 bit DLL. Your change would make a FWH32 program trying to load PREV64.DLL (that's not possible)\n\nHi,\nDavide[/quote:3llrzluh]\n\nYes is correct\nNow for clear facts...\nThe function IsWin64 return .T. / .F. if the application was built under 64\nFunction IsWow64 return .T. / .F. if the application was built in 32bit and run over 64\n\n[code=fw:3llrzluh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> ISWIN64 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Check if Windows 64 is running</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;hb_retl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> sizeof<span style=\"color: #000000;\">&#40;</span> void * <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span> &nbsp; &nbsp; &nbsp; <br /><br /><br />typedef BOOL <span style=\"color: #000000;\">&#40;</span>WINAPI *LPFN_ISWOW64PROCESS<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#40;</span>HANDLE, PBOOL<span style=\"color: #000000;\">&#41;</span>;<br /><br />LPFN_ISWOW64PROCESS fnIsWow64Process;<br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> ISWOW64 <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; BOOL bIsWow64 = <span style=\"color: #00C800;\">FALSE</span>;<br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//IsWow64Process is not available on all supported versions of Windows.</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//Use GetModuleHandle to get a handle to the DLL that contains the function</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//and GetProcAddress to get a pointer to the function if available.</span><br /><br />&nbsp; &nbsp; fnIsWow64Process = <span style=\"color: #000000;\">&#40;</span>LPFN_ISWOW64PROCESS<span style=\"color: #000000;\">&#41;</span> GetProcAddress<span style=\"color: #000000;\">&#40;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; GetModuleHandle<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"kernel32\"</span><span style=\"color: #000000;\">&#41;</span> ,<span style=\"color: #ff0000;\">\"IsWow64Process\"</span><span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">NULL</span> != fnIsWow64Process<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;fnIsWow64Process<span style=\"color: #000000;\">&#40;</span>GetCurrentProcess<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,&bIsWow64<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; hb_retl<span style=\"color: #000000;\">&#40;</span> bIsWow64 <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:3llrzluh]", "time": "11:52", "topic": "Checking for a Windows 64-bit", "username": "Daniel Garcia-Gil" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Daniel,\n[quote=\"Daniel Garcia-Gil\":6bci4116]\nThe function IsWin64 return .T. / .F. if the application was built under 64\nFunction IsWow64 return .T. / .F. if the application was built in 32bit and run over 64\n\n[code=fw:6bci4116]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> ISWIN64 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Check if Windows 64 is running</span><br /> </div>[/code:6bci4116][/quote:6bci4116]\n\nYes. I believe that the comment should be:\nHB_FUNC( ISWIN64 ) // Check if my program is a 64 bit one (useful if you're using either FWH32 or FWH64)\nObviously if it's .T. you're evidently using Windows64 bit, but a FWH32 program will always return .F. even on Win64 (that's why I added IsWow64)\n\nThe Wiki about IsWin64() should explain that too.\n\nHi,\nDavide", "time": "02:05", "topic": "Checking for a Windows 64-bit", "username": "Davide" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Davide...\n\n<!-- m --><a class=\"postlink\" href=\"http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_iswin64\">http://wiki.fivetechsoft.com/doku.php?i ... on_iswin64</a><!-- m -->\nThis function returns .t. if we are executing the application under Windows 64 bit\ni saw the wiki and explain is wrong and correct\n\nIsWin64 return .T. / .F. if the program was built with 64 bit complier (no need emulation for run), and you're right\n[quote=\"Davide\":3rmcqjoe]Obviously if it's .T. you're evidently using Windows64 bit, but a FWH32 program will always return .F. even on Win64 (that's why I added IsWow64)[/quote:3rmcqjoe] \nthis is expect return value\n[url=http&#58;//www&#46;sitasoft&#46;net/fivewin/samples/winver32&#46;zip:3rmcqjoe]Download samples 32bit[/url:3rmcqjoe]\n\nWOW64 is the x86 emulator that allows 32-bit Windows-based applications to run seamlessly on 64-bit Windows\nfor this reason IsWow64 return .T. when run in 64bit a program built in 32 bits, because only work with 32bit programs\n[url=http&#58;//www&#46;sitasoft&#46;net/fivewin/samples/winver64&#46;zip:3rmcqjoe]Download samples 64bit[/url:3rmcqjoe]\n[code=fw:3rmcqjoe]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span> <br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />? <span style=\"color: #ff0000;\">\"Is Windows 64 (IsWin64):\"</span> + cValToStr<span style=\"color: #000000;\">&#40;</span> IsWin64<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"Is Windows 64 (IsWow64):\"</span> + cValToStr<span style=\"color: #000000;\">&#40;</span> IsWow64<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /> </div>[/code:3rmcqjoe]\n\nObviously is a program built in 64bit is running, is in 64 bit OS", "time": "02:50", "topic": "Checking for a Windows 64-bit", "username": "Daniel Garcia-Gil" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Daniel,\n\nmaybe the name of the function is a little bit confusing. The other funcions (IsWinXP(),...) are returning the version of the OS, so I think it would be clearer if IsWin64() would return the type of the OS (.f. for 32bit and .t. for a 64bit OS).\n\nI suggest IsWin64() for the OS and IsWow64() for the application. IsWin64() should return .t. if a 64bit OS is running, IsWow64() should return .t. if a 32bit app is running under 64bit.\n\nJust an idea...", "time": "08:54", "topic": "Checking for a Windows 64-bit", "username": "StefanHaupt" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Stefan...\n\nthe return value is correct in both case\nthe point is call IsWin64 in 32 bit program (built) never shall return .T. because run in emulation mode (WOW64) under 64 bit OS, this emulation is 32bits\nlike say : <!-- m --><a class=\"postlink\" href=\"http://msdn.microsoft.com/en-us/library/ms684139(VS.85\">http://msdn.microsoft.com/en-us/library/ms684139(VS.85</a><!-- m -->).aspx\nIsWow64 Determines whether the specified process is running under WOW64.\ni mean, no verify OS verify emulation mode\nso we need use IsWow64 in 32bit applications", "time": "11:51", "topic": "Checking for a Windows 64-bit", "username": "Daniel Garcia-Gil" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Daniel,\nI download all test sample\nthat of 32 bit run ok on xp\nthe second i cannot run it ( because now I use xpprofessional)\n and it is ok\nbut if I made an application witha Windows Seven 64 bit and the I must give to customer this application it can run on xp professional 32 bit or vista 32 bit ?\nI'm thinking it cannot run ....\nCan I create an application run on 32 and 64 bit ?", "time": "20:37", "topic": "Checking for a Windows 64-bit", "username": "Silvio" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio...\n\nthe applications built in 64bit no run in 32bits, you can build in 32bit and run in 64bit (emulation mode)", "time": "20:46", "topic": "Checking for a Windows 64-bit", "username": "Daniel Garcia-Gil" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Daniel,\n[quote=\"Daniel Garcia-Gil\":3gf99gc2]the applications built in 64bit no run in 32bits[/quote:3gf99gc2]\nthis is the point.\nIf I'm using FHW64 I have no need for a IsWin64() function because my program would not run on any other platform.\nIf I'm using FWH32 instead (like I am), then I need IsWow64() to know whether the host OS is a 32 or 64 bit one (and in fact I use this one to decide whether I want to send the additional 4th parameter in my modified treg.prg to read the 64bit registry entries, for example).\n\nThe only need I see for IsWin64() is when the same code can be compiled either with FWH32 or with FWH64 (like rpreview.prg does to decide which DLL it has to load), but even in this case this function returns which kind of PROGRAM is mine, rather than which kind of OS I'm running.\n\nSo, the Wiki is, at least, confusing, if not wrong at all (unless it will not specify that function will detect the real OS only with FWH64, but at that point I see no utility for such a function). \n\nJust my 2 cents.\n\nHi,\nDavide", "time": "23:13", "topic": "Checking for a Windows 64-bit", "username": "Davide" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-18", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"StefanHaupt\":1kyr4sap]Daniel,\n\nmaybe the name of the function is a little bit confusing. The other funcions (IsWinXP(),...) are returning the version of the OS, so I think it would be clearer if IsWin64() would return the type of the OS (.f. for 32bit and .t. for a 64bit OS).\n\nI suggest IsWin64() for the OS and IsWow64() for the application. IsWin64() should return .t. if a 64bit OS is running, IsWow64() should return .t. if a 32bit app is running under 64bit.\n[/quote:1kyr4sap]\n\n+1\n \nI think it's more intuitive and in line with the rest of IsWin...() functions.", "time": "03:27", "topic": "Checking for a Windows 64-bit", "username": "hua" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-18", "forum": "FiveWin for Harbour/xHarbour", "text": "hua, stefan\n\nwe can not change IsWin64() functionality, maybe other user use this function, we could break compatibility.\n\nyes the function is not intuitive, but return a correct value ( .T. in applications built under 64 and .F. in applications built under 32 )\n\n[quote=\"Daniel Garcia-Gil\":3qu0c3qi]Stefan...\n\nthe return value is correct in both case\nthe point is call IsWin64 in 32 bit program (built) never shall return .T. because run in emulation mode (WOW64) under 64 bit OS, this emulation is 32bits\nlike say : <!-- m --><a class=\"postlink\" href=\"http://msdn.microsoft.com/en-us/library/ms684139(VS.85\">http://msdn.microsoft.com/en-us/library/ms684139(VS.85</a><!-- m -->).aspx\nIsWow64 Determines whether the specified process is running under WOW64.\ni mean, no verify OS verify emulation mode\nso we need use IsWow64 in 32bit applications[/quote:3qu0c3qi]\n\n\nto run 32 bits applications under 64bit, only is possible in emulation mode, we can not skip this \"layer\", only way is with new function IsWow64 (thanks to davide)", "time": "04:51", "topic": "Checking for a Windows 64-bit", "username": "Daniel Garcia-Gil" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Daniel,\n[quote=\"Daniel Garcia-Gil\":3ves8745]we can not change IsWin64() functionality, maybe other user use this function[/quote:3ves8745]\nyou're right, but if someone did you use it as advertised in the Wiki (like I did), they've already found it doesn't work that way.\n\nI would suggest:\n\n1) Rename IsWin64() as IsMyPrg64()\n (including all the calls to IsWin64() in the different sources, like rPreview.prg)\n2) Function IsWin64() ; Return ( IsMyPrg64() .or. IsWow64() )\n\nThis way IsWin64() would really check the OS rather then the prg, either with FWH32 or with FWH64, without breaking backward compatibility for most of the FiveWin users, apart those that eventually did use it in their own prg's to check whether they were compiled under 32 or 64 bit (they would just have to rename IsWin64() as above however)\n\nAlternatively, we can leave IsWin64() like it is now, but then the Wiki needs to be updated or more and more people will make the mistake to use it with FWH32 to check if the OS is 64bit or not.\n\nHi,\nDavide", "time": "11:14", "topic": "Checking for a Windows 64-bit", "username": "Davide" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Daniel,\n\n[quote:3pifyxbi]I think it's more intuitive and in line with the rest of IsWin...() functions.[/quote:3pifyxbi]\n\nThat was my intention. Maybe changing the function could break compatibility with existing apps, but are there already 64bit apps ? I think, it´s not too late to change the function.", "time": "11:28", "topic": "Checking for a Windows 64-bit", "username": "StefanHaupt" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-18", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Davide\":1lc32f41]Alternatively, we can leave IsWin64() like it is now, but then the Wiki needs to be updated or more and more people will make the mistake to use it with FWH32 to check if the OS is 64bit or not.[/quote:1lc32f41]\n\n[url:1lc32f41]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_function_iswin64[/url:1lc32f41]\nThe return section explain perfectly this point:\nReturns\n<lWin64>\tThis function returns .t. if we are executing the application under Windows 64 bit\ni will change IsWind64 section\nalready is:\nIsWin64()\nIt checks if the version of Windows is 64 bit.\nfor this \nit check if we are executing the application under Windows 64 bit\nRemarks:\n32 bis applications no run in 64 bit, these run under 32 bit emulation, for detect emulation mode use IsWow64\n\nwiki for IsWow64() could be, it check if we are executing the application under 32 bit emulation", "time": "13:32", "topic": "Checking for a Windows 64-bit", "username": "Daniel Garcia-Gil" } ]
Checking for a Windows 64-bit
[ { "date": "2010-08-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Already changed wiki\n\n[url:2fmd3e2h]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_function_iswin64[/url:2fmd3e2h]\n\n[url:2fmd3e2h]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_function_iswow64[/url:2fmd3e2h]\n\nplease any thing else or additional comment, please let us know, thanks by feedback", "time": "13:46", "topic": "Checking for a Windows 64-bit", "username": "Daniel Garcia-Gil" } ]
Checking for a Windows 64-bit
[ { "date": "2009-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI'm looking to put a message in my app to check if the user has updated any fields in a dialog (these can be gets/radio/checkboxes etc) and then if the user tries to quit, display a message saying \"Data not saved, are you sure you wish to quit?\"\n\nIs there a global setting that i can put into my dialog that can get updated if any updates occur, or do i have to put an ON CHANGE onto each of my controls?\n\nAny ideas will be appreciated\n\nPete", "time": "14:39", "topic": "Checking for updated fields", "username": "PeterHarmes" } ]
Checking for updated fields
[ { "date": "2009-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Peter\n\nI don't have a direct answer for you .. but consider a couple options .. \n\n1) In a network environment you could have issues with two people having buffered up the same record .. very typical in a small office situation .. if one person saves the record and the other saves on top of that same record .. you now have a delima. In this case I use a 'signature' numeric field that gets incremented once each time the record is saved. If workstation A saves a record the signature field in the table gets incremented .. the trick is before workstation B saves the same record .. you go out once again to the table and verify the signature field buffered on workstation B is the same as what the table says .. if not .. then workstation A has slipped behind workstation B and changed the information and workstation B should not be allowed to save if the signature field is not the same.\n\n2) It may seem redundant .. but many times I will thru up a MsgYesNo() and even if nothing has changed and ask the user to Save or Cancel during the end of an Edit session .. let the user confirm if they have changed a record.\n\nJust my 2 cents..\n\nRick Lipkin", "time": "14:54", "topic": "Checking for updated fields", "username": "Rick Lipkin" } ]
Checking for updated fields
[ { "date": "2009-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks for your reply - i've always said to our customers that i could change my app to work as you suggested in point 2, so i'm probably going to go with that. Just wondered if there was an \"hidden\" automated procedure somewhere <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> \n\nRegards,\n\nPete", "time": "15:03", "topic": "Checking for updated fields", "username": "PeterHarmes" } ]
Checking for updated fields
[ { "date": "2009-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "This bit of code might point you in the right direction. This code would run after the ON INIT for the dialog. It does not take into account if you already have bChange block already assigned. You might have to add other types of controls also. It also does not do folder within folder.\n\n[code=fw:2h22xyv1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> nI := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"TGET\"</span> .or. oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"TCHECKBOX\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bChange</span> == <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Here is where you can assign variable or use function to turn on save checking. </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// There is another place further down.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bChange</span> = <span style=\"color: #000000;\">&#123;</span> || ::<span style=\"color: #000000;\">togglesaveon</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"TFOLDER\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> nIFold := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> nFoldI := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span> nIFold <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span> nIFold <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nFoldI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"TGET\"</span> .or. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span> nIFold <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nFoldI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"TCHECKBOX\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span> nIFold <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nFoldI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bChange</span> == <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Here is where you can assign variable or use function to turn on save checking.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span> nIFold <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> nFoldI <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bChange</span> = <span style=\"color: #000000;\">&#123;</span> || ::<span style=\"color: #000000;\">togglesaveon</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">NEXT</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br />&nbsp;</div>[/code:2h22xyv1]", "time": "17:58", "topic": "Checking for updated fields", "username": "Gale FORd" } ]
Checking for updated fields
[ { "date": "2009-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Pete,\n\nPersonally, I am against such a design. The software should assume that the user wants to do what they said they did. I hate confirmations! Consider that 99 times out of a hundred, the answer will be the same. The user will be so used to getting rid of the annoying message by answering in a certain matter that it will be so automatic, that the one time in a hundred that they really needed to answer it differently, it will be too late. The confirmation message will have already been dismissed by the user in the usual way.\n\nSo confirmations don't work and they just create more work for the user.\n\nIf you really wish to do this, however, there is a modified() method of the TDatabase class that will tell you if the data has been changed. The database class holds the data in an array, the user can then edit it and the modified() method will check the array against the original record. Of course, you must change your code to use a database object in order to use the modified() method.\n\nRegards,\nJames", "time": "18:05", "topic": "Checking for updated fields", "username": "James Bott" } ]
Checking for updated fields
[ { "date": "2009-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello James,\nwould you be so kind to explain the modified() method a bit.\nIs modified asking if you want save.\nIt would also be a good step to have a undo build in.\nThanks in advance.\nBest regards,\nOtto", "time": "19:59", "topic": "Checking for updated fields", "username": "Otto" } ]
Checking for updated fields
[ { "date": "2009-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\n>would you be so kind to explain the modified() method a bit.\n>Is modified asking if you want save.\n\nNo, calling Modified() simply checks the buffer agianst the record and returns .t. if they are different.\n\n>It would also be a good step to have a undo build in.\n\nYes, Undo is much better than a confirmation. In order to create a undo you will have to save the previous data somewhere, then provide an Undo button or menu choice.\n\nJames", "time": "22:27", "topic": "Checking for updated fields", "username": "James Bott" } ]
Checking for updated fields
[ { "date": "2009-06-19", "forum": "FiveWin for Harbour/xHarbour", "text": "I fully agree with Mr. James on user psychology. \n\nAbout checking whether any data is modified by a dialog, in a network environment, we need to consider two kinds of changes.\n\n1) If our user has modified the data by editing the dialog.\n2) If any other user changed the data, after our user read the data.\n\nI normally use a class derived from TDataBase. I maintain two buffers, aOriginal and aBuffer. Comparing aOriginal and aBuffer tells me if our user has changed the data. If changed it needs to be saved. This comparison does not require a diskread, which is costly in network environments. ( This has another advantage. User might have edited a few Gets and again re-edited to the original values. In such a case we need not save the record ). Also maintaining two buffers aOriginal and aBuffer enables 'UNDO' without another diskread.\n\nBy comparing aOriginal with data in the table ( similar to modified method of TDataBase ) we know if some other user changed the data already. ( Comparing Version fields if maintained may appear to be faster, but our normal RDDs anyway read the entire record ).\n\nMr James' TData class stood the test of time. I do not know how TData class helps the programmer in this regard. Would Mr James or any user of TData like to enlighten us on this aspect of TData ?\n\nIt may be noted that ADO recordset also maintains these values to enable the programmer to do these kinds of comparisons. Every field has OriginalValue, UnderlyingValue and Value. Comparing Value with OriginalValue tells us if our user has modified data. Resync method to update only underlyingvalues reads the current data into this value. Comparing Value with UnderlyingValues tells is if other user modified the data. ( Using Version fields is faster while dealing with RDMSs )\n\nIn case, I am not using any classes, I normally have all the values in an array at the outset and compare with edited values in the dialog.\n\nIncidentally I would like to share my views on oGet:Changed. This such a handy feature that we are tempted to use this value to determine if our user has changed the data. But this can be dangerously misleading. Every time a Get gets focus, the oGet;Changed is reset to .f. The user might have edited the data once and might have gone back to the same get and did not modify this time. oGet:changed shows .f.", "time": "06:20", "topic": "Checking for updated fields", "username": "nageswaragunupudi" } ]
Checking for updated fields
[ { "date": "2009-06-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Mr. NagesWaraRao,\n\nwould you please show how you compare to arrays.\nI always use a FOR-NEXT statement. Is there a better way?\nThanks in advance\nAnd best regards,\nOtto", "time": "06:37", "topic": "Checking for updated fields", "username": "Otto" } ]
Checking for updated fields
[ { "date": "2009-06-19", "forum": "FiveWin for Harbour/xHarbour", "text": "I have solved this problem many years ago, even already in my Clipper times.\n\nI always use this kind of code :\n\n[code=fw:3nepkgds]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">LOCAL</span> cField1,cField2,cField2<br /><span style=\"color: #00C800;\">LOCAL</span> cUpdate := .F.<br />.................<br />cFIELD1 := DBF1->FIELD1<br />cFIELD2 := DBF1->FIELD2<br />cFIELD3 := DBF1->FIELD3<br />.................<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> ........<br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> cFIELD1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> cFIELD2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">102</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> cFIELD3 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">103</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> ........<br />.................<br /><span style=\"color: #00C800;\">IF</span> !<span style=\"color: #000000;\">&#40;</span>cFIELD1 = DBF1->FIELD1 .AND. ;<br />     cFIELD2 = DBF1->FIELD2 .AND. ;<br />     cFIELD3 = DBF1->FIELD3<span style=\"color: #000000;\">&#41;</span><br />    cUPDATED := .T.<br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> cUPDATED<br />   DBF1->FIELD1 := cFIELD1<br />   DBF1->FIELD2 := cFIELD2<br />   DBF1->FIELD3 := cFIELD3<br /><span style=\"color: #00C800;\">ENDIF</span></div>[/code:3nepkgds]\n\nYou could make a cUPDATED for each field if you want to know which fields are updated.\n\nGood luck.", "time": "13:43", "topic": "Checking for updated fields", "username": "driessen" } ]
Checking for updated fields
[ { "date": "2009-06-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Otto\n\n>\nI always use a FOR-NEXT statement. Is there a better way?\n>\n\nI also do the same thing. I think this is the best way I can think of.", "time": "17:17", "topic": "Checking for updated fields", "username": "nageswaragunupudi" } ]
Checking for updated fields
[ { "date": "2007-11-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nMy program import data from an other system. These files include a parameter and info about this parameter. When I import it I create a fieldname with the same name as the parameter from the imported file. Till now I had no problem but a client wanted to import a file that contains wrong info. My program wanted to create a fieldname containing '*' and other strange characters. Is there a way to chech if a fieldname is correct?\n\nThanks,\nMarc", "time": "07:56", "topic": "Checking for valid fieldname", "username": "Marc Vanzegbroeck" } ]
Checking for valid fieldname
[ { "date": "2007-11-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Maybe this func could help you.\nRegards,\nOtto\n\nfunc f_isOK(cTest) \nlocal cReturn:=\"\"\nlocal i:=0 \n \nFOR I := 1 TO len(cTestl) \n\nIF ASC(substr(cTest,i,1)) >= 33 .and. ASC(substr(cTest,i,1)) <= 90 \ncReturn:=cReturn+substr(cTest,i,1)\n\nelseif ASC(substr(cTest,i,1)) >= 97 .and. ASC(substr(cTest,i,1)) <= 122 \ncReturn:=cReturn+substr(cTest,i,1)\n\nelseif ...\n\nENDIF \nNEXT\nreturn (cReturn)", "time": "08:35", "topic": "Checking for valid fieldname", "username": "Otto" } ]
Checking for valid fieldname
[ { "date": "2007-11-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Using charonly :\n\n[code:jy9dfnhy]\nLOCAL CharAllowed &#58;= \"\" , i , lOk\nFOR i &#58;= 65 TO 90\n CharAllowed += CHR&#40;i&#41; + CHR&#40;i+32&#41;\nNEXT\n// Are numbers allowed in fieldnames ? If yes add the range 48-57\nlOk &#58;= &#40; LEN&#40;CharOnly&#40;CharAllowed,cString&#41; == LEN&#40;cString&#41; &#41;\nRETURN lOk // Or CharOnly&#40;CharAllowed,cString&#41; \n[/code:jy9dfnhy]", "time": "09:08", "topic": "Checking for valid fieldname", "username": "demont frank" } ]
Checking for valid fieldname
[ { "date": "2007-11-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto, Frank,\n\nThanks for the info. I will try it.\n\nMarc", "time": "12:06", "topic": "Checking for valid fieldname", "username": "Marc Vanzegbroeck" } ]
Checking for valid fieldname
[ { "date": "2013-09-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nHow can I check in FWH if Outlook is running on my PC?\n\nI tried to use GetTasks() but Outlook can not be found in the tasklist.\n\nIs there a difference in Outlook 2003, 2007, 2010 or 2013?\n\nAnyone any idea?\n\nThanks a lot in advance.", "time": "18:26", "topic": "Checking if Outlook is running", "username": "driessen" } ]
Checking if Outlook is running
[ { "date": "2013-09-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Michel,\n\nThis may help you:\n\n[code=fw:2nxsxsce]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; <span style=\"color: #00C800;\">if</span> FWGetOleObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"outlook.application\"</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"outlook is not available\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"outlook is available\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span></div>[/code:2nxsxsce]", "time": "19:20", "topic": "Checking if Outlook is running", "username": "Antonio Linares" } ]
Checking if Outlook is running
[ { "date": "2013-09-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThanks for you efforts, but I'm afraid it isn't working.\n\nI always get the message \"Outlook is available\" whether Outlook is running or not.\nIf Outlook is not running, I can see that Outlook is started invisible for a short moment, then the message \"Outlook is available\" appears and then Outlook is quited.\n\nI did another test. I added the source you suggested into my source and I removed the try catch end section, just to see what happens.\nThen I got this error : \"Error TOleAuto/65535 TOLEAUTO:GETACTIVEOBJECT\"\n\nAny idea?", "time": "20:20", "topic": "Checking if Outlook is running", "username": "driessen" } ]
Checking if Outlook is running
[ { "date": "2013-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:3a0e7854]Because I want to prevent that Outlook is started more than one time.[/quote:3a0e7854]\n\nif GetActiveObject( cName ) succeeds without error, it means the app is already running.\n\nSo the logic should be\n[code=fw:3a0e7854]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">TRY</span><br />&nbsp; &nbsp; oObj := GetActiveObject<span style=\"color: #000000;\">&#40;</span> cApp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; ? <span style=\"color: #ff0000;\">'already running'</span><br />CATCH<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oObj := CreateObject<span style=\"color: #000000;\">&#40;</span> cApp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;? <span style=\"color: #ff0000;\">'Created now'</span><br />&nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp;? <span style=\"color: #ff0000;\">'app not available<br />&nbsp; &nbsp; END<br />END<br /></span></div>[/code:3a0e7854]\n\nThe FWH function FWGetOleObject( cApp ) does exactly the above.\nI advise you to use FWGetOleObject( cApp ) instead of TOleAuto():New(...) to achieve what you wanted.\n\nPlease see the code in \\fwh\\source\\function\\olefuncs.prg", "time": "01:53", "topic": "Checking if Outlook is running", "username": "nageswaragunupudi" } ]
Checking if Outlook is running
[ { "date": "2013-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Michel\n\nMaybe the following code will help\n[code=fw:1zbz58fg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> lfSetMail<span style=\"color: #000000;\">&#40;</span>oCMSFolder<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> NameSpace,oInbox<br /><span style=\"color: #00C800;\">TRY</span><br />&nbsp; &nbsp;oOL := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Outlook.Application\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oNameSpace &nbsp; := oOL:<span style=\"color: #0000ff;\">Get</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"GetNameSpace\"</span>, <span style=\"color: #ff0000;\">\"MAPI\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oInbox &nbsp; &nbsp; &nbsp; := oNameSpace:<span style=\"color: #0000ff;\">Get</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"GetDefaultFolder\"</span>,<span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// 6 = Inbox-Folder</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">TRY</span><br />&nbsp; &nbsp; &nbsp; oCMSFolder &nbsp; := oInbox:<span style=\"color: #000000;\">Folders</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"cmsmail\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;CATCH<br />&nbsp; &nbsp; &nbsp; MsgAlert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'No CMSMAIL Folder Setup'</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;END<br />CATCH<br />&nbsp; &nbsp;MsgAlert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Outlook Not Installed'</span><span style=\"color: #000000;\">&#41;</span><br />END<br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span>oCMSFolder<span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1zbz58fg]\n\nRegards\n\nColin", "time": "00:21", "topic": "Checking if Outlook is running", "username": "Colin Haig" } ]
Checking if Outlook is running
[ { "date": "2013-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Colin,\n\nThanks a lot for trying to help me.\n\nI don't want to know if Outlook is installed or not, I want to know if Outlook is running.\n\nWhy do I want to know if Outlook is running? Because I want to prevent that Outlook is started moren than one time.", "time": "01:04", "topic": "Checking if Outlook is running", "username": "driessen" } ]
Checking if Outlook is running
[ { "date": "2013-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Michel\n\nI justed tested outlook and it appears you can not start it multiple times - you can have multiple child windows open\nbut they are closed when the top window is closed.\nTested on Windows 8 and Outlook 2010.\n\nRegards\n\nColin", "time": "01:28", "topic": "Checking if Outlook is running", "username": "Colin Haig" } ]
Checking if Outlook is running
[ { "date": "2013-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks a lot everybody for trying to help me.\n\nUnfortunately, whatever I try, I always get the error : \"Error TOleAuto/65535 TOLEAUTO:GETACTIVEOBJECT\".\n\nWhat am I doing wrong?", "time": "08:15", "topic": "Checking if Outlook is running", "username": "driessen" } ]
Checking if Outlook is running
[ { "date": "2013-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"driessen\":f87x0fe3]Thanks a lot everybody for trying to help me.\n\nUnfortunately, whatever I try, I always get the error : \"Error TOleAuto/65535 TOLEAUTO:GETACTIVEOBJECT\".\n\nWhat am I doing wrong?[/quote:f87x0fe3]\n\nIf Outlook is not already running, you will and should get this error and getting the error is the way to know that it is not running.\n\nPlease see my explanation above.", "time": "10:40", "topic": "Checking if Outlook is running", "username": "nageswaragunupudi" } ]
Checking if Outlook is running
[ { "date": "2013-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Helle everyone,\n\nOf course, I made a mistake by not using TRY .. CATCH ... END in my test.\n\nNow it's running just fine.\n\nThank you very much for your help.", "time": "11:39", "topic": "Checking if Outlook is running", "username": "driessen" } ]
Checking if Outlook is running
[ { "date": "2013-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Good.\nSo I advise you to use FWGetOleObject( cApp ) instead of TOleAuto():New(...).\n\nThis function checks if the application is already active and if active uses the active object.\nIf not active opens the application.", "time": "12:28", "topic": "Checking if Outlook is running", "username": "nageswaragunupudi" } ]
Checking if Outlook is running
[ { "date": "2013-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao,\n\nThanks a lot for your advice.", "time": "12:31", "topic": "Checking if Outlook is running", "username": "driessen" } ]
Checking if Outlook is running
[ { "date": "2013-01-04", "forum": "FiveMac / FivePhone (iPhone, iPad)", "text": "Hi this my first post here:\n\nWhat I need to port an application program (FWH) that actually runs in windows platform to mac?\n\n0) Fivewin - obvious\n1) Mac (or emulator?....)\n2) editor (I use a free editor)\n3) Resource editor (this is also free)\n4) linker?\n\nwhat else?\n\nI also want to know the cost of each item ( except fivewin I just read ) \n\n\nMany thanks\nmarco", "time": "08:51", "topic": "Checking list", "username": "MarcoBoschi" } ]
Checking list
[ { "date": "2013-01-07", "forum": "FiveMac / FivePhone (iPhone, iPad)", "text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=25437\">viewtopic.php?f=3&t=25437</a><!-- l -->", "time": "19:58", "topic": "Checking list", "username": "Antonio Linares" } ]
Checking list
[ { "date": "2009-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "FiveWin provides some functions to check non released GDI objects. \n\nWe have have enhanced that code, so you can manage it from PRG level and have full control on it:\n\nrescheck.prg\n[code=fw:blo9zua4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">static</span> aResources := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> PalBmpFree<span style=\"color: #000000;\">&#40;</span> hBmp, hPal <span style=\"color: #000000;\">&#41;</span><br /><br />   DeleteObject<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span><br />   DeleteObject<span style=\"color: #000000;\">&#40;</span> hPal <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> AddResource<span style=\"color: #000000;\">&#40;</span> nHResource, cType <span style=\"color: #000000;\">&#41;</span><br /><br />   AAdd<span style=\"color: #000000;\">&#40;</span> aResources, <span style=\"color: #000000;\">&#123;</span> cType, nHResource, ProcName<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span>, ProcLine<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span>   <br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> DelResource<span style=\"color: #000000;\">&#40;</span> nHResource <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> nAt<br /><br />   <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> nAt := AScan<span style=\"color: #000000;\">&#40;</span> aResources, <span style=\"color: #000000;\">&#123;</span> | aRes | aRes<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> == nHResource <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> != <span style=\"color: #000000;\">0</span><br />      ADel<span style=\"color: #000000;\">&#40;</span> aResources, nAt <span style=\"color: #000000;\">&#41;</span><br />      ASize<span style=\"color: #000000;\">&#40;</span> aResources, Len<span style=\"color: #000000;\">&#40;</span> aResources <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span>    <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> CheckRes<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> cInfo := <span style=\"color: #ff0000;\">\"\"</span>, n<br />   <br />   <span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> aResources <span style=\"color: #000000;\">&#41;</span><br />      cInfo += aResources<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\",\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + Str<span style=\"color: #000000;\">&#40;</span> aResources<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\",\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + ;<br />               aResources<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\",\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + Str<span style=\"color: #000000;\">&#40;</span> aResources<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> + CRLF<br />   <span style=\"color: #00C800;\">next</span>   <br />   <br />   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> cInfo <span style=\"color: #000000;\">&#41;</span><br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span>   <br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbapiitm.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbvm.h><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br />void RegisterResource<span style=\"color: #000000;\">&#40;</span> HANDLE hRes, LPSTR szType <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;PHB_ITEM pRet = hb_itemNew<span style=\"color: #000000;\">&#40;</span> hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">-1</span>, HB_IT_ANY <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br />   hb_vmPushSymbol<span style=\"color: #000000;\">&#40;</span> hb_dynsymGetSymbol<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADDRESOURCE\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />   hb_vmPushNil<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;<br />   hb_vmPushLong<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> LONG <span style=\"color: #000000;\">&#41;</span> hRes <span style=\"color: #000000;\">&#41;</span>;<br />   hb_vmPushString<span style=\"color: #000000;\">&#40;</span> szType, <span style=\"color: #0000ff;\">strlen</span><span style=\"color: #000000;\">&#40;</span> szType <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />   hb_vmFunction<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_itemReturnRelease<span style=\"color: #000000;\">&#40;</span> pRet <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span>  <br /><br />void pascal DelResource<span style=\"color: #000000;\">&#40;</span> HANDLE hResource <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;PHB_ITEM pRet = hb_itemNew<span style=\"color: #000000;\">&#40;</span> hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">-1</span>, HB_IT_ANY <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br />   hb_vmPushSymbol<span style=\"color: #000000;\">&#40;</span> hb_dynsymGetSymbol<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"DELRESOURCE\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />   hb_vmPushNil<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;<br />   hb_vmPushLong<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> LONG <span style=\"color: #000000;\">&#41;</span> hResource <span style=\"color: #000000;\">&#41;</span>;<br />   hb_vmFunction<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_itemReturnRelease<span style=\"color: #000000;\">&#40;</span> pRet <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span>    <br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br /> </div>[/code:blo9zua4]\nTo check consumed GDI objects in your app, add this function call at the beginning:\n[code=fw:blo9zua4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />SetResDebug<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:blo9zua4]\nand when you want to check the GDI objects, simply call:\n[code=fw:blo9zua4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />CheckRes<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:blo9zua4]", "time": "09:11", "topic": "Checking non released GDI objects", "username": "Antonio Linares" } ]
Checking non released GDI objects
[ { "date": "2009-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Antonio,\nif I link in rescheck.prg I get following error:\nBest regards,\nOtto\nApplication\n===========\n Path and name: C:\\xWinhotel\\xRechnung.EXE (32 bits)\n Size: 3,083,776 bytes\n Time from start: 0 hours 0 mins 2 secs \n Error occurred at: 21.06.2009, 10:49:02\n Error description: Error BASE/1068 Argument error: array access\n Args:\n [ 1] = N 0\n [ 2] = N 1\n\nStack Calls\n===========\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:LOADBITMAPS(0)\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:NEWBAR(0)\n Called from: c:\\develop8\\WH_Fwh\\xRg\\RECHNUNG.PRG => EXEC_ZIRECHNUNG(1721)\n Called from: c:\\develop8\\WH_Fwh\\xRg\\RECHNUNG.PRG => ZIRECHNUNG(371)\n Called from: c:\\develop8\\WH_Fwh\\xRg\\RECHNUNG.PRG => (b)MAIN(356)\n Called from: c:\\develop8\\WH_Fwh\\xRg\\window.prg => TMDIFRAME:ACTIVATE(876)\n Called from: c:\\develop8\\WH_Fwh\\xRg\\RECHNUNG.PRG => MAIN(356)", "time": "09:52", "topic": "Checking non released GDI objects", "username": "Otto" } ]
Checking non released GDI objects
[ { "date": "2009-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nWe have edited and modified the previous code. \n\nPlease copy it and test it again, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "15:17", "topic": "Checking non released GDI objects", "username": "Antonio Linares" } ]
Checking non released GDI objects
[ { "date": "2009-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nWe have modified the original posted code in the first msg here. \n\nPlease try it again with the new code, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "20:05", "topic": "Checking non released GDI objects", "username": "Antonio Linares" } ]
Checking non released GDI objects
[ { "date": "2009-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Antonio,\nit errors out, too.\nBest regards,\nOtto", "time": "16:49", "topic": "Checking non released GDI objects", "username": "Otto" } ]
Checking non released GDI objects
[ { "date": "2009-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Otto,\n\nI use MemProof.\n\nRegards,\n\nToninho.", "time": "18:24", "topic": "Checking non released GDI objects", "username": "toninhofwi" } ]
Checking non released GDI objects
[ { "date": "2009-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\n> it errors out, too.\n\nWhat error do you get ? How to reproduce it ? thanks", "time": "18:38", "topic": "Checking non released GDI objects", "username": "Antonio Linares" } ]
Checking non released GDI objects