Добавьте файлы проекта.
This commit is contained in:
		
							parent
							
								
									1bc93b5036
								
							
						
					
					
						commit
						0eb01a1a09
					
				
							
								
								
									
										54
									
								
								3-я_лабораторная.sln
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								3-я_лабораторная.sln
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,54 @@
 | 
			
		||||
 | 
			
		||||
Microsoft Visual Studio Solution File, Format Version 12.00
 | 
			
		||||
# Visual Studio Version 17
 | 
			
		||||
VisualStudioVersion = 17.7.34221.43
 | 
			
		||||
MinimumVisualStudioVersion = 10.0.40219.1
 | 
			
		||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "3-я_лабораторная", "3-я_лабораторная.vcxproj", "{53868EED-9548-4EB0-8C7C-4491FD6B45D4}"
 | 
			
		||||
	ProjectSection(ProjectDependencies) = postProject
 | 
			
		||||
		{D353CD66-AA5A-4C13-A98B-6B48462DC324} = {D353CD66-AA5A-4C13-A98B-6B48462DC324}
 | 
			
		||||
	EndProjectSection
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MyLib", "..\MyLib\MyLib.vcxproj", "{D353CD66-AA5A-4C13-A98B-6B48462DC324}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MyLib2", "..\MyLib2\MyLib2.vcxproj", "{CA655D71-AD4E-4589-9F9F-B966C5B87324}"
 | 
			
		||||
EndProject
 | 
			
		||||
Global
 | 
			
		||||
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 | 
			
		||||
		Debug|x64 = Debug|x64
 | 
			
		||||
		Debug|x86 = Debug|x86
 | 
			
		||||
		Release|x64 = Release|x64
 | 
			
		||||
		Release|x86 = Release|x86
 | 
			
		||||
	EndGlobalSection
 | 
			
		||||
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
 | 
			
		||||
		{53868EED-9548-4EB0-8C7C-4491FD6B45D4}.Debug|x64.ActiveCfg = Debug|x64
 | 
			
		||||
		{53868EED-9548-4EB0-8C7C-4491FD6B45D4}.Debug|x64.Build.0 = Debug|x64
 | 
			
		||||
		{53868EED-9548-4EB0-8C7C-4491FD6B45D4}.Debug|x86.ActiveCfg = Debug|Win32
 | 
			
		||||
		{53868EED-9548-4EB0-8C7C-4491FD6B45D4}.Debug|x86.Build.0 = Debug|Win32
 | 
			
		||||
		{53868EED-9548-4EB0-8C7C-4491FD6B45D4}.Release|x64.ActiveCfg = Release|x64
 | 
			
		||||
		{53868EED-9548-4EB0-8C7C-4491FD6B45D4}.Release|x64.Build.0 = Release|x64
 | 
			
		||||
		{53868EED-9548-4EB0-8C7C-4491FD6B45D4}.Release|x86.ActiveCfg = Release|Win32
 | 
			
		||||
		{53868EED-9548-4EB0-8C7C-4491FD6B45D4}.Release|x86.Build.0 = Release|Win32
 | 
			
		||||
		{D353CD66-AA5A-4C13-A98B-6B48462DC324}.Debug|x64.ActiveCfg = Debug|x64
 | 
			
		||||
		{D353CD66-AA5A-4C13-A98B-6B48462DC324}.Debug|x64.Build.0 = Debug|x64
 | 
			
		||||
		{D353CD66-AA5A-4C13-A98B-6B48462DC324}.Debug|x86.ActiveCfg = Debug|Win32
 | 
			
		||||
		{D353CD66-AA5A-4C13-A98B-6B48462DC324}.Debug|x86.Build.0 = Debug|Win32
 | 
			
		||||
		{D353CD66-AA5A-4C13-A98B-6B48462DC324}.Release|x64.ActiveCfg = Release|x64
 | 
			
		||||
		{D353CD66-AA5A-4C13-A98B-6B48462DC324}.Release|x64.Build.0 = Release|x64
 | 
			
		||||
		{D353CD66-AA5A-4C13-A98B-6B48462DC324}.Release|x86.ActiveCfg = Release|Win32
 | 
			
		||||
		{D353CD66-AA5A-4C13-A98B-6B48462DC324}.Release|x86.Build.0 = Release|Win32
 | 
			
		||||
		{CA655D71-AD4E-4589-9F9F-B966C5B87324}.Debug|x64.ActiveCfg = Debug|x64
 | 
			
		||||
		{CA655D71-AD4E-4589-9F9F-B966C5B87324}.Debug|x64.Build.0 = Debug|x64
 | 
			
		||||
		{CA655D71-AD4E-4589-9F9F-B966C5B87324}.Debug|x86.ActiveCfg = Debug|Win32
 | 
			
		||||
		{CA655D71-AD4E-4589-9F9F-B966C5B87324}.Debug|x86.Build.0 = Debug|Win32
 | 
			
		||||
		{CA655D71-AD4E-4589-9F9F-B966C5B87324}.Release|x64.ActiveCfg = Release|x64
 | 
			
		||||
		{CA655D71-AD4E-4589-9F9F-B966C5B87324}.Release|x64.Build.0 = Release|x64
 | 
			
		||||
		{CA655D71-AD4E-4589-9F9F-B966C5B87324}.Release|x86.ActiveCfg = Release|Win32
 | 
			
		||||
		{CA655D71-AD4E-4589-9F9F-B966C5B87324}.Release|x86.Build.0 = Release|Win32
 | 
			
		||||
	EndGlobalSection
 | 
			
		||||
	GlobalSection(SolutionProperties) = preSolution
 | 
			
		||||
		HideSolutionNode = FALSE
 | 
			
		||||
	EndGlobalSection
 | 
			
		||||
	GlobalSection(ExtensibilityGlobals) = postSolution
 | 
			
		||||
		SolutionGuid = {4716D2D0-01F5-4776-B26A-C58331DF6DB6}
 | 
			
		||||
	EndGlobalSection
 | 
			
		||||
