lobraco
asked on
C++ DLL
Can one make an activeX DLL in Visual C++ 5.0 and how would one go about doing that.?
If you mean creating ActiveX control using Visual C++ and MFC use Control Wizard to generate skeleton control and then add your functionality. You can also create control using ATL that is part of Visual C++
Yes. When you create an ActiveX control (a component with a .OCX extension), the MFC ActiveX wizard creates a DLL with the same name as the component. The component is available as a DLL along with .lic (license file) and probably a .tlb (type library file).
The ActiveX control can be used in the normal manner in the sense that it can be embedded in a HTML page as long as the source browser supports ActiveX and/or can be used as a component, in the sense that it can be used by programmers using their methods and properties.
Once the DLL is available, you need to register the DLL in the registry. This can be done by using the regsvr32 available with MSVC 5.0. It can be located in your Windows/System directory. Once the registration is successful, you can use the ActiveX control.
The ActiveX control can be used in the normal manner in the sense that it can be embedded in a HTML page as long as the source browser supports ActiveX and/or can be used as a component, in the sense that it can be used by programmers using their methods and properties.
Once the DLL is available, you need to register the DLL in the registry. This can be done by using the regsvr32 available with MSVC 5.0. It can be located in your Windows/System directory. Once the registration is successful, you can use the ActiveX control.
ASKER
I tried to do what you said but a dll was not created when I built the .ocx file. I did however find the .lic and .tlb files.
The OCX is the DLL it has only an other extension
ASKER
I tried to do what you said but a dll was not created when I built the .ocx file. I did however find the .lic and .tlb files.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Again xxx.OCX is the dll there is no xxx.dll there is only an xxx.ocx
but this is a dll
but this is a dll
ASKER
I am not sure why guruprasad did not get any points for his answer. Can some one help me out with that.
You rejected his answer! If you wish to give him the points for that answer, you must reject mine, let him propose an answer again and give his points. I confess, however, that I'm rather confused with what you're trying to do, since it seems to me you really had rejected his answer.
Lobraco, so, who's getting the points. Has been a long time since something happened here.
ASKER