Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Still problem with a class and function Pin
nah133713-Mar-10 0:02
nah133713-Mar-10 0:02 
GeneralRe: Still problem with a class and function Pin
Richard MacCutchan13-Mar-10 6:50
mveRichard MacCutchan13-Mar-10 6:50 
QuestionRe: Still problem with a class and function Pin
David Crow13-Mar-10 5:23
David Crow13-Mar-10 5:23 
AnswerRe: Still problem with a class and function Pin
nah133713-Mar-10 8:44
nah133713-Mar-10 8:44 
QuestionHow to check if flash Active x is already installed ? Pin
rahul.kulshreshtha12-Mar-10 20:45
rahul.kulshreshtha12-Mar-10 20:45 
AnswerRe: How to check if flash Active x is already installed ? Pin
Shivanand Gupta13-Mar-10 0:41
Shivanand Gupta13-Mar-10 0:41 
GeneralRe: How to check if flash Active x is already installed ? Pin
rahul.kulshreshtha13-Mar-10 1:00
rahul.kulshreshtha13-Mar-10 1:00 
GeneralRe: How to check if flash Active x is already installed ? Pin
Shivanand Gupta14-Mar-10 20:20
Shivanand Gupta14-Mar-10 20:20 
Hi I give some code it return all list of installed Active X control. You can put condition what u want to check ActiveX control.


//Initialise COM libraries
CoInitialize (NULL);

//The Component Category Manager implemented by System implements 
//this interface
ICatInformation *pCatInfo=NULL;

//Create an instance of standard Component Category Manager
HRESULT hr=CoCreateInstance (CLSID_StdComponentCategoriesMgr ,
                             NULL,
                             CLSCTX_INPROC_SERVER,
                             IID_ICatInformation ,
                             (void **)&pCatInfo);

//Increase ref count on interface
pCatInfo->AddRef ();

//IEnumGUID interface provides enumerator for enumerating through 
//the collection of COM objects
IEnumGUID *pEnumGUID=NULL;

//We are intersted in finding out only controls so put CATID_Control 
//in the array
CATID pcatidImpl[1];
CATID pcatidReqd[1];
pcatidImpl[0]=CATID_Control;

//Now enumerate the classes i.e. COM objects of this type.
pCatInfo->EnumClassesOfCategories (1,
                                   pcatidImpl,
                                   0,
                                   pcatidReqd ,
                                   &pEnumGUID);

//Enumerate as long as you get S_OK
CLSID clsid;

while( (hr= pEnumGUID->Next( 1, &clsid, NULL ))==S_OK )
{
 BSTR bstrClassName;   //Get the information of class

 //This is what MSDN says about the parameters
 /*-----------------------------------------------
 USERCLASSTYPE_FULL     The full type name of the class. 
 USERCLASSTYPE_SHORT    A short name (maximum of 15 characters) that 
                        is used for popup menus and the Links dialog 
                        box. 
 USERCLASSTYPE_APPNAME  The name of the application servicing the class 
                        and is used in the Result text in dialog boxes. 
 -----------------------------------------------*/
 OleRegGetUserType (clsid,USERCLASSTYPE_FULL,&bstrClassName);
 CString strControlName(bstrClassName);
 //Add string in our listbox
 m_list1.AddString (strControlName);
}          

//we are done so now release the interface ptr
pCatInfo->Release ();

CoUninitialize ();

GeneralRe: How to check if flash Active x is already installed ? Pin
rahul.kulshreshtha15-Mar-10 20:29
rahul.kulshreshtha15-Mar-10 20:29 
GeneralRe: How to check if flash Active x is already installed ? Pin
Shivanand Gupta14-Mar-10 20:24
Shivanand Gupta14-Mar-10 20:24 
AnswerRe: How to check if flash Active x is already installed ? Pin
«_Superman_»13-Mar-10 17:15
professional«_Superman_»13-Mar-10 17:15 
GeneralRe: How to check if flash Active x is already installed ? Pin
rahul.kulshreshtha14-Mar-10 20:07
rahul.kulshreshtha14-Mar-10 20:07 
QuestionHow could I change the width of a CMFCRibbonButton or CMFCRibbonLabel Pin
A&Ms12-Mar-10 19:15
A&Ms12-Mar-10 19:15 
Questionsocket programming Pin
trioum12-Mar-10 18:10
trioum12-Mar-10 18:10 
AnswerRe: socket programming Pin
Rajesh R Subramanian12-Mar-10 19:24
professionalRajesh R Subramanian12-Mar-10 19:24 
AnswerRe: socket programming Pin
«_Superman_»13-Mar-10 17:17
professional«_Superman_»13-Mar-10 17:17 
QuestionChanging Edit box colour on button click Pin
learningvisualc12-Mar-10 17:13
learningvisualc12-Mar-10 17:13 
AnswerRe: Changing Edit box colour on button click Pin
R@jeev K R12-Mar-10 19:02
R@jeev K R12-Mar-10 19:02 
AnswerRe: Changing Edit box colour on button click Pin
«_Superman_»13-Mar-10 17:21
professional«_Superman_»13-Mar-10 17:21 
QuestionSHIFT+F3 Pin
johnalek12-Mar-10 12:19
johnalek12-Mar-10 12:19 
AnswerRe: SHIFT+F3 Pin
Gwenio12-Mar-10 12:52
Gwenio12-Mar-10 12:52 
AnswerRe: SHIFT+F3 Pin
Rajesh R Subramanian12-Mar-10 18:38
professionalRajesh R Subramanian12-Mar-10 18:38 
GeneralRe: SHIFT+F3 Pin
Code-o-mat12-Mar-10 23:07
Code-o-mat12-Mar-10 23:07 
GeneralRe: SHIFT+F3 Pin
Rajesh R Subramanian13-Mar-10 3:32
professionalRajesh R Subramanian13-Mar-10 3:32 
GeneralRe: SHIFT+F3 Pin
Code-o-mat13-Mar-10 5:58
Code-o-mat13-Mar-10 5:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.