PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3] 4 5 ... 10
 21 
 on: February 25, 2021, 06:57:07 PM 
Started by SeaVipe - Last post by Paul Squires
Code: [Select]
   Shell "7z.exe a myzipfile.zip -pMyPassword -mx9 -aoa -r *.xls", 0   
      ' -r    recurse to subfolders
      ' -p    password protect
      ' -mx9  compression level 9
      ' -aoa  overwrite existing files without prompt

This was used with 7-zip version 9.20 from 2010 so who knows if it works now. It simply creates a password protected archive containing, in my case, *.xls spreadsheet files in the folder. Obviously I have changed the archive name and password in the above example. :-)



 22 
 on: February 25, 2021, 03:05:12 PM 
Started by SeaVipe - Last post by SeaVipe
I'm looking into it, thanks, Paul.

 23 
 on: February 25, 2021, 02:23:34 PM 
Started by SeaVipe - Last post by Paul Squires
I had an application years ago that I needed zip support. I ended up going the same path as Ray and simply shelled the calls to 7-zip. It worked well and the application continues to function perfectly all these years later.

 24 
 on: February 25, 2021, 12:46:58 PM 
Started by SeaVipe - Last post by SeaVipe
Thanks, Ray, I'll look into 7-Zip. I was hoping to find a FB/Win API solution.

 25 
 on: February 25, 2021, 09:14:04 AM 
Started by SeaVipe - Last post by raymw
You can call 7-zip from a command line, so you could generate the commands you need in fb, and then 'run' the command. Not sure if that is what you want to do

 26 
 on: February 24, 2021, 06:46:15 PM 
Started by SeaVipe - Last post by SeaVipe
General question: I need to work with files in a compressed (zip) folder (reading and writing). I've found a few somewhat convoluted examples in other languages (some time ago now) but porting them to FB looked to be a task most daunting - ergo I gave up :(
I'm going to give it another go so any ideas or even a starting point would be helpful :)

 27 
 on: February 24, 2021, 04:25:34 PM 
Started by jermy - Last post by jermy
I have already tried that, he first runs WM_CREATE but does not automatically pass WM_SIZE  ( TabPage1_WndProc )
I can do this that works also
Code: [Select]

         sendMessage pTabPage1->hTabPage, WM_SIZE, 0 ,0

   FUNCTION = pWindow.DoEvents
END FUNCTION


 28 
 on: February 24, 2021, 04:20:01 PM 
Started by jermy - Last post by Josť Roca
If you want to create the TreeView and the filling code in WM_CREATE, create the TreeView with any size, or even 0, and then resize it in WM_SIZE.

 29 
 on: February 24, 2021, 04:01:12 PM 
Started by jermy - Last post by Josť Roca
After moving the creation code to WinMain, the TreeView control has not yet been created when you receive the WM_CREATE message. Mode the code after pTabPage1->AddControl.

 30 
 on: February 24, 2021, 03:47:02 PM 
Started by jermy - Last post by jermy
Ok tnx

I moved the creation code for the treeview to winmain, now i want to fill the treeview this is also not possible from WM_CREATE Tabpage?
the code does not fill the treeview
Code: [Select]


FUNCTION TabPage1_WndProc (BYVAL hwnd AS HWND, BYVAL uMsg AS UINT, BYVAL wParam AS WPARAM, BYVAL lParam AS LPARAM) AS LRESULT

   SELECT CASE uMsg

      CASE WM_CREATE

        DIM hTreeView AS HWND = GetDlgItem(hwnd, IDC_TREEVIEW)

 
   ' // Add items to the TreeView
   DIM AS HTREEITEM hRoot, hNode, hItem
   ' // Create the root node
   hRoot = TreeView_AddRootItem(hTreeView, "All accounts")
   ' // Create a node
   hNode = TreeView_AppendItem(hTreeView, hRoot, "A")
 

I did some testing the listview window handel is not yet created?

Pages: 1 2 [3] 4 5 ... 10