This topic describes the settings for Microsoft Visual C++ you must use when compiling with the StreamBase C++ Client library to build StreamBase client applications and custom functions.
Note
Starting with StreamBase release 7.2.0, the header files, DLLs, and library files required to build native code for Windows were removed from the primary StreamBase kit and are instead in a separate kit with its own installation package.
To develop C++ native code for Windows, after you install StreamBase,
you must install the Windows Native SDK Package from the installer file provided as
a separate download from download.streambase.com. The same kit is on the
StreamBase DVD-ROM and on the downloaded ISO image of that DVD-ROM. In
all cases, the installer file's name is in the form StreamBase-windows-native-SDK-. There is one installer package
for both 32-bit and 64-bit editions of Windows. Development in a .NET language does
not require this kit.
release-datecode.msi
When developing C++ native code for Windows using any of the supported compilers,
specify the <streambase/Client.hpp> header file
in your code instead of the older StreamBaseClient.hpp
file. The Client.hpp file identifies when the Visual
C++ 2010 compiler is in use and arranges for the correct, compiler-specific version
of the supporting libraries to be automatically loaded. For compiler versions earlier
that Visual C++ 2010, Client.hpp imports all the same
definitions as StreamBaseClient.hpp.
StreamBase Systems recommends transitioning your client code to use
<streambase/Client.hpp> even when using compilers
earlier than Visual C++ 2010. The compiler version detection in Client.hpp is ready for future Microsoft compiler versions as well
as Visual C++ 2010.
To configure Visual C++, use the instructions in the subsection appropriate for your compiler version and intended target:
The following table describes the Visual C++ versions supported for building client applications and custom functions in C++ for StreamBase hosted on Windows:
| StreamBase Extension | Visual C++ 7.1 | Visual C++ 8.0 | Visual C++ 9.0 | Visual C++ 10.0 |
|---|---|---|---|---|
| Client applications | can use | can use | can use | can use |
| Custom functions for 32-bit Windows | must use | — | — | — |
| Custom functions for 64-bit Windows | — | must use | — | — |
The next table clarifies the relationship between Microsoft Visual Studio product names and Visual C++ versions:
| Visual Studio Name | Visual C++ Version |
|---|---|
| Visual Studio .NET 2003 | includes Visual C++ 7.1 |
| Visual Studio 2005 | includes Visual C++ 8.0 |
| Visual Studio 2008 | includes Visual C++ 9.0 |
| Visual Studio 2010 | includes Visual C++ 10.0 |
