added common as a reference project

This commit is contained in:
Alekhya Kommuru
2020-01-15 16:44:18 -08:00
parent 31a01ab227
commit 12c4dbf0e5
3 changed files with 30 additions and 24 deletions

View File

@@ -48,18 +48,18 @@ END
STRINGTABLE
BEGIN
IDS_ROOT_PATH L"Software\\Microsoft\\PowerRename"
IDS_SEARCH_PATH L"SearchMRU"
IDS_REPLACE_PATH L"ReplaceMRU"
IDS_ENABLED L"Enabled"
IDS_SHOW_ICON L"ShowIcon"
IDS_CONTEXT_MENU L"ExtendedContextMenuOnly"
IDS_PERSIST_STATE L"PersistState"
IDS_MAX_MRU_SIZE L"MaxMRUSize"
IDS_FLAGS L"Flags"
IDS_SEARCH_TEXT L"SearchText"
IDS_REPLACE_TEXT L"ReplaceText"
IDS_MRU_ENABLED L"MRUEnabled"
IDS_ROOT_PATH L"Software\\Microsoft\\PowerRename"
IDS_SEARCH_PATH L"SearchMRU"
IDS_REPLACE_PATH L"ReplaceMRU"
IDS_ENABLED L"Enabled"
IDS_SHOW_ICON L"ShowIcon"
IDS_CONTEXT_MENU L"ExtendedContextMenuOnly"
IDS_PERSIST_STATE L"PersistState"
IDS_MAX_MRU_SIZE L"MaxMRUSize"
IDS_FLAGS L"Flags"
IDS_SEARCH_TEXT L"SearchText"
IDS_REPLACE_TEXT L"ReplaceText"
IDS_MRU_ENABLED L"MRUEnabled"
END
#ifndef APSTUDIO_INVOKED

View File

@@ -4,19 +4,20 @@
#include "Settings.h"
#include "PowerRenameInterfaces.h"
#include "resource.h"
#include <common.h>
const wchar_t c_rootRegPath[] = L"Software\\Microsoft\\PowerRename";
const wchar_t c_mruSearchRegPath[] = L"SearchMRU";
const wchar_t c_mruReplaceRegPath[] = L"ReplaceMRU";
const wchar_t c_enabled[] = L"Enabled";
const wchar_t c_showIconOnMenu[] = L"ShowIcon";
const wchar_t c_extendedContextMenuOnly[] = L"ExtendedContextMenuOnly";
const wchar_t c_persistState[] = L"PersistState";
const wchar_t c_maxMRUSize[] = L"MaxMRUSize";
const wchar_t c_flags[] = L"Flags";
const wchar_t c_searchText[] = L"SearchText";
const wchar_t c_replaceText[] = L"ReplaceText";
const wchar_t c_mruEnabled[] = L"MRUEnabled";
const wchar_t* c_rootRegPath = GET_RESOURCE_STRING(IDS_ROOT_PATH).c_str();
const wchar_t* c_mruSearchRegPath = GET_RESOURCE_STRING(IDS_SEARCH_PATH).c_str();
const wchar_t* c_mruReplaceRegPath = GET_RESOURCE_STRING(IDS_REPLACE_PATH).c_str();
const wchar_t* c_enabled = GET_RESOURCE_STRING(IDS_ENABLED).c_str();
const wchar_t* c_showIconOnMenu = GET_RESOURCE_STRING(IDS_SHOW_ICON).c_str();
const wchar_t* c_extendedContextMenuOnly = GET_RESOURCE_STRING(IDS_CONTEXT_MENU).c_str();
const wchar_t* c_persistState = GET_RESOURCE_STRING(IDS_PERSIST_STATE).c_str();
const wchar_t* c_maxMRUSize = GET_RESOURCE_STRING(IDS_MAX_MRU_SIZE).c_str();
const wchar_t* c_flags = GET_RESOURCE_STRING(IDS_FLAGS).c_str();
const wchar_t* c_searchText = GET_RESOURCE_STRING(IDS_SEARCH_TEXT).c_str();
const wchar_t* c_replaceText = GET_RESOURCE_STRING(IDS_REPLACE_TEXT).c_str();
const wchar_t* c_mruEnabled = GET_RESOURCE_STRING(IDS_MRU_ENABLED).c_str();
const bool c_enabledDefault = true;
const bool c_showIconOnMenuDefault = true;

View File

@@ -185,6 +185,11 @@
<ItemGroup>
<ResourceCompile Include="PowerRenameTest.rc" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\common\common.vcxproj">
<Project>{74485049-c722-400f-abe5-86ac52d929b3}</Project>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>