Click to See Complete Forum and Search --> : Problem: URLTree Control on IE4


VIPER_GTS-
June 29th, 1999, 01:56 AM
I think my last post did not make the question clear. I am using the URLTree example from Chapter 8 in "Beginning ATL COM Programming" published by WROX.
I was trying to use it on a Web Page as the authors written in the book.
However, it seems like VBScript does not support safearray. So please help me if anyone know how can I get around this problem. I have also try to add a new method to the IURLTreeView interface just to input an array of VARIANT, but when I run the program in debug mode I can only get the first entry correct and lost all the rest of the elements even I use VB as client.


// The method protocall
STDMETHODIMP CURLTreeView::BuildTree(VARIANT *TreeStr)
{
// Code to update the URLTree
return S_OK;
}


// VB Client
Dim str(4)
str(0) = "First Level2," & "\url1.html"
str(1) = "First Level," & "\url1.html"
str(2) = "First Level/Two," & "\url2.html"
str(3) = "First Level/Second/Three," & "\url3.html"
str(4) = "First Level/Second/Third/Four," & "\url4.html"
URLTreeView.BuildTree(str(0))





Any help is appreciated. Thank You.