Game Development Reference
In-Depth Information
htmlFile.WriteString(“ If you see this text then the control has
not installed. This could be\n”);
htmlFile.WriteString(“ because you are not using Internet
Explorer or because you have high\n”);
htmlFile.WriteString(“ security settings that exclude ActiveX
controls. If this is set correctly\n”);
htmlFile.WriteString(“ and you still experience problems then
check that the files OpenGL32.dll\n”);
htmlFile.WriteString(“ , Glu32.dll, and MFC42.dll are in your
Windows\\System folder.\n”);
htmlFile.WriteString(“ </object>\n</p>\n</body>\n</html>”);
CPublishDlg dlg;
pStatus->SetPaneText(2, “Current movie published”);
Showing content in the browser
ActiveX controls provide a useful way of extending the functionality of the
browser. Using Visual C++, an ActiveX control is easily created by starting
a project using the appropriate settings. An MFC ActiveX control extends
the COleControl class to add specialist functionality. One feature of
ActiveX controls is that they can be provided with data from a URL. The
source code for Toon3D includes all the source for the ActiveX control that
can be embedded into an html page. There are many useful topics and
Internet-based resources to help extend your knowledge regarding
ActiveX controls. In this section we will look at how ActiveX controls can
load data over an Internet connection.
The Toon3D ActiveX control uses an MFC class called CCachedData-
PathProperty . This class does most of the work for you. A member
variable of the Toon3D ActiveX control m_ToonFile is a CCachedData-
PathProperty class. This class can access the control that is using it by
referencing the member function GetControl . In this short code snippet,
we access the control in order to call functions that indicate to the control
the state of the loading process.
Search Nedrilad ::

Custom Search