<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CommonDialog CJ13 Windows 10 freeze</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : CommonDialog CJ13 Windows 10 freeze]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 23:59:07 +0000</pubDate>
  <lastBuildDate>Wed, 19 Oct 2016 06:37:18 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=23084</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CommonDialog CJ13 Windows 10 freeze : I placed the lineSkinFramework1.ExcludeModule...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23084&amp;PID=75230&amp;title=commondialog-cj13-windows-10-freeze#75230</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6401">Arnoutdv</a><br /><strong>Subject:</strong> 23084<br /><strong>Posted:</strong> 19 October 2016 at 6:37am<br /><br />I placed the line&nbsp;<div>SkinFramework1.ExcludeModule "AcLayers.dll"</div><div><br></div><div>before skin is loaded, doesn't help on the crashing the BrowseForFolder dialog</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>Option Explicit</div><div><br></div><div>'========================================================================================</div><div>' User control: &nbsp;modUniBrowseForFolder</div><div>' Author: &nbsp; &nbsp; &nbsp; &nbsp;Zhu JinYong</div><div>' Original By: &nbsp; DaVBMan (http://vbcity.com/forums/t/67223.aspx)</div><div>' Dependencies: &nbsp;-None-</div><div>' Compatibility: Unicode Tested on XP/Vista/Win7</div><div>' Last revision: 18/5/2011</div><div>' About Author: &nbsp;P.R.China,Anhui Province,Anqing City</div><div>' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Zong Yang County,HuiGong Town,BaMao,Song Ke Village</div><div>'----------------------------------------------------------------------------------------</div><div>Private Type BrowseInfo</div><div>&nbsp; hWndOwner As Long</div><div>&nbsp; pIDLRoot As Long</div><div>&nbsp; pszDisplayName As Long 'String</div><div>&nbsp; lpszTitle As Long 'String</div><div>&nbsp; ulFlags As Long</div><div>&nbsp; lpfnCallback As Long</div><div>&nbsp; lParam As Long</div><div>&nbsp; iImage As Long</div><div>End Type</div><div><br></div><div>Private Const BIF_RETURNONLYFSDIRS = &amp;H1</div><div>Private Const BIF_DONTGOBELOWDOMAIN = &amp;H2</div><div>Private Const BIF_STATUSTEXT = &amp;H4</div><div>Private Const BIF_RETURNFSANCESTORS = &amp;H8</div><div>Private Const BIF_EDITBOX = &amp;H10</div><div>Private Const BIF_VALIDATE = &amp;H20</div><div>Private Const BIF_NEWDIALOGSTYLE = &amp;H40</div><div>Private Const BIF_USENEWUI = (BIF_NEWDIALOGSTYLE Or BIF_EDITBOX)</div><div>Private Const BIF_BROWSEINCLUDEURLS = &amp;H80</div><div>Private Const BIF_UAHINT = &amp;H100</div><div>Private Const BIF_NONEWFOLDERBUTTON = &amp;H200</div><div>Private Const BIF_NOTRANSLATETARGETS = &amp;H400</div><div>Private Const BIF_BROWSEFORCOMPUTER = &amp;H1000</div><div>Private Const BIF_BROWSEFORPRINTER = &amp;H2000</div><div>Private Const BIF_BROWSEINCLUDEFILES = &amp;H4000</div><div>Private Const BIF_SHAREABLE = &amp;H8000</div><div>Private Const MAX_PATH = 260</div><div>Private Const WM_USER = &amp;H400</div><div><br></div><div>Private Const BFFM_INITIALIZED = 1</div><div>Private Const BFFM_SELCHANGED = 2</div><div>Private Const BFFM_VALIDATEFAILEDA = 3 &nbsp;'// lParam:szPath ret:1(cont),0(EndDialog)</div><div>Private Const BFFM_VALIDATEFAILEDW = 4 &nbsp;'// lParam:wzPath ret:1(cont),0(EndDialog)</div><div>Private Const BFFM_IUNKNOWN = 5 &nbsp; &nbsp; &nbsp; &nbsp; '// provides IUnknown to client. lParam: IUnknown*</div><div><br></div><div>'// messages to browser</div><div>Private Const BFFM_SETSTATUSTEXT = (WM_USER + 100)</div><div>Private Const BFFM_SETSTATUSTEXTW = WM_USER + 104</div><div>Private Const BFFM_SETSELECTION = (WM_USER + 102)</div><div>Private Const BFFM_SETSELECTIONW = (WM_USER + 103)</div><div>Private Const BFFM_ENABLEOK = WM_USER + 101</div><div><br></div><div>'Private Declare Function SHGetPathFromIDListA Lib "shell32.dll" (ByVal pidl As Long, ByVal pszPath As String) As Long</div><div>Private Declare Function SHGetPathFromIDListW Lib "shell32" (ByVal pidList As Long, ByVal lpBuffer As Long) As Long</div><div><br></div><div>'Private Declare Function SHBrowseForFolderA Lib "shell32.dll" (lpBrowseInfo As BrowseInfo) As Long</div><div>Private Declare Function SHBrowseForFolderW Lib "shell32" (lpbi As BrowseInfo) As Long</div><div><br></div><div>Private Declare Sub CoTaskMemFree Lib "ole32.dll" (ByVal pv As Long)</div><div><br></div><div>'Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long</div><div>Private Declare Function SendMessageW Lib "user32" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long</div><div>'Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (lpvDest As Any, lpvSource As Any, ByVal cbCopy As Long)</div><div>&nbsp; &nbsp;&nbsp;</div><div>Public Function BrowseForFolderW(ByVal hWndModal As Long, Optional Title As String = "Please select a folder:", Optional StartFolder As String = "", _</div><div>&nbsp; &nbsp;Optional IncludeFiles As Boolean = False, Optional IncludeNewFolderButton As Boolean = False) As String</div><div>&nbsp; &nbsp; Dim bInf As BrowseInfo</div><div>&nbsp; &nbsp; Dim RetVal As Long</div><div>&nbsp; &nbsp; Dim PathID As Long</div><div>&nbsp; &nbsp; Dim RetPath As String</div><div>&nbsp; &nbsp; Dim Offset As Integer</div><div>&nbsp; &nbsp; Dim szTitleInfo() As Byte</div><div>&nbsp; &nbsp; Dim strSTARTFOLDER As String</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; 'Set the properties of the folder dialog</div><div>&nbsp; &nbsp; With bInf</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.hWndOwner = hWndModal</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.pIDLRoot = 0</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;szTitleInfo = Title &amp; vbNullChar</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.lpszTitle = VarPtr(szTitleInfo(0))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.ulFlags = IIf(IncludeFiles, BIF_BROWSEINCLUDEFILES, BIF_RETURNONLYFSDIRS) + BIF_DONTGOBELOWDOMAIN + BIF_USENEWUI + _</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IIf(IncludeNewFolderButton, 0&amp;, BIF_NONEWFOLDERBUTTON)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If IncludeFiles Then .ulFlags = .ulFlags Or BIF_BROWSEINCLUDEFILES</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If IncludeNewFolderButton Then .ulFlags = .ulFlags Or BIF_NEWDIALOGSTYLE</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If StartFolder &lt;&gt; "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strSTARTFOLDER = StartFolder &amp; vbNullChar</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.lpfnCallback = GetAddressofFunction(AddressOf BrowseCallbackProc) 'get address of function.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.lParam = StrPtr(strSTARTFOLDER)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End If</div><div>&nbsp; &nbsp; &nbsp;End With</div><div>&nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; 'Show the Browse For Folder dialog</div><div>&nbsp; &nbsp; PathID = SHBrowseForFolderW(bInf)</div><div>&nbsp; &nbsp; If PathID = 0 Then Exit Function</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; RetPath = Space$(MAX_PATH)</div><div>&nbsp; &nbsp; RetVal = SHGetPathFromIDListW(PathID, StrPtr(RetPath))</div><div>&nbsp; &nbsp; If RetVal Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'Trim off the null chars ending the path</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'and display the returned folder</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Offset = InStr(RetPath, Chr$(0))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrowseForFolderW = Left$(RetPath, Offset - 1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'Free memory allocated for PIDL</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CoTaskMemFree PathID</div><div>&nbsp; &nbsp; Else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrowseForFolderW = ""</div><div>&nbsp; &nbsp; End If</div><div>End Function</div><div><br></div><div>Private Function BrowseCallbackProc(ByVal hwnd As Long, ByVal uMsg As Long, ByVal lp As Long, ByVal pData As Long) As Long</div><div>&nbsp; &nbsp;Dim lpIDList As Long</div><div>&nbsp; &nbsp;Dim ret As Long</div><div>&nbsp; &nbsp;Dim sBuffer As String</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;On Error Resume Next</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;Select Case uMsg</div><div>&nbsp; &nbsp; &nbsp; &nbsp;Case BFFM_INITIALIZED</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Call SendMessageW(hwnd, BFFM_SETSELECTIONW, 1&amp;, pData) 'StrPtr(mstrSTARTFOLDER)) 'Private mstrSTARTFOLDER As String</div><div>&nbsp; &nbsp; &nbsp; &nbsp;Case BFFM_SELCHANGED</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sBuffer = Space(MAX_PATH)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ret = SHGetPathFromIDListW(lp, StrPtr(sBuffer))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If ret = 1 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Call SendMessageW(hwnd, BFFM_SETSTATUSTEXTW, 0, StrPtr(sBuffer))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End If</div><div>&nbsp; &nbsp;End Select</div><div>&nbsp; &nbsp;BrowseCallbackProc = 0</div><div>End Function</div><div><br></div><div>Private Function GetAddressofFunction(add As Long) As Long</div><div>&nbsp; &nbsp;GetAddressofFunction = add</div><div>End Function</div><div></pre></td></tr></table></div></div><div><br></div><div>For Vista and up I also have the following code:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>Private Function pBrowseForFolderIDialog(ByVal sPrompt As String, sInitDir As String) As String</div><div>&nbsp; Dim cIFileDialog As IFileDialog</div><div>&nbsp; Dim lMode As Long</div><div>&nbsp;&nbsp;</div><div>&nbsp; Set cIFileDialog = New IFileDialog</div><div>&nbsp;&nbsp;</div><div>&nbsp; cIFileDialog.propFlags = FOS__BrowseFoldersDefaults Or FOS_ALLNONSTORAGEITEMS</div><div>&nbsp; 'cIFileDialog.propDefaultFolder_Set sInitDir, ppType_AsString</div><div>&nbsp; 'cIFileDialog.propInitialFileName = sInitDir</div><div>&nbsp; cIFileDialog.propStartupFolder_Set sInitDir, ppType_AsString</div><div>&nbsp; lMode = cIFileDialog.DialogShow(0, FDLG_BROWSEFOLDERS, sPrompt)</div><div>&nbsp;&nbsp;</div><div>&nbsp; If lMode = 0 Then</div><div>&nbsp; &nbsp; If cIFileDialog.ResultsCount = 1 Then</div><div>&nbsp; &nbsp; &nbsp; pBrowseForFolderIDialog = cIFileDialog.IShellItem_GetDisplayName(ObjPtr(cIFileDialog.ResultsItem(1)), SIGDN_DESKTOPABSOLUTEEDITING, False)</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; ElseIf lMode = FD_CANCEL Then</div><div>&nbsp; &nbsp; ' Cancel clicked</div><div>&nbsp; Else</div><div>&nbsp; &nbsp; ' Other error</div><div>&nbsp; End If</div><div>&nbsp;&nbsp;</div><div>End Function</div></div><div></pre></td></tr></table></div><div>The above code refers to the class in the following ZIP</div><div><br></div><div><a href="uploads/6401/clsIFileDialog.zip" target="_blank" rel="nofollow">uploads/6401/clsIFileDialog.zip</a></div><div><br></div><div><br></div><div>Note:</div><div>Both methods using&nbsp;IFileDialog and the&nbsp;SHBrowseForFolderW API crashes on some Win10 64 bit configurations when the application is skinned.</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 19 Oct 2016 06:37:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23084&amp;PID=75230&amp;title=commondialog-cj13-windows-10-freeze#75230</guid>
  </item> 
  <item>
   <title><![CDATA[CommonDialog CJ13 Windows 10 freeze : Hi, I think this helps. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23084&amp;PID=75226&amp;title=commondialog-cj13-windows-10-freeze#75226</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23084<br /><strong>Posted:</strong> 18 October 2016 at 2:50pm<br /><br />Hi, I think <a href="http://forum.codejock.com/forum_posts.asp?TID=23076&amp;PID=74912&amp;title=solvedwindows-10-&#111;n-ide-freeze-all#74912" rel="nofollow">this</a> helps.]]>
   </description>
   <pubDate>Tue, 18 Oct 2016 14:50:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23084&amp;PID=75226&amp;title=commondialog-cj13-windows-10-freeze#75226</guid>
  </item> 
  <item>
   <title><![CDATA[CommonDialog CJ13 Windows 10 freeze : It&amp;#039;s said to notice that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23084&amp;PID=75223&amp;title=commondialog-cj13-windows-10-freeze#75223</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6401">Arnoutdv</a><br /><strong>Subject:</strong> 23084<br /><strong>Posted:</strong> 18 October 2016 at 11:36am<br /><br />It's said to notice that CodeJock representatives not even react to this post.<div><br></div><div>I'm also experiencing now the same problem using CodeJock v16.3.0 in our latest application:</div><div>http://forum.codejock.com/forum_posts.asp?TID=23164&amp;title=commondialog-crashes</div>]]>
   </description>
   <pubDate>Tue, 18 Oct 2016 11:36:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23084&amp;PID=75223&amp;title=commondialog-cj13-windows-10-freeze#75223</guid>
  </item> 
  <item>
   <title><![CDATA[CommonDialog CJ13 Windows 10 freeze : Some of our clients using an older...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23084&amp;PID=74930&amp;title=commondialog-cj13-windows-10-freeze#74930</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6401">Arnoutdv</a><br /><strong>Subject:</strong> 23084<br /><strong>Posted:</strong> 02 August 2016 at 10:38am<br /><br />Some of our clients using an older application built using C.J. 13.0.0 on Windows 10 experience problems when using the CommonDialog control from the Suite Controls.<div>The application freezes and then crashes when the CommonDialog ShowSave/ShowOpen is executed.</div><div><br></div><div>I can not reproduce the problem using a small test application on the client computer.</div><div><br></div><div>In the event viewer you get the following entry (translated from dutch screen shot):</div><div>Exception: 0xc0000409</div><div>Path to module: c:\windows\system32\windows.storage.dll</div><div><br></div><div><img src="uploads/6401/windows.storage.error.png" height="738" width="859" border="0" /><br></div><div><br></div><div>The application is also skinned using the SkinFrameWork, also version 13.0.0</div><div><br></div><div>Any clues how to proceed?</div>]]>
   </description>
   <pubDate>Tue, 02 Aug 2016 10:38:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23084&amp;PID=74930&amp;title=commondialog-cj13-windows-10-freeze#74930</guid>
  </item> 
 </channel>
</rss>