Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ MFC VC9.0 ActiveX VC
Hi,
 
I want to register control using manifest file in VS-2008.
 
In VS-2003 for same project attribute entries of OCX was added in manifest file(RES\AppName.exe.manifest) where ocx control file kept in debug folder and manifest file is inclued in resource file(RC file).
IDR_MANIFEST RT_MANIFEST "res\\AppName.exe.manifest"
After build of project which works fine for control(i.e. Dialog wich has ocx control able to display) .
 
Please explain if I do same steps for VS-2008 why it fails?
VS-2008 no longer support to register activex control using manifest?
If it support what are step to overcome from this problem?
Posted 6-Nov-11 19:57pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
you can simply register the activex by using DllRegisterServer().
or go to command prompt, and the type regsvr32 test.ocx. This will register the activex control..
 
Regards,
Satheesh
  Permalink  
Comments
Jagdish Gundeti at 7-Nov-11 5:39am
   
Thanks Satheesh for your solution. In subject I mentioned registration is done by manifest file.
The executable need to get installed at user side without any manual registration like regsvr32 tool or without keeping entries in VBX(in any script files) and also registry should not contain any information of OCX control entries because OCX are proprietary.
 
You may have question without keeping entry of OCX in registry how dll(ie OCX) get loaded?
For above solution considering VS-2003 live project these are my findings.
Activex kept in debug folder and it is build with manifest file which contains information of OCX.
 
But I am failing for VS-2008. I think there are new changes to manifest for new version of IDE's.
I hope I will get more response and solutions from cp.
Satheesh1546 at 7-Nov-11 6:00am
   
Hope this link will help you..
http://stackoverflow.com/questions/811490/what-are-the-alternatives-to-dll-registration-for-activex
Jagdish Gundeti at 13-Nov-11 9:50am
   
Thanks for help Satheesh. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 450
1 OriginalGriff 230
2 DamithSL 150
3 Dave Kreskowiak 110
4 Suvendu Shekhar Giri 110
0 OriginalGriff 7,740
1 DamithSL 5,644
2 Sergey Alexandrovich Kryukov 5,404
3 Maciej Los 5,011
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 7 Nov 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100