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