EndGlobal
 | 
			
		||||
							
								
								
									
										140
									
								
								3-я_лабораторная.vcxproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										140
									
								
								3-я_лабораторная.vcxproj
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,140 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
			
		||||
  <ItemGroup Label="ProjectConfigurations">
 | 
			
		||||
    <ProjectConfiguration Include="Debug|Win32">
 | 
			
		||||
      <Configuration>Debug</Configuration>
 | 
			
		||||
      <Platform>Win32</Platform>
 | 
			
		||||
    </ProjectConfiguration>
 | 
			
		||||
    <ProjectConfiguration Include="Release|Win32">
 | 
			
		||||
      <Configuration>Release</Configuration>
 | 
			
		||||
      <Platform>Win32</Platform>
 | 
			
		||||
    </ProjectConfiguration>
 | 
			
		||||
    <ProjectConfiguration Include="Debug|x64">
 | 
			
		||||
      <Configuration>Debug</Configuration>
 | 
			
		||||
      <Platform>x64</Platform>
 | 
			
		||||
    </ProjectConfiguration>
 | 
			
		||||
    <ProjectConfiguration Include="Release|x64">
 | 
			
		||||
      <Configuration>Release</Configuration>
 | 
			
		||||
      <Platform>x64</Platform>
 | 
			
		||||
    </ProjectConfiguration>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <PropertyGroup Label="Globals">
 | 
			
		||||
    <VCProjectVersion>17.0</VCProjectVersion>
 | 
			
		||||
    <Keyword>Win32Proj</Keyword>
 | 
			
		||||
    <ProjectGuid>{53868eed-9548-4eb0-8c7c-4491fd6b45d4}</ProjectGuid>
 | 
			
		||||
    <RootNamespace>My3ялабораторная</RootNamespace>
 | 
			
		||||
    <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
 | 
			
		||||
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
 | 
			
		||||
    <ConfigurationType>Application</ConfigurationType>
 | 
			
		||||
    <UseDebugLibraries>true</UseDebugLibraries>
 | 
			
		||||
    <PlatformToolset>v143</PlatformToolset>
 | 
			
		||||
    <CharacterSet>Unicode</CharacterSet>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
 | 
			
		||||
    <ConfigurationType>Application</ConfigurationType>
 | 
			
		||||
    <UseDebugLibraries>false</UseDebugLibraries>
 | 
			
		||||
    <PlatformToolset>v143</PlatformToolset>
 | 
			
		||||
    <WholeProgramOptimization>true</WholeProgramOptimization>
 | 
			
		||||
    <CharacterSet>Unicode</CharacterSet>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
 | 
			
		||||
    <ConfigurationType>Application</ConfigurationType>
 | 
			
		||||
    <UseDebugLibraries>true</UseDebugLibraries>
 | 
			
		||||
    <PlatformToolset>v143</PlatformToolset>
 | 
			
		||||
    <CharacterSet>Unicode</CharacterSet>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
 | 
			
		||||
    <ConfigurationType>Application</ConfigurationType>
 | 
			
		||||
    <UseDebugLibraries>false</UseDebugLibraries>
 | 
			
		||||
    <PlatformToolset>v143</PlatformToolset>
 | 
			
		||||
    <WholeProgramOptimization>true</WholeProgramOptimization>
 | 
			
		||||
    <CharacterSet>Unicode</CharacterSet>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
 | 
			
		||||
  <ImportGroup Label="ExtensionSettings">
 | 
			
		||||
  </ImportGroup>
 | 
			
		||||
  <ImportGroup Label="Shared">
 | 
			
		||||
  </ImportGroup>
 | 
			
		||||
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
 | 
			
		||||
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
 | 
			
		||||
  </ImportGroup>
 | 
			
		||||
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
 | 
			
		||||
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
 | 
			
		||||
  </ImportGroup>
 | 
			
		||||
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
 | 
			
		||||
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
 | 
			
		||||
  </ImportGroup>
 | 
			
		||||
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
 | 
			
		||||
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
 | 
			
		||||
  </ImportGroup>
 | 
			
		||||
  <PropertyGroup Label="UserMacros" />
 | 
			
		||||
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
 | 
			
		||||
    <ClCompile>
 | 
			
		||||
      <WarningLevel>Level3</WarningLevel>
 | 
			
		||||
      <SDLCheck>true</SDLCheck>
 | 
			
		||||
      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 | 
			
		||||
      <ConformanceMode>true</ConformanceMode>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <Link>
 | 
			
		||||
      <SubSystem>Console</SubSystem>
 | 
			
		||||
      <GenerateDebugInformation>true</GenerateDebugInformation>
 | 
			
		||||
    </Link>
 | 
			
		||||
  </ItemDefinitionGroup>
 | 
			
		||||
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
 | 
			
		||||
    <ClCompile>
 | 
			
		||||
      <WarningLevel>Level3</WarningLevel>
 | 
			
		||||
      <FunctionLevelLinking>true</FunctionLevelLinking>
 | 
			
		||||
      <IntrinsicFunctions>true</IntrinsicFunctions>
 | 
			
		||||
      <SDLCheck>true</SDLCheck>
 | 
			
		||||
      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 | 
			
		||||
      <ConformanceMode>true</ConformanceMode>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <Link>
 | 
			
		||||
      <SubSystem>Console</SubSystem>
 | 
			
		||||
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
 | 
			
		||||
      <OptimizeReferences>true</OptimizeReferences>
 | 
			
		||||
      <GenerateDebugInformation>true</GenerateDebugInformation>
 | 
			
		||||
    </Link>
 | 
			
		||||
  </ItemDefinitionGroup>
 | 
			
		||||
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
 | 
			
		||||
    <ClCompile>
 | 
			
		||||
      <WarningLevel>Level3</WarningLevel>
 | 
			
		||||
      <SDLCheck>true</SDLCheck>
 | 
			
		||||
      <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 | 
			
		||||
      <ConformanceMode>true</ConformanceMode>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <Link>
 | 
			
		||||
      <SubSystem>Console</SubSystem>
 | 
			
		||||
      <GenerateDebugInformation>true</GenerateDebugInformation>
 | 
			
		||||
    </Link>
 | 
			
		||||
  </ItemDefinitionGroup>
 | 
			
		||||
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
 | 
			
		||||
    <ClCompile>
 | 
			
		||||
      <WarningLevel>Level3</WarningLevel>
 | 
			
		||||
      <FunctionLevelLinking>true</FunctionLevelLinking>
 | 
			
		||||
      <IntrinsicFunctions>true</IntrinsicFunctions>
 | 
			
		||||
      <SDLCheck>true</SDLCheck>
 | 
			
		||||
      <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 | 
			
		||||
      <ConformanceMode>true</ConformanceMode>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <Link>
 | 
			
		||||
      <SubSystem>Console</SubSystem>
 | 
			
		||||
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
 | 
			
		||||
      <OptimizeReferences>true</OptimizeReferences>
 | 
			
		||||
      <GenerateDebugInformation>true</GenerateDebugInformation>
 | 
			
		||||
    </Link>
 | 
			
		||||
  </ItemDefinitionGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ClCompile Include="main.c" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ProjectReference Include="..\MyLib2\MyLib2.vcxproj">
 | 
			
		||||
      <Project>{ca655d71-ad4e-4589-9f9f-b966c5b87324}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 | 
			
		||||
  <ImportGroup Label="ExtensionTargets">
 | 
			
		||||
  </ImportGroup>
 | 
			
		||||
