Can we create .OCX control in ATL project type

V

Vinay

Hi all,
Can we create an ActiveX (.OCX) control in ATL project type? Is project type
for creation of .OCX file can only be ActiveX MFC type?

If yes, Could you suggest me some Links?

My Requirement: To create an ActiveX control that could be include in a web
Page. This control has a DataGrid on it. Iam unable to do so in MFC ActiveX
projects.
Im using VS 6.0.
Thanks in anticipation,
Vinay
 
S

Steve Alpert

Vinay said:
Hi all,
Can we create an ActiveX (.OCX) control in ATL project type? Is project type
for creation of .OCX file can only be ActiveX MFC type?

If yes, Could you suggest me some Links?

My Requirement: To create an ActiveX control that could be include in a web
Page. This control has a DataGrid on it. Iam unable to do so in MFC ActiveX
projects.
Im using VS 6.0.
Thanks in anticipation,
Vinay
I may be naive, but isn't an OCX essentially a DLL with a different
extension?

/steveA
 
V

Vinay

Hi Steve,

I myself is new to VC++.

Can we include this ActiveX dll in Web page so that it can be downloaded by
the browser? As we do in case of an .OCX control.
If yes, Can u suggest me the way.

Thanks
 
S

Steve Alpert

In a local intranet, you can certainly put a DLL in a web page. You are
much better off doing it correctly by installing the dll in a CAB file
which is signed. That way, you can get selfregistration as part of the
download. There's lots on MSFT web sites on how to do this..

/steveA
 
V

Vinay

Hi Steve,
Thanks,
Could you suggest me the way to include an ActiveX dll in any VC++ project
or an ASP page. As I see only activeX OCX files in the list of ActiveX
control.
Can we create an ActiveX dll that has a User Interface?

Regards,
Vinay
 
S

Steve Alpert

I think you will have to do a bit of research on your own. These are
questions that are much beyond simple ng chatter.

To include in a project means accessing the data via CoCreateInstance.
To include in an asp page means the returned "html" has an OBJECT
reference in it.
Yes, an ActiveX control can have a user interface - see the tutorials

/steveA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top