Jonas Raoni Soares Silva wrote: > Does someone know a delphi porting to it or at least had any > experience embedding the dll provided by the author? > > "7za.dll works via COM interfaces > But 7za.dll doesn't use standard COM interfaces for creating objects."
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. Where does the passage you quoted come from? > I tried to import as an Activex, but no success, so the author is right haha > :] > > Is there any delphi tool or application able to read a dll and build > the interfaces for me? This work is veryyyy dirty :( 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. You'll first have to *find* the C++ declarations, though. The author of the code seems to have a rather loose definition of "SDK." > Then I'll just need to call the dll constructor and assign the result > pointer to my delphi interface, like this article says: > http://community.borland.com/article/print/0,1772,20165,00.html 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. -- Rob ----------------------------------------------------- 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/