</Project>
 | 
			
		||||
							
								
								
									
										22
									
								
								3-я_лабораторная.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								3-я_лабораторная.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,22 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Filter Include="Исходные файлы">
 | 
			
		||||
      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
 | 
			
		||||
      <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
 | 
			
		||||
    </Filter>
 | 
			
		||||
    <Filter Include="Файлы заголовков">
 | 
			
		||||
      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
 | 
			
		||||
      <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
 | 
			
		||||
    </Filter>
 | 
			
		||||
    <Filter Include="Файлы ресурсов">
 | 
			
		||||
      <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
 | 
			
		||||
      <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
 | 
			
		||||
    </Filter>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ClCompile Include="main.c">
 | 
			
		||||
      <Filter>Исходные файлы</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
</Project>
 | 
			
		||||
							
								
								
									
										78
									
								
								main.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										78
									
								
								main.c
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,78 @@
 | 
			
		||||
 | 
			
		||||
#define _CRT_SECURE_NO_WARNINGS
 | 
			
		||||
#define _UNICODE
 | 
			
		||||
#define UNICODE
 | 
			
		||||
 | 
			
		||||
#include <windows.h>
 | 
			
		||||
#include <direct.h>
 | 
			
		||||
#include <fcntl.h>
 | 
			
		||||
