home *** CD-ROM | disk | FTP | other *** search
/ Chip Special: HTML & Java / Chip-Special_1997-01_HTML-a-Java.bin / actvx31.sdk / coresdk / inetsdk / samples / readme.txt < prev   
Encoding:
Text File  |  1996-10-15  |  6.1 KB  |  114 lines

  1. ActiveX SDK Beta 1 Samples Readme.Txt
  2. =====================================
  3.  
  4.  BaseCtl   Internet enabled OCX framework and samples
  5.     Framewrk  Internet enabled OCX framewrk
  6.     Ielnk     Sample Control which demonstrates Simple Hyperlink Navigation API
  7.     Iemime    Sample Control which demonstrates custom mime type registration.
  8.     ToDoSvr   Sample DocObject Control
  9.     WebImage  Sample Control which demonstrates downloading and displaying a BMP file.
  10.  Framer    Demonstrates in-place activation of a DocObject.
  11.  OLEScript Sample of an ActiveX Scripting host
  12.  Progress  Sample that uses an URL Moniker, demonstrates IBindStatusCallBack
  13.  Range     Demonstrates simple http GET request with optional read ranges.
  14.  UrlPad    Enhances SUPERPAD that demonstrates getting an URL
  15.            using urlostream API (from urlhlink.lib) and posting
  16.            it back to the server using WebPost API (sample below).
  17.  VBScript  Sample VBScript pages, pointers to JScript pages
  18.  WebPost   Demonstrates the use of the Web Post APIs to update 
  19.            content on Web Sites.
  20.  WinINet   Samples that demonstrate use of the WinInet APIs.
  21.     AsyncFtp  Demonstrates use of Wininet asynchronous API for ftp.
  22.     HttpAuth  Demonstrates use of Wininet for HTTP authentication.
  23.  
  24. Instructions
  25. ==============
  26. Please run SetEnv.Bat to set up your environment.  This SDK requires the
  27. most recent (May 96 or later) Win32 SDK and a recent compiler (all
  28. testing was done with VC++ 4.1)  The INCLUDE, LIB and PATH environment
  29. variables should first look in \INetSDK (from this SDK), then in \MSTools
  30. (from the Win32 SDK) and then in \MSDev (or equivalent compiler.)
  31.  
  32. The samples in this tree generally use the Win32 SDK conventions for makefiles.
  33. 'nmake' will build a debug binary and 'nmake nodebug=1' will build a
  34. retail binary.  The debug binaries will link with the debug variants of the
  35. C Runtimes and class libraries, and the retail binaries will link with the
  36. retail variants of these libraries.  Please remember that machines without
  37. VC++ installed may not have mfc40.dll, msvcrt40.dll, etc. (for retail),
  38. mfc40d.dll, msvcr40d.dll, etc. (for debug) DLLs installed.  Please make
  39. sure that any such required DLLs are properly installed on your test
  40. machines.  Some samples also have VC++ makefiles (project.mak) for use
  41. in the IDE.
  42.  
  43. To figure out what DLLs your project is using use
  44.     "link -dump -imports <filename>"
  45. And look for <file>.Dll lines.  There are often DLLs referenced that are not
  46. installed on test machines, particularly for debug builds.  You need to make
  47. sure that any such DLLs referenced are properly installed where they will be
  48. loaded when the app or control is loaded,  This is typically the directory
  49. returned by the GetSystemDirectory API call (system on Windows 95,  System32
  50. on Windows NT.)
  51.  
  52. Creating Microsoft Visual C++ Project Files.
  53. ============================================
  54.  
  55. To build the samples from within the Microsoft Visual C++ 4.0
  56. Developer Studio environment for samples that do not come with
  57. VC++ makefiles (.mak files), you must add appropriate paths to
  58. the Developer Studio's include and library paths, and create a 
  59. Visual C++ project file. The general steps to follow are outlined 
  60. below, although the exact steps vary from sample to sample.
  61.  
  62. 1) Click "Options..." on the "Tools" menu, and on the 
  63. "Directories" tab add the full path to your installed 
  64. INetSDK\Include directory to the includes directories, the full 
  65. path to INetSDK\Lib to the library directories, and the full path 
  66. to the INetSDK\Bin directory to the executable files directories. 
  67. These entries should be moved to the top of the search list. 
  68. Several samples also require the Beta NT-SUR version (or later) of 
  69. the Win32 SDK. The corresponding include, lib, and bin directories 
  70. should also be added and moved up just below the INetSDK entries.
  71.  
  72. 2) Create project and make files as follows:
  73. a) Close any open workspace from the File menu.
  74. b) Click "New" on the "File" menu and choose "Project Workspace".
  75. c) In the "New Project Workspace" dialog type the root name for 
  76. the output file into the "Name:" edit control (for example, type 
  77. "Framer" for the Framer sample).
  78. d) Choose "Application" in the "Type:" if you are building an 
  79. application, "Dynamic-Link Library" for an ActiveX(tm) Control, or 
  80. "Static Library" for a library (such as BaseCtl\FrameWrk).
  81. e) "Browse..." to the INetSDK\Samples directory on your system. 
  82. From there move to the directory holding the sample's sources and 
  83. click "OK" to close the "Choose Directory" dialog. Make sure the 
  84. "Location:" edit control reflects the directory holding the 
  85. sample's sources and not a new subdirectory under this root.
  86. f) Click "Create".
  87. g) Click "Files into Project..." on the "Insert" menu.
  88. h) Multiple select *.Cpp, *.c, *.def, and *.Rc and click "Add". If the
  89. project contains an .Odl file add this to the project also.
  90. i) Click "Settings..." on the "Build" menu and select the "Link" 
  91. tab. Add any appropriate libraries from the INetSDK or Win32 SDK 
  92. to the list of Object/library modules for both debug and release. 
  93. You can search the SDK makefile in the source's directory for 
  94. ".lib" to find out which additional libraries are needed by a 
  95. particular sample (such as uuic2.lib, uuid3.lib, urlmon.lib, 
  96. etc.). Note that some samples need to link to separate debug or 
  97. release libraries.
  98. j) If the sample you are building uses MFC, choose which type of 
  99. library to use in the "Microsoft Foundation Classes:" list box on 
  100. the "General" tab of the "Project Settings" dialog.
  101.  
  102. 3) Build the project from within the IDE. Note that some samples 
  103. are dependent on libraries build by other samples. These 
  104. dependencies are noted in the ReadMe.Txt files.
  105.  
  106. 4) If necessary, copy and/or rename the output file appropriately, 
  107. using the provided makefile as a guide.
  108.  
  109. 5) If the output is an ActiveX(tm) Control, run RegSvr32 from the 
  110. command line to register the .ocx on your system. You can probably 
  111. finesse the "Register Control" option on the "Tools" menu to do 
  112. this without dropping to the command line, but it is set up to 
  113. work with projects created using the OLE ControlWizard.
  114.