-
July 8th, 2009, 01:02 AM
#1
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.
-
July 8th, 2009, 03:13 AM
#2
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
-
July 8th, 2009, 03:41 AM
#3
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.
-
July 8th, 2009, 07:59 AM
#4
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
-
July 8th, 2009, 08:04 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|