Forum > General

TPropVariant problem

<< < (2/2)

Ricco:
Hey Juha,

thanks for the code snippet.
But the compiler still complains about OleVariant and TPropVariant:

--- Code: ---value := PropVar;

--- End code ---
Incompatible types: got "TPROPVARIANT" expected "OleVariant"

So it looks like there is no workaround for this at the moment.
The problem is that it's not so easy to access the 7z.dll because
in my opinion it's badly developed.
Normally you should easily access the functions in the 7z.dll.

I'm sure it is possible to make a portable lazarus package but it's
a hard task in my opinion ;)
Maybe I write an email to the developer of peazip and ask him how he
accessed 7z files.

But thanks for all of your suggestions 'til now :)

Ciao Ricco :)

JuhaManninen:

--- Quote from: Ricco on May 27, 2010, 01:50:25 pm ---So it looks like there is no workaround for this at the moment.
The problem is that it's not so easy to access the 7z.dll because
in my opinion it's badly developed.
Normally you should easily access the functions in the 7z.dll.

I'm sure it is possible to make a portable lazarus package but it's
a hard task in my opinion ;)
Maybe I write an email to the developer of peazip and ask him how he
accessed 7z files.

--- End quote ---

It seems that Peazip runs a command line 7z program. I was not able to compile  Peazip's source. Maybe it is for some older version of FPC or something.

7zip is ported. There is also 7z.so library available. It should be possible to make a pascal wrapper for the lib about like bzip2lib does.
http://wiki.lazarus.freepascal.org/bzip2lib

Juha

Navigation

[0] Message Index

[*] Previous page

Go to full version