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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reg-Free-COM not working with TreeView and DatePicker

Status
Not open for further replies.

wgcs

Programmer
Mar 31, 2002
2,056
EC
To avoid problems with registering MSCOMCTL.OCX and MSCOMCT2.OCX, I want to use "Reg Free COM" to deploy these files.
( My notes on Reg-Free-COM: )

I have created the proper .MANIFEST file, and embedded it in my .EXE
It seems to work correctly:
1) Vista doesn't complain about the manifest (it did complain when I had errors in the manifest)
2) the Tree displays, and the DatePicker displays when they should.
3) My code fills the Tree with all the stuff that should be in it, and the date in the DatePicker is correctly set by code.

However, they both seem completely unresponsive to the mouse... click on them all I want, and they don't do anything!

It's infuriating! I've read reams of pages of info, and tried everything I can imagine, but I just can't get them to work.

Does anyone here who is more knowledgeable about the internals of ActiveX controls have any idea what I should try?

Here is the manifest I'm using:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity name="MYPROG.EXE" processorArchitecture="X86" type="win32" version="15.00.38.0" />
  
  <file name="mscomctl.ocx">
    <typelib tlbid="{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}" version="2.0" flags="CONTROL,HASDISKIMAGE" helpdir="" />
    <comClass clsid="{1EFB6596-857C-11D1-B16A-00C0F0283628}" tlbid="{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComctlLib.TabStrip" description="Microsoft TabStrip Control">
      <progid>MSComctlLib.TabStrip.2</progid>
    </comClass>
    <comClass clsid="{66833FE6-8583-11D1-B16A-00C0F0283628}" tlbid="{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComctlLib.Toolbar" description="Microsoft Toolbar Control">
      <progid>MSComctlLib.Toolbar.2</progid>
    </comClass>
    <comClass clsid="{8E3867A3-8586-11D1-B16A-00C0F0283628}" tlbid="{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComctlLib.SBarCtrl" description="Microsoft StatusBar Control">
      <progid>MSComctlLib.SBarCtrl.2</progid>
    </comClass>
    <comClass clsid="{35053A22-8589-11D1-B16A-00C0F0283628}" tlbid="{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComctlLib.ProgCtrl" description="Microsoft ProgressBar Control">
      <progid>MSComctlLib.ProgCtrl.2</progid>
    </comClass>
    <comClass clsid="{C74190B6-8589-11D1-B16A-00C0F0283628}" 
              tlbid="{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}" 
              threadingModel="Apartment" 
              progid="MSComctlLib.TreeCtrl" 
              description="Displays a hierarchical list of Node objects, each of which consists of a label and an optional bitmap."
              miscStatus="recomposeonresize,cantlinkinside,insideout,activatewhenvisible,setclientsitefirst"
              >
      <progid>MSComctlLib.TreeCtrl.2</progid>
    </comClass>
    <comClass clsid="{BDD1F04B-858B-11D1-B16A-00C0F0283628}" tlbid="{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComctlLib.ListViewCtrl" description="Displays a collection of ListItems such as files or folders.">
      <progid>MSComctlLib.ListViewCtrl.2</progid>
    </comClass>
    <comClass clsid="{2C247F23-8591-11D1-B16A-00C0F0283628}" tlbid="{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComctlLib.ImageListCtrl" description="Contains a collection of ListImage objects, each of which can be referred to by its index or key">
      <progid>MSComctlLib.ImageListCtrl.2</progid>
    </comClass>
    <comClass clsid="{F08DF954-8592-11D1-B16A-00C0F0283628}" tlbid="{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComctlLib.Slider" description="A calibrated control with a slider for setting or selecting values.">
      <progid>MSComctlLib.Slider.2</progid>
    </comClass>
    <comClass clsid="{DD9DA666-8594-11D1-B16A-00C0F0283628}" tlbid="{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComctlLib.ImageComboCtl" description="Microsoft ImageComboBox Control">
      <progid>MSComctlLib.ImageComboCtl.2</progid>
    </comClass>
  </file>
  <file name="MSCOMCT2.OCX">
    <typelib tlbid="{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}" version="2.0" flags="CONTROL,HASDISKIMAGE" helpdir="" />
    <comClass clsid="{B09DE715-87C1-11D1-8BE3-0000F8754DA1}" tlbid="{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComCtl2.Animation" description="Animation Control">
      <progid>MSComCtl2.Animation.2</progid>
    </comClass>
    <comClass clsid="{603C7E80-87C2-11D1-8BE3-0000F8754DA1}" tlbid="{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComCtl2.UpDown" description="UpDown Control">
      <progid>MSComCtl2.UpDown.2</progid>
    </comClass>
    <comClass clsid="{232E456A-87C3-11D1-8BE3-0000F8754DA1}" 
              tlbid="{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComCtl2.MonthView" description="Microsoft MonthView Control" miscStatus="recomposeonresize,cantlinkinside,insideout,activatewhenvisible,setclientsitefirst">
      <progid>MSComCtl2.MonthView.2</progid>
    </comClass>
    <comClass clsid="{20DD1B9E-87C4-11D1-8BE3-0000F8754DA1}" 
              tlbid="{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}" 
              threadingModel="Apartment" 
              progid="MSComCtl2.DTPicker" 
              description="Microsoft Date and Time Picker Control" 
              miscStatus="recomposeonresize,cantlinkinside,insideout,activatewhenvisible,setclientsitefirst"
              >
      <progid>MSComCtl2.DTPicker.2</progid>
    </comClass>
    <comClass clsid="{FE38753A-44A3-11D1-B5B7-0000C09000C4}" tlbid="{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}" threadingModel="Apartment" progid="MSComCtl2.FlatScrollBar" description="Microsoft Flat Scrollbar Control">
      <progid>MSComCtl2.FlatScrollBar.2</progid>
    </comClass>
  </file>
  
</assembly>

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top