![]() |
#1
|
|||
|
|||
![]()
Hello, has anyone got this macro to work with X6? I tried updating the declare functions with PtrSafe until I was only finding one error. Here's the whole section with the error flagged when compiling:
Code:
Public Function BrowseForFolder(ByVal hWnd As Long, ByVal Title As String, ByVal StartDir As String) As String Dim lpIDList As Long Dim szTitle As String Dim sBuffer As String Dim tBrowseInfo As BrowseInfo m_CurrentDirectory = StartDir & vbNullChar szTitle = Title With tBrowseInfo .hWndOwner = hWnd .lpszTitle = lstrcat(szTitle, "") .ulFlags = BIF_RETURNONLYFSDIRS + BIF_DONTGOBELOWDOMAIN + BIF_STATUSTEXT + BIF_USENEWUI .lpfnCallback = GetAddressOfFunction(AddressOf BrowseCallbackProc) End With lpIDList = SHBrowseForFolder(tBrowseInfo) If lpIDList Then sBuffer = Space$(MAX_PATH) SHGetPathFromIDList lpIDList, sBuffer sBuffer = Left$(sBuffer, InStr(sBuffer, vbNullChar) - 1) BrowseForFolder = sBuffer CoTaskMemFree lpIDList Else BrowseForFolder = "" End If End Function |
#2
|
||||
|
||||
![]()
Why can't you substitute...
Code:
CorelScriptTools.GetFolder
__________________
Sean Waiting for a ride in the T.A.R.D.I.S. |
#3
|
|||
|
|||
![]()
Thanks, I tried your suggestion and it seems to be working.
|
#4
|
|||
|
|||
![]()
can i have full code or Macro
As i am also having same Problem |
#5
|
||||
|
||||
![]()
Hello all,
Until the official release from Alex, I have made an unofficial release that should get things working in X6. :-) If you have problem, please let me know. -Shelby |
#6
|
||||
|
||||
![]()
I would love to have this working in CorelDraw 2018. Do you know of a version that works?
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Oberon Thumbnailer - Image positioning | gorgo2 | Feature requests/wishlist | 26 | 12-05-2017 03:33 |
Oberon Fit Objects To Path | Alex | Other Oberon Commercial Products | 11 | 28-06-2012 12:55 |
Oberon Thumbnailer - remember last folder | gorgo2 | Feature requests/wishlist | 0 | 25-02-2010 18:10 |
New macros: Oberon Object Tiler & Oberon Color Replacer | Alex | Site News | 1 | 06-11-2009 20:49 |
Oberon Selection Manager | Alex | Other Oberon Commercial Products | 0 | 24-08-2003 13:22 |