I actually need the C++ function cobj()

I have a variant / string that I need to conver into an object

"WebBrowser1.Document.all"

into

WebBrowser1.Document.all

so I can get the length


WebBrowser1.Document.all.length