This project has moved and is read-only. For the latest updates, please go here.

Using HtmlAgilityPack with VB6/COM

Topics: Developer Forum, User Forum
Sep 5, 2011 at 11:16 PM

I know people will think it's crazy, but I'd like to use HAP with an existing VB6 project. I've gone through the process of opening a VS 2010 command prompt, and executing

tlbexp HtmlAgilityPack.dll /out:HtmlAgilityPack.tlb

regasm /tlb:HtmlAgilityPack.tlb HtmlAgilityPack.dll

gacutil /i HtmlAgilityPack.dll

However, while it's possible to set a reference to tHAP in VB6, nothing is actually exposed. Has anyone used HAP with COM, and if so, what steps are required? Thanks,