Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am writing a very complicated web

Status
Not open for further replies.

StealthMonkey

Programmer
Sep 30, 2003
2
US
I am writing a very complicated webapp for a company. One thing that it includes is ActiveX. I use the Microsoft ListView Control 6.0 (SP4) (CLSID:BDD1F04B-858B-11D1-B16A-00C0F0283628). Before I explain the problem, here is the code I am using:

Code:
<object name=&quot;titlelist&quot; id=&quot;listbox&quot;
classid=&quot;CLSID:BDD1F04B-858B-11D1-B16A-00C0F0283628&quot;
codebase=&quot;[URL unfurl="true"]http://activex.microsoft.com/controls/vb6/MSCOMCTL.CAB&quot;[/URL]
width=&quot;400&quot; height=&quot;195&quot;>
</object>
And then I use a bunch of VBScript to populate the control. Everything worked great on my development XP machine.

Later on, I booted up Virtual PC to do some testing. I booted up a clean install of XP and the control wouldn't load. It would come up asking if I wanted to download the Microsoft Common Controls and I would click yes. It would install but the control would just have the little icon with the colored shapes on it in the top-left corner of the control.

Confused I booted up W2K (clean install), same problem. Then I booted up 98se (also a clean install), same prompt to download control, but after clicking yes, bam it works perfectly. That is the puzzling part.

So to recap, it works on my XP Pro system (with Visual Studio installed), on a clean install of 98se, but not on clean installs of W2K or XP. The problem isn't IE security because I tried it with everything on the lowest. I've tried searching the groups, net, etc and can't find anything that helps.

Starting to run out of options I compared the mscomctl.ocx file in my XP sys32 dir with the one in the sys32 dir on my XP Virtual PC, same. Installed a registry program on both and compared any referenced to the CLSID, all the same.

Please help me out!!! If there is another group I should be posting in let me know because I couldn’t find one specifically for ActiveX. Thanks in advance.
 
Well I got we've solved in case any one else has this problem. You have to include this code also:

<object classid=\&quot;clsid:5220CB21-C88D-11cf-B347-00AA00A28331\&quot;>
<param name=\&quot;LPKPath\&quot; value=\&quot;../listview.lpk\&quot;>
</object>

Don't ask me why but when you put that code there and place the file in the correct directory, bam. *shrug*
 
Hi,

I've another problem. I can't use this:
#####
listview1.SelectedItem.EnsureVisible;
#####
You now where is the error? Please is important...

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top