Building Mht Files from URLs revisited

Is it possible to compile this into a dll, for use in vb6, or just convert the code?

Thanks