home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / source / chap03 / lst33 / lst33obj.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-19  |  487 b   |  27 lines

  1. // Lst33Obj.cpp : Implementation of Clst33App and DLL registration.
  2.  
  3. #include "stdafx.h"
  4. #include "lst33.h"
  5. #include "Lst33Obj.h"
  6.  
  7. /////////////////////////////////////////////////////////////////////////////
  8. //
  9.  
  10.  
  11. STDMETHODIMP CLst33Object::Lower(LPSTR lpInput, LPSTR* pOutput)
  12. {
  13.     int i;
  14.  
  15.     *pOutput = new char[strlen(lpInput) + 1];
  16.  
  17.     for (i=0; i< strlen(lpInput); i++)
  18.     {
  19.         *(*pOutput+i) = *(lpInput + i) -'A' +'a';
  20.     }
  21.  
  22.     *(*pOutput+i) = '\0';
  23.  
  24.     return S_OK;
  25. }
  26.  
  27.