#include <io.h>
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <tchar.h>
 | 
			
		||||
#include <locale.h>
 | 
			
		||||
#include <string.h> 
 | 
			
		||||
#include <wchar.h>
 | 
			
		||||
#include <sys/types.h>
 | 
			
		||||
#include <sys/stat.h>
 | 
			
		||||
 | 
			
		||||
extern __declspec(dllimport) void printCreateDirectory();
 | 
			
		||||
 | 
			
		||||
int main(void)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
    HINSTANCE mylib = LoadLibrary(L"MyLib.dll");
 | 
			
		||||
    if (mylib == NULL) {
 | 
			
		||||
        _tprintf(_T("Îøèáóêà"));
 | 
			
		||||
        return 1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    typedef void (*SystemParameters)(wchar_t *);
 | 
			
		||||
 | 
			
		||||
    SystemParameters printSystemParametersInfo;
 | 
			
		||||
 | 
			
		||||
    printSystemParametersInfo = (SystemParameters)GetProcAddress(mylib,"printSystemParametersInfo");
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    // ïðîãðàììà òîëüêî äëÿ UNICODE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 | 
			
		||||
    const wchar_t str[] = L"help";
 | 
			
		||||
    const wchar_t str1[] = L"exit";
 | 
			
		||||
    const wchar_t str2[] = L"systemP";
 | 
			
		||||
    const wchar_t str3[] = L"getD";
 | 
			
		||||
    const wchar_t str4[] = L"getP";
 | 
			
		||||
    const wchar_t str5[] = L"setC";
 | 
			
		||||
   
 | 
			
		||||
    _setmode(_fileno(stdin), _O_U16TEXT);
 | 
			
		||||
    _setmode(_fileno(stdout), _O_U16TEXT);
 | 
			
		||||
    _setmode(_fileno(stderr), _O_U16TEXT);
 | 
			
		||||
 | 
			
		||||
    printCreateDirectory();
 | 
			
		||||
 | 
			
		||||
    wchar_t comand[50];
 | 
			
		||||
    //setlocale(LC_ALL, ".UTF8");
 | 
			
		||||
    _tprintf(_T("Çäðàâñòâóéòå, â ñâÿçè ñ àòàêîé òåððîðèñòîâ íà ìîå âîîáðàæåíèå ýòà ïðîãðàììà ïîëó÷èëà íàçâàíèå \"Ïðîãðàììà3\"\n"));
 | 
			
		||||
    while (1) {
 | 
			
		||||
        _tprintf(_T("Ââåäèòå êîìàíäó: "));
 | 
			
		||||
        fgetws(comand, sizeof(comand), stdin);
 | 
			
		||||
        comand[wcslen(comand) - 1] = 0;
 | 
			
		||||
        if (!wcscmp(comand, str)) {
 | 
			
		||||
            _tprintf(_T("Òóò äîëæåí áûòü ñïèñîê äîñòóïíûõ êîìàíä, íî åãî íåò - êàê æàëü(\n"));
 | 
			
		||||
        }       
 | 
			
		||||
        else if (!wcscmp(comand, str1)) {
 | 
			
		||||
            _tprintf(_T("Ïðîèçîøåë âûõîä èç ïðîãðàììû!\n"));
 | 
			
		||||
            break;
 | 
			
		||||
        }
 | 
			
		||||
        else if (!wcscmp(comand, str2)) {
 | 
			
		||||
            wchar_t str[255];
 | 
			
		||||
            printSystemParametersInfo(str, 255);
 | 
			
		||||
            _tprintf(_T("Ðèñóíîê ñ ðàáî÷åãî ñòîëà ëåæèò â: %s!\n"), str);
 | 
			
		||||
        }
 | 
			
		||||
       
 | 
			
		||||
             
 | 
			
		||||
        else {
 | 
			
		||||
            _tprintf(_T("Íåâåðíàÿ êîìàíäà!\n"));
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return 0;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user