Skip to content

Commit cf80f25

Browse files
committed
committed 1.3 release
1 parent be44df7 commit cf80f25

36 files changed

Lines changed: 521 additions & 82 deletions

‎CHANGELOG‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
This is the changelog file for the POCO C++ Libraries.
22

3-
Release 1.3-20070504 (2007-05-04)
4-
=================================
3+
Release 1.3.0 (2007-05-07)
4+
==========================
55

66
- added HashMap, HashSet classes
77
- the HashFunction class template has been changed in an incompatible
@@ -37,7 +37,7 @@ Release 1.3-20070504 (2007-05-04)
3737
- added another constructor to LocalDateTime
3838
- POCO_WIN32_UTF8 is ignored on non-Windows platforms
3939
- fixed a timeout bug (with NetSSL) in HTTPSession
40-
- AsyncChannel is automatically opened with first log()\
40+
- AsyncChannel is automatically opened with first log()
4141
- minor fix to NotificationQueue sample (reported by Laszlo Keresztfalvi)
4242
- added File::canExecute() and File::setExecutable()
4343
- added SharedMemory class to Foundation
@@ -85,6 +85,15 @@ Release 1.3-20070504 (2007-05-04)
8585
for UTF-8 encoded strings.
8686
- added UnWindows.h header file, replaced all #include <windows.h> with #include "Poco/UnWindows.h".
8787
See the Poco/UnWindows.h header file for a rationale and explanations.
88+
- fixed SF# 1713820: StreamSocketImpl::sendBytes sends too many bytes
89+
- File::copyTo(): on Windows, the copy now always has the read-only flag reset, to be consistent
90+
with other platforms.
91+
- With Microsoft Visual C++, the necessary POCO libraries are now implicitly linked when
92+
the corresponding header files are included (#pragma comment(lib, "PocoXYZ.lib") is used).
93+
To disable this, compile POCO with the preprocessor symbol POCO_NO_AUTOMATIC_LIBS #define'd
94+
(see Poco/Foundation.h and Poco/Config.h).
95+
- The Visual Studio project files for the POCO libraries now include configurations
96+
for building static libraries.
8897

8998

9099
Release 1.2.9 (2007-02-26)
@@ -731,4 +740,4 @@ building the libraries.
731740

732741

733742
--
734-
$Id: //poco/Main/dist/CHANGELOG#57 $
743+
$Id: //poco/Main/dist/CHANGELOG#60 $

‎Foundation/Foundation_vs71.vcproj‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
Name="VCCLCompilerTool"
147147
Optimization="0"
148148
AdditionalIncludeDirectories=".\include"
149-
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;POCO_STATIC;PCRE_STATIC"
149+
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;Foundation_EXPORTS;POCO_STATIC;PCRE_STATIC"
150150
StringPooling="TRUE"
151151
MinimalRebuild="TRUE"
152152
BasicRuntimeChecks="3"
@@ -199,7 +199,7 @@
199199
OmitFramePointers="TRUE"
200200
OptimizeForProcessor="3"
201201
AdditionalIncludeDirectories=".\include"
202-
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;POCO_STATIC;PCRE_STATIC"
202+
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;Foundation_EXPORTS;POCO_STATIC;PCRE_STATIC"
203203
GeneratePreprocessedFile="0"
204204
KeepComments="FALSE"
205205
StringPooling="TRUE"
@@ -686,6 +686,9 @@
686686
<File
687687
RelativePath=".\include\Poco\Types.h">
688688
</File>
689+
<File
690+
RelativePath=".\include\Poco\UnWindows.h">
691+
</File>
689692
<File
690693
RelativePath=".\include\Poco\Void.h">
691694
</File>

‎Foundation/Foundation_vs80.vcproj‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
FavorSizeOrSpeed="1"
231231
OmitFramePointers="true"
232232
AdditionalIncludeDirectories=".\include"
233-
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;POCO_STATIC;PCRE_STATIC"
233+
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;Foundation_EXPORTS;POCO_STATIC;PCRE_STATIC"
234234
GeneratePreprocessedFile="0"
235235
KeepComments="false"
236236
StringPooling="true"
@@ -301,7 +301,7 @@
301301
Name="VCCLCompilerTool"
302302
Optimization="0"
303303
AdditionalIncludeDirectories=".\include"
304-
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;POCO_STATIC;PCRE_STATIC"
304+
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;Foundation_EXPORTS;POCO_STATIC;PCRE_STATIC"
305305
StringPooling="true"
306306
MinimalRebuild="true"
307307
BasicRuntimeChecks="3"
@@ -939,6 +939,10 @@
939939
RelativePath=".\include\Poco\Types.h"
940940
>
941941
</File>
942+
<File
943+
RelativePath=".\include\Poco\UnWindows.h"
944+
>
945+
</File>
942946
<File
943947
RelativePath=".\include\Poco\Void.h"
944948
>

‎Foundation/include/Poco/Config.h‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// Config.h
33
//
4-
// $Id: //poco/Main/Foundation/include/Poco/Config.h#4 $
4+
// $Id: //poco/Main/Foundation/include/Poco/Config.h#5 $
55
//
66
// Library: Foundation
77
// Package: Core
@@ -40,10 +40,14 @@
4040
#define Foundation_Config_INCLUDED
4141

4242

43-
// Define to enable Windows Unicode (UTF-8) support.
43+
// Define to enable Windows Unicode (UTF-8) support
4444
#define POCO_WIN32_UTF8
4545

4646

47+
// Define to disable implicit linking
48+
// #define POCO_NO_AUTOMATIC_LIBS
49+
50+
4751
// Define to disable FPEnvironment support
4852
// #define POCO_NO_FPENVIRONMENT
4953

‎Foundation/include/Poco/Foundation.h‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// Foundation.h
33
//
4-
// $Id: //poco/Main/Foundation/include/Poco/Foundation.h#8 $
4+
// $Id: //poco/Main/Foundation/include/Poco/Foundation.h#9 $
55
//
66
// Library: Foundation
77
// Package: Core
@@ -80,6 +80,28 @@
8080
#endif
8181

8282

83+
//
84+
// Automatically link Foundation library.
85+
//
86+
#if defined(_MSC_VER)
87+
#if !defined(POCO_NO_AUTOMATIC_LIBS) && !defined(Foundation_EXPORTS)
88+
#if defined(POCO_DLL)
89+
#if defined(_DEBUG)
90+
#pragma comment(lib, "PocoFoundationd.lib")
91+
#else
92+
#pragma comment(lib, "PocoFoundation.lib")
93+
#endif
94+
#else
95+
#if defined(_DEBUG)
96+
#pragma comment(lib, "PocoFoundationmtd.lib")
97+
#else
98+
#pragma comment(lib, "PocoFoundationmt.lib")
99+
#endif
100+
#endif
101+
#endif
102+
#endif
103+
104+
83105
//
84106
// Include platform-specific definitions
85107
//

‎Foundation/include/Poco/Platform_WIN32.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// Platform_WIN32.h
33
//
4-
// $Id: //poco/Main/Foundation/include/Poco/Platform_WIN32.h#7 $
4+
// $Id: //poco/Main/Foundation/include/Poco/Platform_WIN32.h#8 $
55
//
66
// Library: Foundation
77
// Package: Core
@@ -67,7 +67,7 @@
6767

6868
// Unicode Support
6969
#if defined(UNICODE) && !defined(POCO_WIN32_UTF8)
70-
#define POCO_WIN32_UTF8
70+
#define POCO_WIN32_UTF8
7171
#endif
7272

7373

‎Foundation/include/Poco/UTF8String.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// UTF8String.h
33
//
4-
// $Id: //poco/Main/Foundation/include/Poco/UTF8String.h#1 $
4+
// $Id: //poco/Main/Foundation/include/Poco/UTF8String.h#2 $
55
//
66
// Library: Foundation
77
// Package: Text
@@ -53,7 +53,7 @@ struct Foundation_API UTF8
5353
/// The various variants of icompare() provide case insensitive comparison
5454
/// for UTF-8 encoded strings.
5555
///
56-
/// toUppwer(), toUpperInPlace(), toLower() and toLowerInPlace() provide
56+
/// toUpper(), toUpperInPlace(), toLower() and toLowerInPlace() provide
5757
/// Unicode-based character case transformation for UTF-8 encoded strings.
5858
{
5959
static int icompare(const std::string& str, std::string::size_type pos, std::string::size_type n, std::string::const_iterator it2, std::string::const_iterator end2);

‎Foundation/src/Debugger.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// Debugger.cpp
33
//
4-
// $Id: //poco/Main/Foundation/src/Debugger.cpp#14 $
4+
// $Id: //poco/Main/Foundation/src/Debugger.cpp#15 $
55
//
66
// Library: Foundation
77
// Package: Core
@@ -91,8 +91,8 @@ void Debugger::message(const std::string& msg)
9191
umsg += '\n';
9292
OutputDebugStringW(umsg.c_str());
9393
#else
94-
OutputDebugString(msg.c_str());
95-
OutputDebugString("\n");
94+
OutputDebugStringA(msg.c_str());
95+
OutputDebugStringA("\n");
9696
#endif
9797
}
9898
#elif defined(POCO_OS_FAMILY_UNIX)

‎Foundation/src/Environment_WIN32.cpp‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// Environment_WIN32.cpp
33
//
4-
// $Id: //poco/Main/Foundation/src/Environment_WIN32.cpp#12 $
4+
// $Id: //poco/Main/Foundation/src/Environment_WIN32.cpp#13 $
55
//
66
// Library: Foundation
77
// Package: Core
@@ -45,10 +45,10 @@ namespace Poco {
4545

4646
std::string EnvironmentImpl::getImpl(const std::string& name)
4747
{
48-
DWORD len = GetEnvironmentVariable(name.c_str(), 0, 0);
48+
DWORD len = GetEnvironmentVariableA(name.c_str(), 0, 0);
4949
if (len == 0) throw NotFoundException(name);
5050
char* buffer = new char[len];
51-
GetEnvironmentVariable(name.c_str(), buffer, len);
51+
GetEnvironmentVariableA(name.c_str(), buffer, len);
5252
std::string result(buffer);
5353
delete [] buffer;
5454
return result;
@@ -57,14 +57,14 @@ std::string EnvironmentImpl::getImpl(const std::string& name)
5757

5858
bool EnvironmentImpl::hasImpl(const std::string& name)
5959
{
60-
DWORD len = GetEnvironmentVariable(name.c_str(), 0, 0);
60+
DWORD len = GetEnvironmentVariableA(name.c_str(), 0, 0);
6161
return len > 0;
6262
}
6363

6464

6565
void EnvironmentImpl::setImpl(const std::string& name, const std::string& value)
6666
{
67-
if (SetEnvironmentVariable(name.c_str(), value.c_str()) == 0)
67+
if (SetEnvironmentVariableA(name.c_str(), value.c_str()) == 0)
6868
{
6969
std::string msg = "cannot set environment variable: ";
7070
msg.append(name);
@@ -139,7 +139,7 @@ std::string EnvironmentImpl::nodeNameImpl()
139139
{
140140
char name[MAX_COMPUTERNAME_LENGTH + 1];
141141
DWORD size = sizeof(name);
142-
if (GetComputerName(name, &size) == 0) throw SystemException("Cannot get computer name");
142+
if (GetComputerNameA(name, &size) == 0) throw SystemException("Cannot get computer name");
143143
return std::string(name);
144144
}
145145

‎Foundation/src/EventLogChannel.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// EventLogChannel.cpp
33
//
4-
// $Id: //poco/Main/Foundation/src/EventLogChannel.cpp#13 $
4+
// $Id: //poco/Main/Foundation/src/EventLogChannel.cpp#14 $
55
//
66
// Library: Foundation
77
// Package: Logging
@@ -69,7 +69,7 @@ EventLogChannel::EventLogChannel():
6969
}
7070
#else
7171
char name[256];
72-
int n = GetModuleFileName(NULL, name, sizeof(name));
72+
int n = GetModuleFileNameA(NULL, name, sizeof(name));
7373
if (n > 0)
7474
{
7575
char* end = name + n - 1;
@@ -299,11 +299,11 @@ std::wstring EventLogChannel::findLibrary(const wchar_t* name)
299299
std::string EventLogChannel::findLibrary(const char* name)
300300
{
301301
std::string path;
302-
HMODULE dll = LoadLibrary(name);
302+
HMODULE dll = LoadLibraryA(name);
303303
if (dll)
304304
{
305305
char name[MAX_PATH + 1];
306-
int n = GetModuleFileName(dll, name, sizeof(name));
306+
int n = GetModuleFileNameA(dll, name, sizeof(name));
307307
if (n > 0) path = name;
308308
FreeLibrary(dll);
309309
}

0 commit comments

Comments
 (0)