home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
com
/
tutsamp
/
dlluser
/
dlluser.rc
< prev
next >
Wrap
Text File
|
1997-08-05
|
5KB
|
141 lines
//===========================================================================
// File: DLLUSER.RC
//
// Summary: Resource definition file for DLLUSER.EXE.
//
// Origin: 8-5-95: atrent - Editor-inheritance from the EXESKEL.RC.
//
// -------------------------------------------------------------------------
// This file is part of the Microsoft COM Tutorial Code Samples.
//
// Copyright (C) Microsoft Corporation, 1997. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft
// Development Tools and/or on-line documentation. See these other
// materials for detailed information regarding Microsoft code samples.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//===========================================================================
// We include ole2.h because we're defining the Version Info.
// We inlcude apputil.h for Resource IDs shared with APPUTIL.
// We include dlluser.h for Resource IDs unique to DLLUSER.EXE.
#include <ole2.h>
#include <apputil.h>
#include "dlluser.h"
// The main keyboard accelerator resource table.
AppAccel ACCELERATORS MOVEABLE PURE
BEGIN
VK_F1, IDM_HELP_CONTENTS, VIRTKEY
"?", IDM_HELP_CONTENTS, ASCII
END
// The About Box dialog resource.
IDM_HELP_ABOUT DIALOG DISCARDABLE 67, 46, 196, 53
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About DLLUSER"
FONT 8, "MS Shell Dlg"
BEGIN
ICON "AppIcon",-1,6,7,18,20
LTEXT "Tutorial Code Sample: DLLUSER Version 1.0",-1,32,7,
155,8,NOT WS_GROUP
LTEXT "Copyright 1997 Microsoft Corporation",-1,32,18,155,
8,NOT WS_GROUP
PUSHBUTTON "OK",IDOK,75,32,40,14
END
// The main icon resource for the application--use same one as in
// DLLSKEL.DLL.
AppIcon ICON DISCARDABLE "dlluser.ico"
// The main menu resource definition.
DLLUSERMENU MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", IDM_FILE_EXIT
END
POPUP "&Test"
BEGIN
MENUITEM "&Call DLLSKEL.DLL...", IDM_TEST_DLLHELLO
MENUITEM "&About DLLSKEL.DLL...", IDM_TEST_DLLABOUT
END
POPUP "&Help"
BEGIN
// MENUITEM "&Help Topics", IDM_HELP_CONTENTS
MENUITEM "DLLUSER &Tutorial", IDM_HELP_TUTORIAL
MENUITEM "&DLLSKEL Tutorial", IDM_HELP_TUTDLL
MENUITEM "Read Source &File...", IDM_HELP_READSOURCE
MENUITEM SEPARATOR
MENUITEM "&About DLLUSER...", IDM_HELP_ABOUT
END
END
// Error Box String Resources.
STRINGTABLE DISCARDABLE
BEGIN
IDS_COMINITFAILED "DLLUSER: COM initialization failed."
IDS_APPINITFAILED "DLLUSER: App initialization failed."
IDS_OUTOFMEMORY "DLLUSER: Ran out of memory."
IDS_UNICODEFAIL "DLLUSER: Can't run with Unicode."
IDS_ASSERT_FAIL "DLLUSER: Assertion Failed."
END
// If being read in by AppStudio we don't confuse it with this Version Info.
#ifndef APSTUDIO_INVOKED
// The version information for the binary.
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifndef DEBUG
FILEFLAGS 0
#else
FILEFLAGS VS_FF_DEBUG | VS_FF_PRERELEASE
#endif
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
#ifdef UNICODE
BLOCK "040904B0" // LANG_ENGLISH/SUBLANG_ENGLISH_US, CharSet=Unicode
#else
BLOCK "040904E4" // LANG_ENGLISH/SUBLANG_ENGLISH_US, CharSet=MultiLang
#endif
BEGIN
VALUE "CompanyName", "Microsoft Corporation"
VALUE "FileDescription", "DLLUSER: Tutorial Code Sample"
VALUE "FileVersion", "1.00"
VALUE "InternalName", "DLLUSER"
VALUE "LegalCopyright", "Copyright \251 1997 Microsoft Corp. "
VALUE "OriginalFilename","DLLUSER.EXE"
VALUE "ProductName", "Microsoft\256 Tutorial Code Samples"
VALUE "ProductVersion", "1.00"
END
END
BLOCK "VarFileInfo"
BEGIN
#ifdef UNICODE
VALUE "Translation", 0x409, 1200 //English (0x409), Unicode (1200)
#else
VALUE "Translation", 0x409, 1252 //English (0x409), ANSI (1252)
#endif
END
END
#endif