comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: 7-Zip DLL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: 7-Zip DLL [message #72265] Fri, 27 August 2010 01:09 Go to next message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Thu, 26 Aug 2010 12:15:35 -0700 (PDT), kBob <krdean@gmail.com>
wrote:

>
> Looking for ways to use the 7-Zip DLL to compress the contents in a
> folder with IDL.
>
> Any thoughts?
>
> Kelly Dean
> Fort Collins, CO

Calling a DLL from within IDL requires the DLL export function to use
the IDL portable calling convention for passing arguments, i.e.
RET_TYPE dllexportfunction(int argc, void *argv[]).
This means you need to write a wrapper dll that uses this convention.
CALL_EXTERNAL has some keywords like AUTO_GLUE to help you with that,
but I always end up writing one myself (which is not that difficult).

In your case I'd guess you'll be better of spawning some command.
Re: 7-Zip DLL [message #72268 is a reply to message #72265] Thu, 26 August 2010 17:49 Go to previous messageGo to next message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
On Aug 27, 8:51 am, "Jeff N." <jeffnettles4...@gmail.com> wrote:
> On Aug 26, 3:15 pm, kBob <krd...@gmail.com> wrote:
>
>>  Looking for ways to use the 7-Zip DLL to compress the contents in a
>> folder with IDL.
>
>>  Any thoughts?
>
>> Kelly Dean
>> Fort Collins, CO
>
> Looks like you could just spawn a command like this:
>
> 7z a -tzip archive.zip subdir\
>
> I found this at:http://dotnetperls.com/7-zip-examples

Winrar has a command line option :-

cmd = 'rar a ' + dest_dir + date + '_' + region_names[i] + '_' +
hhmm_str + '.rar' + ' *.txt'
spawn,cmd,/log

and Winzip (PRO $$ version) also offers command line control.


Andrew
Re: 7-Zip DLL [message #72269 is a reply to message #72268] Thu, 26 August 2010 16:51 Go to previous messageGo to next message
jeffnettles4870 is currently offline  jeffnettles4870
Messages: 111
Registered: October 2006
Senior Member
On Aug 26, 3:15 pm, kBob <krd...@gmail.com> wrote:
>  Looking for ways to use the 7-Zip DLL to compress the contents in a
> folder with IDL.
>
>  Any thoughts?
>
> Kelly Dean
> Fort Collins, CO

Looks like you could just spawn a command like this:

7z a -tzip archive.zip subdir\

I found this at: http://dotnetperls.com/7-zip-examples
Re: 7-Zip DLL [message #72403 is a reply to message #72269] Tue, 31 August 2010 14:10 Go to previous message
KRDean is currently offline  KRDean
Messages: 69
Registered: July 2006
Member
On Aug 26, 5:51 pm, "Jeff N." <jeffnettles4...@gmail.com> wrote:
> On Aug 26, 3:15 pm, kBob <krd...@gmail.com> wrote:
>
>>  Looking for ways to use the 7-Zip DLL to compress the contents in a
>> folder with IDL.
>
>>  Any thoughts?
>
>> Kelly Dean
>> Fort Collins, CO
>
> Looks like you could just spawn a command like this:
>
> 7z a -tzip archive.zip subdir\
>
> I found this at:http://dotnetperls.com/7-zip-examples

Thanks for the suggestions. So far, spawning a 7-Zip command line is
working just fine.

Kelly Dean
Fort Collins, CO
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ITT Announces Acquisition of CREASO
Next Topic: Re: IDLDE 8.0 Command Line Errors

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:36:59 PDT 2025

Total time taken to generate the page: 0.00732 seconds