On 4/26/05, Rob Kennedy <[EMAIL PROTECTED]> wrote: > I can't find that DLL. Where does it come from? I find 7za.exe and > 7-zip.dll. The latter is a COM DLL. You can register it with > regsvr32.exe. You can then create an instance of whatever object the DLL > exports by calling CreateComObject, from the ComObj unit. To call that > function, you need to know the GUID of the object.
Thanks, now it's clear for me how these COM stuffs works... After registering, all the interface guid's become registered on the system and everything else (finding the interface implementation given the GUID and calling the related code) is responsability of the SO, ok? Obs: I saw the GUID's on the dll source code, I was just curious if there was an easy way of linking it to my app, besides copying and translating the interfaces :] > Where does the passage you quoted come from? Here [http://www.7-zip.org/download.html], you can find this file "7z Library (7za.dll)" [http://prdownloads.sourceforge.net/sevenzip/7za_dll_312.zip], it's inside the readme... > That's what the type-library importer is supposed to do. If there isn't > a type library, then you're out of luck. You'll just have to convert the > C++ interface declarations to Delphi. That's what I was going to do, but I dont have time to discover how everything should be converted and then test if everything is ok :) Hmmm, is it possible to embed the type library inside the COM library? I'm asking this because I can import the Windows Media Player ocx into Delphi... Or the .tlb file resides in another folder?! Just curious (i bet in the first one hehe) =] > You'll first have to *find* the > C++ declarations, though. The author of the code seems to have a rather > loose definition of "SDK." I found them on the source code, but it inherits from other interfaces and I'll have to look where is everything... And I agree, there isn't any clear documentation, maybe because wherever you look you can see: "If you want to use LZMA code, you can ask consultations, custom code programming and required developer licenses from page for support: Send message to LZMA developer" "Please register 7-Zip to support further development." Anyway, it's open source :) > I suspect that code isn't going to be much help. :*( > What you need to find > is a concise example of how to use the 7-zip DLL, in whatever language. That open-source installer, NSIS, uses this library, I'll try to find where they use this code... I just hope the compression process is grouped in a simple method and not related with a lot of other things, or I'll take more time :) There must be examples on the SDK too... I really must take a look. -- "ME ALIMENTE [http://br-linux.org/noticias/002750.html] hehe" "Invente, Tente!!! Fa�a um c�digo eficiente" (Jonas Raoni haha) Jonas Raoni Soares Silva --------------------------- Desenvolvedor de aplica��es jonasraoni at gmail dot com http://www.joninhas.ath.cx:666 ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

