Re: 7-Zip DLL [message #72265] |
Fri, 27 August 2010 01:09  |
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 #72403 is a reply to message #72269] |
Tue, 31 August 2010 14:10  |
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
|
|
|