Discussion Locked

Creating ActiveX controls

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Within the next 2 to 3 months, I need to design a custom activex control, almost from the ground up (I don't have a similar control that I can build on, only an SDK). I have some experience in C, but only for console applications, nothing for Windows or ActiveX. I need to know the following:

1. Is there a good resource for C console programmer's who need to learn C++ window's programming? A book with corresponding web site(s) would be best. It must (at a minimum) cover the following topics (in detail, but also understandable to a beginner):
* communication with peripheral devices (including protocols)
* using Window's multimedia resources (codecs, etc.)
* client/server applications.
* TCP/IP and UDP communications.
* Creatingand signing ActiveX controls for use in web pages.

2. What options do I have for development packages? I know that Visual C++ will do activex controls, as will Borland's C Builder 5 Professional. Both of these are fairly expensive packages though (~ $700.00).

I have already tried looking for these answers myself, I found nothing for #1 and only Microsoft's Control Creation Edition of Visual Basic for #2, and it only lets you expand on/modify existing controls.
Thanks,
Ben
Webmaster/Developer
Didasko Communications

7 replies

by donq

I believe (?) ActiveX Controls were Microsoft Visual Basic objects, or mini add-on applications.

I know I can create a Microsoft Access ".mdb" application (linked to the ODBC data source the AxtiveX control uses) and after everything is tested and running properly save the applet as a ".mde" file.

Microsoft Access 2000 is both an OLE Automation client and server for AxtiveX Automation and you program Access (entirely) with VBA (or Visual Basic for Applications Or VB for Access? You can call C or C++ procedured (and DLLs) from within VBA when they are needed.

I have no clue if Paradox can serve as an OLE Object (or ActiveX) server and/or client?

Good Luck, Don Quigg

by txitguy

Thanks for your response, it has some interesting things I didn't know about Access (wish I could give you points for that, it might come in handy someday soon, but I need to save them for this question). Unfortunately, I don't really think this works for designing ActiveX controls (or at least not one with functionality beyond that supported by Access).
The control I need to design will be a client-side combination of Window's Media Encoder and Media Server. The idea is to allow a person with a digital video camera to encode a Media stream and send it to a file on our server (with their permission, of course). The codecs and video properties would be set by the page that loads the control.
Thanks anyway,
Ben

by donq

Access files can be saved as ".adp", "ade", ".mdb" (normal run time database file), ".mda", and ".mde"

by result

Because of it's much smaller learning curve, you may want to go with Visual Basic. I've created several powerful ActiveX components from the ground up in VB with no problem. However, since you're already familiar with C syntax, you may be interested in using VC++ instead. I've done small amounts of windows programming in VC++ and own the following books which have proven to be pretty good references:

1) Mastering Visual C++ 6 - this book explains many topics including ActiveX, but doesn't have everything you're looking for. It also has a section on migrating from C to C++.

2) Visual C++ 5 Unleashed - this book would do better in providing you with all the information you're looking for, but it's not all necessarily from a beginners level.

If you choose to go with VB, Dan Appleman's book "Developing COM/ActiveX Components with Visual Basic 6" is an *outstanding* reference to developing ActiveX components from VB with a full, in-depth understanding of COM/ActiveX.

I've always preferred VB for windows programming, but the choice is up to you!

Hope this helps,
Phillip

by txitguy

Thanks, I'll take a look at those. I guess I'm still looking at an investment in additional development software though, because I don't have a current version of Visual C++ (4.0 is not ANSI compliant. :) ). I'll probably get Visual Basic since that is the case, it's not as powerful but it is easier.
Ben

This discussion is closed to new replies.