-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added MSBuildCommunityTasksPath msbuild property to allow building without requiring the MSBuild Community Tasks to be installed Added WinDDK 7600.16385.1, and importing msi.props in projects to set up additional include and library directories to allow building without Visual Studio 2010 to be installed Updated atlbase.h to fix warning LNK4254: section 'ATL' (50000040) merged into '.rdata' (40000040) with different attributes Added doxygen 1.8.5 to allow building without requiring doxygen to be installed Using "localhost" for the DSN ODBC SQL Server address and explicitly specifying the default port number to support accessing a named instance from the default port without specifying the instance name Added appveyor.yml
- Loading branch information
Showing
247 changed files
with
183,426 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
version: '{build}' | ||
init: | ||
- ps: >- | ||
# MSXML 4.0 Service Pack 3 (Microsoft XML Core Services) | ||
Write-Host "Downloading MSXML 4.0 Service Pack 3 (Microsoft XML Core Services)..." -ForegroundColor Green | ||
$msiFilePath = "$($env:USERPROFILE)\msxml.msi" | ||
$logFilePath = "$($env:TEMP)\msxml.txt" | ||
(New-Object Net.WebClient).DownloadFile('http://download.microsoft.com/download/A/2/D/A2D8587D-0027-4217-9DAD-38AFDB0A177E/msxml.msi', $msiFilePath) | ||
$process = (Start-Process -FilePath "msiexec.exe" -ArgumentList "/i $msiFilePath /quiet /l*v $logFilePath" -Wait -Passthru) | ||
$exitCode = $process.ExitCode | ||
if ($exitCode -ne 0) | ||
{ | ||
Get-Content $logFilePath | ||
throw "Command failed with exit code $exitCode." | ||
} | ||
del $msiFilePath | ||
del $logFilePath | ||
Write-Host "MSXML 4.0 Service Pack 3 (Microsoft XML Core Services) installed successfully" -ForegroundColor Green | ||
# SQL DMO from SQL 2005 Backward Compatibility Components | ||
Write-Host "Downloading SQL DMO from SQL 2005 Backward Compatibility Components..." -ForegroundColor Green | ||
$msiFilePath = "$($env:USERPROFILE)\SQLServer2005_BC_x64.msi" | ||
$logFilePath = "$($env:TEMP)\SQLServer2005_BC_x64.txt" | ||
(New-Object Net.WebClient).DownloadFile('http://download.microsoft.com/download/3/1/6/316FADB2-E703-4351-8E9C-E0B36D9D697E/SQLServer2005_BC_x64.msi', $msiFilePath) | ||
$process = (Start-Process -FilePath "msiexec.exe" -ArgumentList "/i $msiFilePath /quiet /l*v $logFilePath" -Wait -Passthru) | ||
$exitCode = $process.ExitCode | ||
if ($exitCode -ne 0) | ||
{ | ||
Get-Content $logFilePath | ||
throw "Command failed with exit code $exitCode." | ||
} | ||
del $msiFilePath | ||
del $logFilePath | ||
Write-Host "SQL DMO from SQL 2005 Backward Compatibility Components installed successfully" -ForegroundColor Green | ||
# Source: http://geekswithblogs.net/TedStatham/archive/2014/06/13/setting-the-ports-for-a-named-sql-server-instance-using.aspx | ||
# Set the $instanceName value below to the name of the instance you | ||
# want to configure a static port for. This could conceivably be | ||
# passed into the script as a parameter. | ||
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null | ||
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.SqlWmiManagement") | Out-Null | ||
$instanceName = 'SQL2008R2SP2' | ||
$computerName = $env:COMPUTERNAME | ||
$smo = 'Microsoft.SqlServer.Management.Smo.' | ||
$wmi = New-Object ($smo + 'Wmi.ManagedComputer') | ||
# For the named instance, on the current computer, for the TCP protocol, | ||
# loop through all the IPs and configure them to use the standard port | ||
# of 1433. | ||
$uri = "ManagedComputer[@Name='$computerName']/ ServerInstance[@Name='$instanceName']/ServerProtocol[@Name='Tcp']" | ||
$Tcp = $wmi.GetSmoObject($uri) | ||
$Tcp.IsEnabled = $true | ||
foreach ($ipAddress in $Tcp.IPAddresses) | ||
{ | ||
$ipAddress.IPAddressProperties["TcpDynamicPorts"].Value = "" | ||
$ipAddress.IPAddressProperties["TcpPort"].Value = "1433" | ||
} | ||
$Tcp.Alter() | ||
# Enable named pipes | ||
$uri = "ManagedComputer[@Name='$computerName']/ ServerInstance[@Name='$instanceName']/ServerProtocol[@Name='Np']" | ||
$Np = $wmi.GetSmoObject($uri) | ||
$Np.IsEnabled = $true | ||
$pipeName = $Np.ProtocolProperties | Where Name -eq "PipeName" | ||
$pipeName.Value = "\\.\pipe\sql\query" | ||
$Np.Alter() | ||
# Enable shared memory | ||
$uri = "ManagedComputer[@Name='$computerName']/ ServerInstance[@Name='$instanceName']/ServerProtocol[@Name='Sm']" | ||
$Sm = $wmi.GetSmoObject($uri) | ||
$Sm.IsEnabled = $true | ||
$Sm.Alter() | ||
# Restart the named instance of SQL Server to enable the changes. | ||
# Start services | ||
Set-Service SQLBrowser -StartupType Manual | ||
Start-Service SQLBrowser | ||
Start-Service "MSSQL`$$instanceName" | ||
nuget: | ||
disable_publish_on_pr: true | ||
build_script: | ||
- build.cmd all /p:Configuration=Release | ||
test: off | ||
artifacts: | ||
- path: target\Release\drop\msiext*.zip | ||
name: zip | ||
deploy: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
// This is a part of the Microsoft Foundation Classes C++ library. | ||
// Copyright (C) Microsoft Corporation | ||
// All rights reserved. | ||
// | ||
// This source code is only intended as a supplement to the | ||
// Microsoft Foundation Classes Reference and related | ||
// electronic documentation provided with the library. | ||
// See these sources for detailed information regarding the | ||
// Microsoft Foundation Classes product. | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// AFXSTR.H - Framework-independent, templateable string class | ||
|
||
#ifndef __AFXSTR_H__ | ||
#define __AFXSTR_H__ | ||
|
||
#pragma once | ||
|
||
#ifndef _AFX | ||
#error afxstr.h can only be used in MFC projects. Use atlstr.h | ||
#endif | ||
|
||
#include <mbstring.h> | ||
|
||
HINSTANCE AFXAPI AfxGetResourceHandle(); | ||
HINSTANCE AFXAPI AfxFindStringResourceHandle(UINT nID); | ||
|
||
UINT_PTR AFXAPI AfxReadStringLength(CArchive& ar, int& nCharSize); | ||
void AFXAPI AfxWriteStringLength(CArchive& ar, UINT_PTR nLength, BOOL bUnicode); | ||
|
||
#include <atlcore.h> | ||
#include <cstringt.h> | ||
|
||
ATL::IAtlStringMgr* AFXAPI AfxGetStringManager(); | ||
|
||
template< typename _CharType = char, class StringIterator = ATL::ChTraitsCRT< _CharType > > | ||
class StrTraitMFC : | ||
public StringIterator | ||
{ | ||
public: | ||
static HINSTANCE FindStringResourceInstance( UINT nID ) throw() | ||
{ | ||
return( AfxFindStringResourceHandle( nID ) ); | ||
} | ||
|
||
static ATL::IAtlStringMgr* GetDefaultManager() throw() | ||
{ | ||
return( AfxGetStringManager() ); | ||
} | ||
}; | ||
|
||
template< typename _CharType, class StringIterator> | ||
class StrTraitMFC_DLL : public StringIterator | ||
{ | ||
public: | ||
static HINSTANCE FindStringResourceInstance( UINT nID ) throw() | ||
{ | ||
return( AfxFindStringResourceHandle( nID ) ); | ||
} | ||
|
||
static ATL::IAtlStringMgr* GetDefaultManager() throw() | ||
{ | ||
return( AfxGetStringManager() ); | ||
} | ||
}; | ||
|
||
// MFC-enabled compilation. Use MFC memory management and exceptions; | ||
// also, use MFC module state. | ||
|
||
// Don't import when MFC dll is being built | ||
#if defined(_AFXDLL) | ||
|
||
#if defined(_MFC_DLL_BLD) | ||
|
||
template class ATL::CSimpleStringT< char, true >; | ||
template class ATL::CStringT< char, StrTraitMFC_DLL< char > >; | ||
template class ATL::CSimpleStringT< wchar_t, true >; | ||
template class ATL::CStringT< wchar_t, StrTraitMFC_DLL< wchar_t > >; | ||
|
||
#else | ||
|
||
template class __declspec(dllimport) ATL::CSimpleStringT< char, true >; | ||
template class __declspec(dllimport) ATL::CStringT< char, StrTraitMFC_DLL< char > >; | ||
template class __declspec(dllimport) ATL::CSimpleStringT< wchar_t, true >; | ||
template class __declspec(dllimport) ATL::CStringT< wchar_t, StrTraitMFC_DLL< wchar_t > >; | ||
#if defined(_NATIVE_WCHAR_T) | ||
template class __declspec(dllimport) ATL::CSimpleStringT< unsigned short, true >; | ||
template class __declspec(dllimport) ATL::CStringT< unsigned short, StrTraitMFC_DLL< unsigned short > >; | ||
#endif // _NATIVE_WCHAR_T | ||
|
||
#endif // _MFC_DLL_BLD | ||
|
||
typedef ATL::CStringT< wchar_t, StrTraitMFC_DLL< wchar_t > > CStringW; | ||
typedef ATL::CStringT< char, StrTraitMFC_DLL< char > > CStringA; | ||
typedef ATL::CStringT< TCHAR, StrTraitMFC_DLL< TCHAR > > CString; | ||
|
||
#else | ||
|
||
typedef ATL::CStringT< wchar_t, StrTraitMFC< wchar_t > > CStringW; | ||
typedef ATL::CStringT< char, StrTraitMFC< char > > CStringA; | ||
typedef ATL::CStringT< TCHAR, StrTraitMFC< TCHAR > > CString; | ||
|
||
#endif // !_WIN64 && _AFXDLL | ||
|
||
|
||
#endif // __AFXSTR_H__ (whole file) | ||
|
Oops, something went wrong.