ActiveX Document: Difference between revisions
m Dating maintenance tags: {{Dead link}} |
|||
Line 7: | Line 7: | ||
==References== |
==References== |
||
{{reflist}} |
{{reflist}} |
||
The '''first thing''' you need to do is create a new project workspace. You’ll want to select the MFC AppWizard and give your application a name - the |
|||
sample application uses ActivDoc. Click on OK to start the process, and you’ll see the first page of the MFC AppWizard. To make life a little simpler, |
|||
check the Single Document option on the first page of the Wizsard. Click next twice to get the past the first and second pages of the wizard. What you’ll |
|||
see next is the third page. |
|||
The third page is where you’ll do most of the ActiveDocument configuration for the application. You can ; provide five different levels of OLE support |
|||
with your application. The last three levels also allow you to add ActiveDocument support. The Mini-Server option won’t allow you to add ActiveDocument |
|||
support. The Mini-Server option won’t allow you to run the application alone-you’d have to run |
|||
it from word for windows, Internet Explorer 3.0 or some other container. This level of support is fine if you want to create a file browser. The next |
|||
option is Full-Server, which allows the application to execute by itself. You can use this kind of application to support objects but not to display them. |
|||
Paint programs are usually good examples of an application that acts as a server but not necessarily as a container. The final level, both Container and |
|||
Server, is the one that we’ll select for this application. It allows you to provide full OLE2 capabilities in your application, including embedding objects. |
|||
You’ll also want to check the ActiveDocument Server option. Make sure you also check the Automation and ActiveX Controls options. Here’s what your |
|||
dialog should look like at this point. |
|||
==External links== |
==External links== |
Revision as of 18:32, 11 May 2012
This article provides insufficient context for those unfamiliar with the subject.(January 2008) |
Template:Expert-subject-multiple ActiveX Document (also known as DocObject or DocObj)[1] is a computer file in the form of a compound (text-based) document that allows[clarification needed] a container application[vague] to use the full capabilities of server applications.[ambiguous] This approach[clarification needed] distinguishes between a document, such as a word document or video clip, and the software that can be applied (open, edit, display, save) to the document. ActiveX documents consist of two components: the 'document' itself and the 'ActiveX DLL or EXE server' that supports it.
A single server can support an unlimited number of documents, just as Microsoft Word can support any number of document files. The server for an ActiveX document can be an EXE or a DLL server. The document generally has the extension .VBD, though ActiveX documents can be stored within other files as well, using a mechanism[ambiguous] called OLE structured storage.
References
The first thing you need to do is create a new project workspace. You’ll want to select the MFC AppWizard and give your application a name - the sample application uses ActivDoc. Click on OK to start the process, and you’ll see the first page of the MFC AppWizard. To make life a little simpler, check the Single Document option on the first page of the Wizsard. Click next twice to get the past the first and second pages of the wizard. What you’ll see next is the third page. The third page is where you’ll do most of the ActiveDocument configuration for the application. You can ; provide five different levels of OLE support with your application. The last three levels also allow you to add ActiveDocument support. The Mini-Server option won’t allow you to add ActiveDocument support. The Mini-Server option won’t allow you to run the application alone-you’d have to run it from word for windows, Internet Explorer 3.0 or some other container. This level of support is fine if you want to create a file browser. The next option is Full-Server, which allows the application to execute by itself. You can use this kind of application to support objects but not to display them. Paint programs are usually good examples of an application that acts as a server but not necessarily as a container. The final level, both Container and Server, is the one that we’ll select for this application. It allows you to provide full OLE2 capabilities in your application, including embedding objects. You’ll also want to check the ActiveDocument Server option. Make sure you also check the Automation and ActiveX Controls options. Here’s what your dialog should look like at this point.
External links