|
From: Lucress Carol on 28 May 2008 09:56 Hi everyone, I've read that to register a new control one needs the following files:NameOfTheControl.hlp and NameOfTheControl.ocx.Let's suppose I've got the two files already.In which directory should these files be located? and what about the REGSVR32 utility? how can I use it in order to register the new control in VC++ 6.0 and VC++ 2008?Does someone have an idea? Thank you Lucress
From: Alex Blekhman on 28 May 2008 10:54 "Lucress Carol" wrote: > I've read that to register a new control one needs the following > files: NameOfTheControl.hlp and NameOfTheControl.ocx. Strictly speaking, .HLP file is not necessary, but it's nice to provide a manual with ActiveX control. > Let's suppose I've got the two files already. In which directory > should these files be > located? and what about the REGSVR32 utility? You can put them wherever you want. It doesn't matter. Since system folders aren't writable anymore starting from Windows 2000, the most appropriate place is usually your target directory under "Program Files". Run REGSVR32 at command prompt to see its command-line switches. basically, you just call it with your control filename: REGSVR32 NameOfTheControl.ocx > how can I use it in order to register the new control in VC++ > 6.0 and VC++ 2008? Does someone have an idea? You can put the above command in post build step in VC++ IDE. HTH Alex
From: Lucress Carol on 28 May 2008 11:41 On 28 Mai, 16:54, "Alex Blekhman" <tkfx.REM...(a)yahoo.com> wrote: > "Lucress Carol" wrote: > > I've read that to register a new control one needs the following > > files: NameOfTheControl.hlp and NameOfTheControl.ocx. > > Strictly speaking, .HLP file is not necessary, but it's nice to > provide a manual with ActiveX control. > > > Let's suppose I've got the two files already. In which directory > > should these files be > > located? and what about the REGSVR32 utility? > > You can put them wherever you want. It doesn't matter. Since > system folders aren't writable anymore starting from Windows 2000, > the most appropriate place is usually your target directory under > "Program Files". > > Run REGSVR32 at command prompt to see its command-line switches. > basically, you just call it with your control filename: > > REGSVR32 NameOfTheControl.ocx > > > how can I use it in order to register the new control in VC++ > > 6.0 and VC++ 2008? Does someone have an idea? > > You can put the above command in post build step in VC++ IDE. > > HTH > Alex Thank you for your help. Lucress
|
Pages: 1 Prev: Visual C++ 2005 Redistributable Package Next: Attaching a control to a CDialog |