Commit for development environment setup
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
#include "stdafx.h"
|
||||
|
||||
using namespace System::Reflection;
|
||||
using namespace System::Runtime::CompilerServices;
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly:AssemblyTitleAttribute("")];
|
||||
[assembly:AssemblyDescriptionAttribute("")];
|
||||
[assembly:AssemblyConfigurationAttribute("")];
|
||||
[assembly:AssemblyCompanyAttribute("")];
|
||||
[assembly:AssemblyProductAttribute("")];
|
||||
[assembly:AssemblyCopyrightAttribute("")];
|
||||
[assembly:AssemblyTrademarkAttribute("")];
|
||||
[assembly:AssemblyCultureAttribute("")];
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the value or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly:AssemblyVersionAttribute("1.1.*")];
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project directory.
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly:AssemblyDelaySignAttribute(false)];
|
||||
[assembly:AssemblyKeyFileAttribute("E:\\proms.net\\Public Key\\vlnkey.snk")];
|
||||
[assembly:AssemblyKeyNameAttribute("")];
|
||||
|
67
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/IniFileIO.cpp
Normal file
67
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/IniFileIO.cpp
Normal file
@@ -0,0 +1,67 @@
|
||||
/*********************************************************************************************
|
||||
* Copyright 2003 - Volian Enterprises, Inc. All rights reserved.
|
||||
* Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||
* ------------------------------------------------------------------------------
|
||||
* $Workfile: IniFileIO.cpp $ $Revision: 4 $
|
||||
* $Author: Jsj $ $Date: 1/07/04 12:08p $
|
||||
*
|
||||
* $History: IniFileIO.cpp $
|
||||
*
|
||||
* ***************** Version 4 *****************
|
||||
* User: Jsj Date: 1/07/04 Time: 12:08p
|
||||
* Updated in $/LibSource/IniFileIO
|
||||
* was not returning found strings
|
||||
*
|
||||
* ***************** Version 3 *****************
|
||||
* User: Jsj Date: 12/16/03 Time: 11:44a
|
||||
* Updated in $/LibSource/IniFileIO
|
||||
* modified to all use in .net 1.0 and .net 1.1
|
||||
*********************************************************************************************/
|
||||
// This is the main DLL file.
|
||||
#include "stdafx.h"
|
||||
#include "IniFileIO.h"
|
||||
|
||||
using namespace IniFileIO;
|
||||
|
||||
String *INIFile::GetINIKeyValueStr(String *SectName, String *KeyName, String *DefaultValue, unsigned BufSize, String *IniFileName)
|
||||
{
|
||||
unsigned rtval;
|
||||
LPCTSTR tmpSectName;
|
||||
LPCTSTR tmpKeyName;
|
||||
LPCTSTR tmpDefaultValue;
|
||||
LPSTR tmpReturnBuff;
|
||||
LPCTSTR tmpIniFileName;
|
||||
ValueString = new String(NULL,BufSize+1);
|
||||
tmpSectName = static_cast<LPCTSTR>(static_cast<void*>(Marshal::StringToCoTaskMemAnsi(SectName)));
|
||||
tmpKeyName = static_cast<LPCTSTR>(static_cast<void*>(Marshal::StringToCoTaskMemAnsi(KeyName)));
|
||||
tmpDefaultValue = static_cast<LPCTSTR>(static_cast<void*>(Marshal::StringToCoTaskMemAnsi(DefaultValue)));
|
||||
tmpReturnBuff = static_cast<LPSTR>(static_cast<void*>(Marshal::StringToCoTaskMemAnsi(ValueString)));
|
||||
tmpIniFileName = static_cast<LPCTSTR>(static_cast<void*>(Marshal::StringToCoTaskMemAnsi(IniFileName)));
|
||||
|
||||
rtval = GetPrivateProfileString(tmpSectName,tmpKeyName,tmpDefaultValue,tmpReturnBuff,BufSize,tmpIniFileName);
|
||||
ValueString = new String(tmpReturnBuff);
|
||||
return ValueString;
|
||||
|
||||
}
|
||||
|
||||
bool INIFile::WriteINIKeyValueStr(String *SectName, String *KeyName, String *KeyValue, String *IniFileName)
|
||||
{
|
||||
bool rtval;
|
||||
|
||||
LPCTSTR tmpSectName;
|
||||
LPCTSTR tmpKeyName;
|
||||
LPCTSTR tmpKeyValue;
|
||||
LPCTSTR tmpIniFileName;
|
||||
tmpSectName = static_cast<LPCTSTR>(static_cast<void*>(Marshal::StringToCoTaskMemAnsi(SectName)));
|
||||
tmpKeyName = static_cast<LPCTSTR>(static_cast<void*>(Marshal::StringToCoTaskMemAnsi(KeyName)));
|
||||
tmpKeyValue = static_cast<LPCTSTR>(static_cast<void*>(Marshal::StringToCoTaskMemAnsi(KeyValue)));
|
||||
tmpIniFileName = static_cast<LPCTSTR>(static_cast<void*>(Marshal::StringToCoTaskMemAnsi(IniFileName)));
|
||||
|
||||
rtval = WritePrivateProfileString(tmpSectName,tmpKeyName,tmpKeyValue,tmpIniFileName);
|
||||
|
||||
Marshal::FreeCoTaskMem(System::IntPtr((void*)tmpSectName));
|
||||
Marshal::FreeCoTaskMem(System::IntPtr((void*)tmpKeyName));
|
||||
Marshal::FreeCoTaskMem(System::IntPtr((void*)tmpKeyValue));
|
||||
Marshal::FreeCoTaskMem(System::IntPtr((void*)tmpIniFileName));
|
||||
return rtval;
|
||||
}
|
35
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/IniFileIO.h
Normal file
35
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/IniFileIO.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/*********************************************************************************************
|
||||
* Copyright 2003 - Volian Enterprises, Inc. All rights reserved.
|
||||
* Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||
* ------------------------------------------------------------------------------
|
||||
* $Workfile: IniFileIO.h $ $Revision: 3 $
|
||||
* $Author: Jsj $ $Date: 12/16/03 11:39a $
|
||||
*
|
||||
* $History: IniFileIO.h $
|
||||
*
|
||||
* ***************** Version 3 *****************
|
||||
* User: Jsj Date: 12/16/03 Time: 11:39a
|
||||
* Updated in $/LibSource/IniFileIO
|
||||
* modified to all use in .net 1.0 and .net 1.1
|
||||
*********************************************************************************************/
|
||||
// IniFileIO.h
|
||||
|
||||
#pragma once
|
||||
#using <mscorlib.dll>
|
||||
#include <Windows.h>
|
||||
#include <atlstr.h>
|
||||
|
||||
using namespace System;
|
||||
using namespace System::Runtime::InteropServices;
|
||||
|
||||
namespace IniFileIO
|
||||
{
|
||||
public __gc class INIFile
|
||||
{
|
||||
public:
|
||||
String *ValueString;
|
||||
INIFile() {};
|
||||
String *GetINIKeyValueStr(String *SectName, String *KeyName, String *DefaultValue, unsigned BufSize, String *IniFileName);
|
||||
bool WriteINIKeyValueStr(String *SectName, String *KeyName, String *KeyValue, String *IniFileName);
|
||||
};
|
||||
}
|
21
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/IniFileIO.sln
Normal file
21
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/IniFileIO.sln
Normal file
@@ -0,0 +1,21 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IniFileIO", "IniFileIO.vcproj", "{FD05F903-0D2F-11D7-859A-D0745C000000}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
Debug = Debug
|
||||
Release = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{FD05F903-0D2F-11D7-859A-D0745C000000}.Debug.ActiveCfg = Debug|Win32
|
||||
{FD05F903-0D2F-11D7-859A-D0745C000000}.Debug.Build.0 = Debug|Win32
|
||||
{FD05F903-0D2F-11D7-859A-D0745C000000}.Release.ActiveCfg = Release|Win32
|
||||
{FD05F903-0D2F-11D7-859A-D0745C000000}.Release.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
238
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/IniFileIO.vcproj
Normal file
238
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/IniFileIO.vcproj
Normal file
@@ -0,0 +1,238 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="IniFileIO"
|
||||
ProjectGUID="{FD05F903-0D2F-11D7-859A-D0745C000000}"
|
||||
Keyword="ManagedCProj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="e:\ve-proms.net\bin"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="4"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions="/clr:initialAppDomain"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="true"
|
||||
DefaultCharIsUnsigned="false"
|
||||
TreatWChar_tAsBuiltInType="false"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/NOENTRY"
|
||||
OutputFile="$(OutDir)/IniFileIO.dll"
|
||||
LinkIncremental="2"
|
||||
ForceSymbolReferences="__DllMainCRTStartup@12"
|
||||
GenerateDebugInformation="true"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="E:\Ve-proms.net\BIN"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="4"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions="/clr:initialAppDomain"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG"
|
||||
MinimalRebuild="false"
|
||||
UsePrecompiledHeader="2"
|
||||
WarningLevel="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/NOENTRY"
|
||||
OutputFile="$(OutDir)/IniFileIO.dll"
|
||||
LinkIncremental="1"
|
||||
ForceSymbolReferences="__DllMainCRTStartup@12"
|
||||
GenerateDebugInformation="false"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm"
|
||||
>
|
||||
<File
|
||||
RelativePath="AssemblyInfo.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="IniFileIO.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Stdafx.cpp"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc"
|
||||
>
|
||||
<File
|
||||
RelativePath="IniFileIO.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Stdafx.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;r"
|
||||
>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath="ReadMe.txt"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
31
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/ReadMe.txt
Normal file
31
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/ReadMe.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
========================================================================
|
||||
DYNAMIC LINK LIBRARY : IniFileIO Project Overview
|
||||
========================================================================
|
||||
|
||||
AppWizard has created this IniFileIO DLL for you.
|
||||
|
||||
This file contains a summary of what you will find in each of the files that
|
||||
make up your IniFileIO application.
|
||||
|
||||
IniFileIO.vcproj
|
||||
This is the main project file for VC++ projects generated using an Application Wizard.
|
||||
It contains information about the version of Visual C++ that generated the file, and
|
||||
information about the platforms, configurations, and project features selected with the
|
||||
Application Wizard.
|
||||
|
||||
IniFileIO.cpp
|
||||
This is the main DLL source file.
|
||||
|
||||
IniFileIO.h
|
||||
This file contains a class declaration.
|
||||
|
||||
AssemblyInfo.cpp
|
||||
Contains custom attributes for modifying assembly metadata.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
Other notes:
|
||||
|
||||
AppWizard uses "TODO:" to indicate parts of the source code you
|
||||
should add to or customize.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
@@ -0,0 +1,5 @@
|
||||
// stdafx.cpp : source file that includes just the standard includes
|
||||
// IniFileIO.pch will be the pre-compiled header
|
||||
// stdafx.obj will contain the pre-compiled type information
|
||||
|
||||
#include "stdafx.h"
|
8
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/Stdafx.h
Normal file
8
PROMS/ReferencedObjectsOld/LibSource/IniFileIO/Stdafx.h
Normal file
@@ -0,0 +1,8 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently,
|
||||
// but are changed infrequently
|
||||
|
||||
#pragma once
|
||||
|
||||
#using <mscorlib.dll>
|
||||
|
Reference in New Issue
Block a user