home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / common / msdev98 / template / atl / compreg.ctl < prev    next >
Encoding:
Text File  |  1998-06-16  |  857 b   |  35 lines

  1. [!set(ComponentType, "11111000")]
  2. [!Dialog("CompRegDlg98", "Names98")]
  3.  
  4. [!strcpy(UpperShortName, ShortName)]
  5. [!toupper(UpperShortName)]
  6.  
  7. [!AddStringToSymbol(HeaderTemplate, GalleryPath, "compreg.h")]
  8. [!AddStringToSymbol(CPPTemplate, GalleryPath, "compreg.cpp")]
  9.  
  10. [!target(HeaderName)]
  11. [!include(HeaderTemplate)]
  12. [!target()]
  13.  
  14. [!target(CPPName)]
  15. [!include(CPPTemplate)]
  16. [!target()]
  17.  
  18. [!AddStringToSymbol(IDLCoClass, GalleryPath, "cmprgco.idl")]
  19. [!AddCoClassToIDL(IDLProject, IDLCoClass)]
  20.  
  21. [!target(IDLName)]
  22. [!include(IDLTemplate)]
  23. [!target()]
  24.  
  25. [!AddToObjectMap(CoClassName, ClassName)]
  26.  
  27.  
  28. [!AddSymbolToString(header, "\"", HeaderName)]
  29. [!AddStringToSymbol(header, header, "\"")]
  30. [!AddImportFile(IDLProject, "oaidl.idl")]
  31. [!AddIncludeFile(ProjectNameCPP,  header)]
  32.  
  33. [!AddFileToProject(CPPName)]
  34. [!AddFileToProject(HeaderName)]
  35.