[
  {
    "Id": "717257",
    "ThreadId": "284194",
    "Html": "<p>This is a pretty elementary question as I'm pretty new at this. I would like to use dotnetzip to unzip a file in my vb6 application. My hope is that by doing this I'll be able to deploy the app using ClickOnce. Right now I can deploy the app OK, but the dll I'm using (CGZipLibrary.dll) doesn't deploy correctly and after several days I decided to try a different tack.</p>\n<p>I've never tried to use a .NET dll with vb6. I've G'd around and found things like regasm, I need to build a table, etc. that I think are not what I need to do. I had hoped I could drop Ionic.Zip.Reduced.dll into my VB6 directory, register it with regsvr32, create a reference to it and use it. I think I'm missing something.</p>\n<p>Once I get this usable with VB6, how do I use it's methods? Sorry to be so newbie.</p>\n<p>&nbsp;</p>\n<p>-terry</p>",
    "PostedDate": "2011-12-26T12:58:41.073-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "717501",
    "ThreadId": "284194",
    "Html": "<p>Some progress.</p>\r\n<ol>\r\n<li>Used regasm to get a .tlb file</li>\r\n<li>Used GACUtil to register with the GAC</li>\r\n<li>From VB6 I referenced the .tlb file</li>\r\n<li>Object browser in VB6 sees the dll now.</li>\r\n</ol>\r\n<p>Remaining problem is that I can't instantate it.</p>\r\n<ol>\r\n<li>dim theObj as object</li>\r\n<li>Set theObj = CreateObject(\"Ionic_Zip_Reduced\")&nbsp; --&gt; the error, \"ActiveX component can't create object\"</li>\r\n</ol>\r\n<p>But if I do this:</p>\r\n<ol>\r\n<li>dim theObj as object</li>\r\n<li>theObj = New Ionic_Zip_Reduced&nbsp;&nbsp;&nbsp; --&gt; the error \"Expected user-defined type, not project\"</li>\r\n</ol>\r\n<p>Is there some reference I need? Here is the list of my references:</p>\r\n<ul>\r\n<li>Visual Basic for Applications</li>\r\n<li>VIsual Basic runtime objects and procedures</li>\r\n<li>Visual Basic objects and procedures</li>\r\n<li>a library for handling zip archives (this is the Ionic_Zip_Reduced dll)</li>\r\n<li>Microsoft ActiveX Data Objects 6.0 Library</li>\r\n</ul>",
    "PostedDate": "2011-12-27T09:25:57.71-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "718436",
    "ThreadId": "284194",
    "Html": "<p>Check the documentation for DotNetZip.</p>\r\n<ul>\r\n<li>There's a way to use the library within COM environments. </li>\r\n<li>There are example code snips in the doc.</li>\r\n<li>The COM object in question is not Ionic_Zip_Reduced. </li>\r\n<li>There is even an installer package you can use to install the required runtime (does the requisite regasm, etc)</li>\r\n</ul>\r\n<p>To be honest I cannot recall now whether the reduced library has the COM goodies.&nbsp; Maybe.&nbsp; But the main library is the one that I expect people to use on VB6 and COM projects.&nbsp; It is the one that gets installed with the runtime installer.</p>\r\n<p>Read the documentation.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-12-29T13:40:32.247-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]