home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
common
/
msdev98
/
template
/
atl
/
object.ctl
< prev
next >
Wrap
Text File
|
1998-06-16
|
1KB
|
51 lines
[!newguid(InterfaceGUID)]
[!Dialog("Names98", "ObjDlg98")]
[!if=(ConnectionPointsEnabled, "TRUE")]
[!newguid(InterfaceGUIDCP)]
[!endif]
[!strcpy(UpperShortName, ShortName)]
[!toupper(UpperShortName)]
[!AddStringToSymbol(HeaderTemplate, GalleryPath, "object.h")]
[!AddStringToSymbol(CPPTemplate, GalleryPath, "object.cpp")]
[!AddStringToSymbol(RGSTemplate, GalleryPath, "object.rgs")]
[!AddSymbolToSymbol(RGSName, ProjectDirectory, ShortName)]
[!AddStringToSymbol(RGSName, RGSName, ".rgs")]
[!target(RGSName)]
[!include(RGSTemplate)]
[!target()]
[!AddSymbolToString(IDR_REGISTRYID, "IDR_", UpperShortName)]
[!AddRegistryToRC(RGSName, IDR_REGISTRYID)]
[!target(HeaderName)]
[!include(HeaderTemplate)]
[!target()]
[!target(CPPName)]
[!include(CPPTemplate)]
[!target()]
[!AddStringToSymbol(IDLInterface, GalleryPath, "objint.idl")]
[!AddStringToSymbol(IDLCoClass, GalleryPath, "objco.idl")]
[!AddInterfaceToIDL(IDLProject, IDLInterface)]
[!AddCoClassToIDL(IDLProject, IDLCoClass)]
[!target(IDLName)]
[!include(IDLTemplate)]
[!target()]
[!AddToObjectMap(CoClassName, ClassName)]
[!AddSymbolToString(header, "\"", HeaderName)]
[!AddStringToSymbol(header, header, "\"")]
[!AddImportFile(IDLProject, "oaidl.idl")]
[!AddIncludeFile(ProjectNameCPP, header)]
[!AddFileToProject(CPPName)]
[!AddFileToProject(HeaderName)]