Author | Topic: Making a component registry free | |
---|---|---|
Mike Wilcock | Making a component registry free on Wed, 06 Oct 2010 19:12:38 +0100 Hi, I have created a sample program to test an ActiveX component from Exontrol called ExListBar. It creates a kind of Outlook style toolbar and works very well. Next thing that I would like to try is making it run without registering the ActiveX control using RegSvr32... I have read the document at http://msdn.microsoft.com/en-us/library/ms973913.aspx which is referred to in an earlier post and have created an xml file as per the example and linked it into my .exe, but I'm really not sure what information I should be including in the xml document. I realize that the information contained in the example xml file at MSDN is just a placeholder, so I have used OleView to look at the AvtiveX component, but am still unsure of what information I need to include in order to get it working. Does anybody have an example of a working xml file that they could post here to give me some pointers on where to start? Any help would be appreciated. Mike | |
Kiron Joseph | Re: Making a component registry free on Thu, 07 Oct 2010 11:23:38 +0530 Mike, Can you post image of outlook style toolbar created using ExListBar ? Is it working comfortably with xBase++ ? Regards Kiron On Wed, 06 Oct 2010 19:12:38 +0100, "Mike Wilcock" <mike<nospam>@email.co.uk> wrote: >Hi, > >I have created a sample program to test an ActiveX component from Exontrol >called ExListBar. It creates a kind of Outlook style toolbar and works very >well. Next thing that I would like to try is making it run without >registering the ActiveX control using RegSvr32... > >I have read the document at >http://msdn.microsoft.com/en-us/library/ms973913.aspx which is referred to >in an earlier post and have created an xml file as per the example and >linked it into my .exe, but I'm really not sure what information I should be >including in the xml document. I realize that the information contained in >the example xml file at MSDN is just a placeholder, so I have used OleView >to look at the AvtiveX component, but am still unsure of what information I >need to include in order to get it working. > >Does anybody have an example of a working xml file that they could post here >to give me some pointers on where to start? > >Any help would be appreciated. > > > >Mike > > | |
Mike Wilcock | Re: Making a component registry free on Thu, 07 Oct 2010 12:27:35 +0100 Hi Kiron, Here's the image as requested. I only started working on this yesterday and this is my first foray into ActiveX, but so far it works well. At the moment in my applications I have been using an xbpTreeView to display the menu structure, but have found it to be less than satisfactory. This would appear to be a much better option if it works Ok. You will see that I am using the demo version and have not yet got as far as adding images, colours etc. to each group or set of items. I'm really just testing it to see if it works and so far so good I really would like to get it working registry free though before taking it any further as I don't want to have to register the dll on each client workstation, so this is a big issue for me. Also Rudolf asked for some code in his post. As you can see it was fairly simple to get working... oControl := XbpActiveXControl():new( oForm:drawingArea ) //oControl:CLSID := "Exontrol.ListBar" oControl:CLSID := "{41387A8B-6293-46CE-B9D8-55F49AE0DA60}" Create ActiveX control. BEGIN/END SEQUENCE is used to handle eventual errors, eg. due to a missing component. bOldError := ErrorBlock( {|e| Break(e)} ) BEGIN SEQUENCE oControl:create( , , { 0, 0 }, { oForm:drawingArea:currentSize() [ 1 ], oForm:drawingArea:currentSize() [ 2 ] } ) RECOVER USING oError MsgBox( "Error creating ActiveX control." ) QUIT END SEQUENCE ErrorBlock( bOldError ) //oControl:selectGroup := { | oOldGroup, oNewGroup | MsgBox( oNewGroup:caption ) } oControl:selectItem := { | oOldItem, oNewItem | MsgBox( oNewItem:caption ) } oGroup1 := oControl:groups:Add( "Group One" ) oGroup1:addItem( "Item 1" ) oGroup1:addItem( "Item 2" ) Etc.... Regards, Mike "Kiron Joseph" <kiron@datadevices.com> wrote in message news:gvnqa6lk95torms5psqle0jkj8a13lcr2v@4ax.com... > Mike, > > Can you post image of outlook style toolbar created using ExListBar ? > > Is it working comfortably with xBase++ ? > > Regards > Kiron > > On Wed, 06 Oct 2010 19:12:38 +0100, "Mike Wilcock" > <mike<nospam>@email.co.uk> wrote: > >>Hi, >> >>I have created a sample program to test an ActiveX component from Exontrol >>called ExListBar. It creates a kind of Outlook style toolbar and works >>very >>well. Next thing that I would like to try is making it run without >>registering the ActiveX control using RegSvr32... >> >>I have read the document at >>http://msdn.microsoft.com/en-us/library/ms973913.aspx which is referred to >>in an earlier post and have created an xml file as per the example and >>linked it into my .exe, but I'm really not sure what information I should >>be >>including in the xml document. I realize that the information contained >>in >>the example xml file at MSDN is just a placeholder, so I have used OleView >>to look at the AvtiveX component, but am still unsure of what information >>I >>need to include in order to get it working. >> >>Does anybody have an example of a working xml file that they could post >>here >>to give me some pointers on where to start? >> >>Any help would be appreciated. >> >> >> >>Mike >> >> ExListBar.jpg | |
Kiron Joseph | Re: Making a component registry free on Thu, 07 Oct 2010 17:33:45 +0530 Thanks Mike I also want to try this. Regards Kiron On Thu, 7 Oct 2010 12:27:35 +0100, "Mike Wilcock" <mike<nospam>@email.co.uk> wrote: >Hi Kiron, > >Here's the image as requested. I only started working on this yesterday and >this is my first foray into ActiveX, but so far it works well. At the >moment in my applications I have been using an xbpTreeView to display the >menu structure, but have found it to be less than satisfactory. This would >appear to be a much better option if it works Ok. > >You will see that I am using the demo version and have not yet got as far as >adding images, colours etc. to each group or set of items. I'm really just >testing it to see if it works and so far so good I really would like to >get it working registry free though before taking it any further as I don't >want to have to register the dll on each client workstation, so this is a >big issue for me. > >Also Rudolf asked for some code in his post. As you can see it was fairly >simple to get working... > > oControl := XbpActiveXControl():new( oForm:drawingArea ) > > //oControl:CLSID := "Exontrol.ListBar" > oControl:CLSID := "{41387A8B-6293-46CE-B9D8-55F49AE0DA60}" > > Create ActiveX control. BEGIN/END SEQUENCE is used to handle eventual >errors, eg. due to a missing component. > bOldError := ErrorBlock( {|e| Break(e)} ) > BEGIN SEQUENCE > oControl:create( , , { 0, 0 }, { oForm:drawingArea:currentSize() [ 1 ], >oForm:drawingArea:currentSize() [ 2 ] } ) > RECOVER USING oError > MsgBox( "Error creating ActiveX control." ) > QUIT > END SEQUENCE > ErrorBlock( bOldError ) > > //oControl:selectGroup := { | oOldGroup, oNewGroup | MsgBox( >oNewGroup:caption ) } > oControl:selectItem := { | oOldItem, oNewItem | MsgBox( >oNewItem:caption ) } > > oGroup1 := oControl:groups:Add( "Group One" ) > > oGroup1:addItem( "Item 1" ) > oGroup1:addItem( "Item 2" ) > > Etc.... > >Regards, > > >Mike > >"Kiron Joseph" <kiron@datadevices.com> wrote in message >news:gvnqa6lk95torms5psqle0jkj8a13lcr2v@4ax.com... >> Mike, >> >> Can you post image of outlook style toolbar created using ExListBar ? >> >> Is it working comfortably with xBase++ ? >> >> Regards >> Kiron >> >> On Wed, 06 Oct 2010 19:12:38 +0100, "Mike Wilcock" >> <mike<nospam>@email.co.uk> wrote: >> >>>Hi, >>> >>>I have created a sample program to test an ActiveX component from Exontrol >>>called ExListBar. It creates a kind of Outlook style toolbar and works >>>very >>>well. Next thing that I would like to try is making it run without >>>registering the ActiveX control using RegSvr32... >>> >>>I have read the document at >>>http://msdn.microsoft.com/en-us/library/ms973913.aspx which is referred to >>>in an earlier post and have created an xml file as per the example and >>>linked it into my .exe, but I'm really not sure what information I should >>>be >>>including in the xml document. I realize that the information contained >>>in >>>the example xml file at MSDN is just a placeholder, so I have used OleView >>>to look at the AvtiveX component, but am still unsure of what information >>>I >>>need to include in order to get it working. >>> >>>Does anybody have an example of a working xml file that they could post >>>here >>>to give me some pointers on where to start? >>> >>>Any help would be appreciated. >>> >>> >>> >>>Mike >>> >>> | |
Rudolf Reinthaler | Re: Making a component registry free on Thu, 07 Oct 2010 09:23:37 +0200 Hello Mike, I am also interested on some code to see how complicated it is to implement, looks interesting. regards Rudolf On 06.10.2010 20:12, Mike Wilcock <mike wrote: > Hi, > > I have created a sample program to test an ActiveX component from > Exontrol called ExListBar. It creates a kind of Outlook style toolbar > and works very well. Next thing that I would like to try is making it > run without registering the ActiveX control using RegSvr32... > > I have read the document at > http://msdn.microsoft.com/en-us/library/ms973913.aspx which is referred > to in an earlier post and have created an xml file as per the example > and linked it into my .exe, but I'm really not sure what information I > should be including in the xml document. I realize that the information > contained in the example xml file at MSDN is just a placeholder, so I > have used OleView to look at the AvtiveX component, but am still unsure > of what information I need to include in order to get it working. > > Does anybody have an example of a working xml file that they could post > here to give me some pointers on where to start? > > Any help would be appreciated. > > > > Mike > > > | |
AUGE_OHR | Re: Making a component registry free on Thu, 07 Oct 2010 19:01:08 +0200 hi, > I have created a sample program to test an ActiveX component from Exontrol > called ExListBar. It creates a kind of Outlook style toolbar and works > very well. i use Codejock "Shortuct Bar" as activeX http://www.codejock.com/products/shortcutbar/?platform=com >Next thing that I would like to try is making it run without registering >the ActiveX control using RegSvr32... > > I have read the document at > http://msdn.microsoft.com/en-us/library/ms973913.aspx not shure how it should work with Xbase++ ... as i understand it is for STA (Single-Threaded Apartment), but if you like to use Xbase++ you must "marshaling of COM calls" greetings by OHR Jimmy | |
Mark Sergent | Re: Making a component registry free on Tue, 12 Oct 2010 10:12:52 -0700 On Wed, 06 Oct 2010 19:12:38 +0100, Mike Wilcock wrote: > Hi, > > I have created a sample program to test an ActiveX component from Exontrol > called ExListBar. It creates a kind of Outlook style toolbar and works very > well. Next thing that I would like to try is making it run without > registering the ActiveX control using RegSvr32... > > I have read the document at > http://msdn.microsoft.com/en-us/library/ms973913.aspx which is referred to > in an earlier post and have created an xml file as per the example and > linked it into my .exe, but I'm really not sure what information I should be > including in the xml document. I realize that the information contained in > the example xml file at MSDN is just a placeholder, so I have used OleView > to look at the AvtiveX component, but am still unsure of what information I > need to include in order to get it working. > > Does anybody have an example of a working xml file that they could post here > to give me some pointers on where to start? > > Any help would be appreciated. > > > > Mike > Hi Mike, I have attached the working manifest from our project that is running about a dozen controls. I was able to get it working with both the controls and the theme manifesting combined. I have also attached a pdf with instructions from one of of the control developers that i used a a reference to get it working. Mark Sergent InnSource Solutions Inc. mark@innsourcesolutions.com innvite.exe.manifest Regfree Com for ActiveX Controls.pdf | |
Mike Wilcock | Re: Making a component registry free on Thu, 14 Oct 2010 16:46:46 +0100 Hi Mark, Thanks for this. I'll go through it over the next few days. Regards, Mike "Mark Sergent" wrote in message news:1ummx2j0tmthm$.fzvmwcy0kgwa$.dlg@40tude.net... > On Wed, 06 Oct 2010 19:12:38 +0100, Mike Wilcock wrote: > >> Hi, >> >> I have created a sample program to test an ActiveX component from >> Exontrol >> called ExListBar. It creates a kind of Outlook style toolbar and works >> very >> well. Next thing that I would like to try is making it run without >> registering the ActiveX control using RegSvr32... >> >> I have read the document at >> http://msdn.microsoft.com/en-us/library/ms973913.aspx which is referred >> to >> in an earlier post and have created an xml file as per the example and >> linked it into my .exe, but I'm really not sure what information I should >> be >> including in the xml document. I realize that the information contained >> in >> the example xml file at MSDN is just a placeholder, so I have used >> OleView >> to look at the AvtiveX component, but am still unsure of what information >> I >> need to include in order to get it working. >> >> Does anybody have an example of a working xml file that they could post >> here >> to give me some pointers on where to start? >> >> Any help would be appreciated. >> >> >> >> Mike >> > > Hi Mike, > > I have attached the working manifest from our project that is running > about > a dozen controls. > > I was able to get it working with both the controls and the theme > manifesting combined. > > I have also attached a pdf with instructions from one of of the control > developers that i used a a reference to get it working. > > -- > Mark Sergent > InnSource Solutions Inc. > mark@innsourcesolutions.com |