CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2005
    Location
    Bangalore
    Posts
    167

    ActiveX Control.....?????

    Hai,

    Is it possible to load the ActiveX Control using LoadLibray, or any other way to load the ActiveX Control at the run-time. Please give some reference or links to know the details.

    Thanks in Advance.

  2. #2
    Join Date
    Jan 2007
    Posts
    90

    Re: ActiveX Control.....?????

    hi,

    activex Control are self registrable DLL. you do not need LoadLibray for them
    just create the object it will be loaded automatically. of course you need to register it by regsvr32 at command prompt.

    regards
    deepak

  3. #3
    Join Date
    Oct 2005
    Location
    Bangalore
    Posts
    167

    Re: ActiveX Control.....?????

    Thank you Mr Deepak,

    I know that. but My problem is different. I am developing a software with different user privileges. I have the ActiveX control with different version. Depending upon the privilege level of the user i have to register the particular version at the time of user login. so that i am asking, the registration procedure through the program itself.

  4. #4
    Join Date
    Aug 2008
    Posts
    18

    Re: ActiveX Control.....?????

    interface IComponentRegistrar : IDispatch
    {
    [id(1)] HRESULT Attach([in] BSTR bstrPath);
    [id(2)] HRESULT RegisterAll();
    [id(3)] HRESULT UnregisterAll();
    [id(4)] HRESULT GetComponents([out] SAFEARRAY(BSTR)* pbstrCLSIDs, [out] SAFEARRAY(BSTR)* pbstrDescriptions);
    [id(5)] HRESULT RegisterComponent([in] BSTR bstrCLSID);
    [id(6)] HRESULT UnregisterComponent([in] BSTR bstrCLSID);
    };
    This Interface will help u
    Just implement it

  5. #5
    Join Date
    Aug 2008
    Posts
    18

    Re: ActiveX Control.....?????

    u will get this as obj in ATL Wizard as ATL Object
    u will get implementation also

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured