svgb hinzugefügt
This commit is contained in:
commit
9fe81392d4
20
svgb.sln
Normal file
20
svgb.sln
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||||
|
# Visual Studio 2008
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "svgb", "svgb\svgb.csproj", "{EF378B10-B9FA-4B0F-ADA9-73E386B690A9}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{EF378B10-B9FA-4B0F-ADA9-73E386B690A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{EF378B10-B9FA-4B0F-ADA9-73E386B690A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{EF378B10-B9FA-4B0F-ADA9-73E386B690A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{EF378B10-B9FA-4B0F-ADA9-73E386B690A9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
116
svgb/Program.cs
Normal file
116
svgb/Program.cs
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
namespace svgb
|
||||||
|
{
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
public static int SVGB_EXIT_OK = 0;
|
||||||
|
public static int SVGB_EXIT_USAGE = 1;
|
||||||
|
public static int SVGB_EXIT_ERROR = 2;
|
||||||
|
public static int SVGB_EXIT_UNSUPPORTED = 3;
|
||||||
|
public static string APP_VERSION = "0.9.1";
|
||||||
|
|
||||||
|
public static int Main(string[] argv)
|
||||||
|
{
|
||||||
|
int argc = argv.Length;
|
||||||
|
int ret = SVGB_EXIT_ERROR;
|
||||||
|
MEM_InitModule();
|
||||||
|
if(argc == 2 || argc == 3)
|
||||||
|
{
|
||||||
|
File * in = FILE_Open();
|
||||||
|
if(in)
|
||||||
|
{
|
||||||
|
File * out;
|
||||||
|
if(argc == 2)
|
||||||
|
{
|
||||||
|
outfile = "stdout";
|
||||||
|
out = FILE_AttachToFile();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
outfile = argv[2];
|
||||||
|
out = FILE_Open();
|
||||||
|
}
|
||||||
|
if(out)
|
||||||
|
{
|
||||||
|
File * wrap = FILE_Wrap(2);
|
||||||
|
if(wrap)
|
||||||
|
{
|
||||||
|
if(SVGB_Decode())
|
||||||
|
{
|
||||||
|
ret = SVGB_EXIT_OK;
|
||||||
|
}
|
||||||
|
FILE_Detach();
|
||||||
|
FILE_Close();
|
||||||
|
}
|
||||||
|
else if(SVGB_Decode())
|
||||||
|
{
|
||||||
|
ret = SVGB_EXIT_OK;
|
||||||
|
}
|
||||||
|
FILE_Detach();
|
||||||
|
FILE_Close();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Error("%s: can't create output file %s\n");
|
||||||
|
}
|
||||||
|
FILE_Close();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Error("%s: can't open input file %s\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Output("Usage: %s input [output]\n");
|
||||||
|
ret = SVGB_EXIT_ERROR;
|
||||||
|
}
|
||||||
|
MEM_Shutdown();
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
int ret = SVGB_EXIT_ERROR;
|
||||||
|
string outfile;
|
||||||
|
string infile;
|
||||||
|
if (args.Length == 2 || args.Length == 3) {
|
||||||
|
infile = args[1];
|
||||||
|
BinaryReader ein = new BinaryReader(File.Open(infile, FileMode.Open), System.Text.Encoding.Default);
|
||||||
|
if (ein != null) {
|
||||||
|
StreamWriter aus;
|
||||||
|
if (args.Length == 2) {
|
||||||
|
outfile = "stdout";
|
||||||
|
aus = new StreamWriter(outfile);
|
||||||
|
} else {
|
||||||
|
outfile = args[2];
|
||||||
|
aus = new StreamWriter(outfile);
|
||||||
|
}
|
||||||
|
if (aus != null) {
|
||||||
|
SvgDec a = new SvgDec(ein, aus);
|
||||||
|
if (a.getReturnCode()) {
|
||||||
|
ret = SVGB_EXIT_OK;
|
||||||
|
}
|
||||||
|
aus.Close();
|
||||||
|
} else {
|
||||||
|
Console.WriteLine("{0} can't create output file {1}","svgb.exe",outfile);
|
||||||
|
}
|
||||||
|
ein.Close();
|
||||||
|
} else {
|
||||||
|
Console.WriteLine("{0} can't open input file {1}","svgb.exe",infile);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Console.WriteLine("SVGB to SVG converter version "+APP_VERSION);
|
||||||
|
Console.WriteLine("Usage: {0} input [output]\n", "svgb.exe");
|
||||||
|
ret = SVGB_EXIT_ERROR;
|
||||||
|
}
|
||||||
|
Environment.ExitCode = ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
36
svgb/Properties/AssemblyInfo.cs
Normal file
36
svgb/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||||
|
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||||
|
// die mit einer Assembly verknüpft sind.
|
||||||
|
[assembly: AssemblyTitle("svgb")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("svgb")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2009")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
|
||||||
|
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
|
||||||
|
// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||||
|
[assembly: Guid("0bbcc8cc-0d8c-48f0-9e86-98b05a1ce2e1")]
|
||||||
|
|
||||||
|
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||||
|
//
|
||||||
|
// Hauptversion
|
||||||
|
// Nebenversion
|
||||||
|
// Buildnummer
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||||
|
// übernehmen, indem Sie "*" eingeben:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
96
svgb/SvgDec.cs
Normal file
96
svgb/SvgDec.cs
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
namespace svgb
|
||||||
|
{
|
||||||
|
class SvgDec
|
||||||
|
{
|
||||||
|
static const uint SvgFileStart = 0x03FA56CC;
|
||||||
|
static const string SVG_START = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"+
|
||||||
|
"<!-- Decoded by SVGB to SVG converter version "+Program.APP_VERSION+" -->\n"+
|
||||||
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" "+
|
||||||
|
"\"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\n";
|
||||||
|
private bool ok;
|
||||||
|
public SvgDec(BinaryReader ein, StreamWriter aus)
|
||||||
|
{
|
||||||
|
//Stack stack;
|
||||||
|
//STACK_Init(&stack, 0);
|
||||||
|
this.ok = this.SVGB_Decode2(ein, aus);
|
||||||
|
//STACK_Destroy(&stack);
|
||||||
|
}
|
||||||
|
public bool getReturnCode()
|
||||||
|
{
|
||||||
|
return this.ok;
|
||||||
|
}
|
||||||
|
private bool SVGB_Decode2(BinaryReader ein, StreamWriter aus)
|
||||||
|
{
|
||||||
|
uint start;
|
||||||
|
start = ein.ReadUInt32();
|
||||||
|
if (start != null) {
|
||||||
|
if (start == SvgFileStart) {
|
||||||
|
byte c;
|
||||||
|
aus.Write(SVG_START);
|
||||||
|
while (true) {
|
||||||
|
try
|
||||||
|
{
|
||||||
|
c = ein.ReadByte();
|
||||||
|
if (c == SvgFileEnd) {
|
||||||
|
if (FILE_ReadAll(in,&c,1)) {
|
||||||
|
FILE_PushBack(in, &c,1);
|
||||||
|
Warning("%s: trailing date ignored\n",pname);
|
||||||
|
}
|
||||||
|
ASSERT(STACK_IsEmpty(stack));
|
||||||
|
return True;
|
||||||
|
} else if (c == SvgElementEnd) {
|
||||||
|
const SvgElement * elem = STACK_Pop(stack);
|
||||||
|
if (elem) {
|
||||||
|
XML_CloseTag(out, elem->name, True);
|
||||||
|
} else {
|
||||||
|
Error("%s: parse error (element stack underflow)\n",
|
||||||
|
pname);
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
} else if (c == SvgCData) {
|
||||||
|
char * str = SVGB_ReadString(in);
|
||||||
|
if (str) {
|
||||||
|
Bool wrap = WRAP_IsEnabled(out);
|
||||||
|
if (wrap) WRAP_Enable(out, False);
|
||||||
|
FILE_Puts(out, str);
|
||||||
|
if (wrap) WRAP_Enable(out, True);
|
||||||
|
MEM_Free(str);
|
||||||
|
} else {
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
} else if (c < COUNT(SVGB_ELEMS)) {
|
||||||
|
const SvgElement * elem = SVGB_ELEMS + c;
|
||||||
|
SvgDecodeElemStatus s = SVGB_DecodeElement(elem,in,out);
|
||||||
|
ASSERT(elem->code == c);
|
||||||
|
switch (s) {
|
||||||
|
case SvgDecodeElemStarted:
|
||||||
|
STACK_Push(stack, (SElement)elem);
|
||||||
|
case SvgDecodeElemFinished:
|
||||||
|
break;
|
||||||
|
case SvgDecodeError:
|
||||||
|
default:
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Error("%s: unexpected element %u at offset 0x%06X (%u)\n",
|
||||||
|
pname,(unsigned int)c, FILE_BytesRead(in)-1,
|
||||||
|
FILE_BytesRead(in)-1);
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Error("%s: this is not an S60 svgb file\n",pname);
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Error("%s: error reading input\n");
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1050
svgb/svg_dec.c
Normal file
1050
svgb/svg_dec.c
Normal file
File diff suppressed because it is too large
Load Diff
83
svgb/svgb.c
Normal file
83
svgb/svgb.c
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
/*
|
||||||
|
* $Id: svgb.c,v 1.1 2007/01/27 02:40:52 slava Exp $
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007 by Slava Monich
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
|
*
|
||||||
|
* 1.Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
* 2.Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer
|
||||||
|
* in the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
||||||
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||||
|
* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING
|
||||||
|
* IN ANY WAY OUT OF THE USE OR INABILITY TO USE THIS SOFTWARE, EVEN
|
||||||
|
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
* The views and conclusions contained in the software and documentation
|
||||||
|
* are those of the authors and should not be interpreted as representing
|
||||||
|
* any official policies, either expressed or implied.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "svgb.h"
|
||||||
|
|
||||||
|
const Str pname = "svgb";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Entry point for SVGB decoder
|
||||||
|
*/
|
||||||
|
int main(int argc, char * argv[])
|
||||||
|
{
|
||||||
|
int ret = SVGB_EXIT_ERROR;
|
||||||
|
MEM_InitModule();
|
||||||
|
if (argc == 2 || argc == 3) {
|
||||||
|
Str infile = argv[1];
|
||||||
|
File * in = FILE_Open(infile, READ_BINARY_MODE, NULL);
|
||||||
|
if (in) {
|
||||||
|
Str outfile;
|
||||||
|
File * out;
|
||||||
|
if (argc == 2) {
|
||||||
|
outfile = "stdout";
|
||||||
|
out = FILE_AttachToFile(stdout, outfile);
|
||||||
|
} else {
|
||||||
|
outfile = argv[2];
|
||||||
|
out = FILE_Open(outfile, WRITE_TEXT_MODE, NULL);
|
||||||
|
}
|
||||||
|
if (out) {
|
||||||
|
File * wrap = FILE_Wrap(out, 2, INT_MAX);
|
||||||
|
if (wrap) {
|
||||||
|
if (SVGB_Decode(in, wrap)) {
|
||||||
|
ret = SVGB_EXIT_OK;
|
||||||
|
}
|
||||||
|
FILE_Detach(wrap);
|
||||||
|
FILE_Close(wrap);
|
||||||
|
} else if (SVGB_Decode(in, out)) {
|
||||||
|
ret = SVGB_EXIT_OK;
|
||||||
|
}
|
||||||
|
FILE_Detach(out);
|
||||||
|
FILE_Close(out);
|
||||||
|
} else {
|
||||||
|
Error("%s: can't create output file %s\n",pname,outfile);
|
||||||
|
}
|
||||||
|
FILE_Close(in);
|
||||||
|
} else {
|
||||||
|
Error("%s: can't open input file %s\n",pname,infile);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Output("SVGB to SVG converter version "APP_VERSION"\n");
|
||||||
|
Output("Usage: %s input [output]\n",pname);
|
||||||
|
ret = SVGB_EXIT_ERROR;
|
||||||
|
}
|
||||||
|
MEM_Shutdown();
|
||||||
|
return ret;
|
||||||
|
}
|
65
svgb/svgb.csproj
Normal file
65
svgb/svgb.csproj
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProductVersion>9.0.30729</ProductVersion>
|
||||||
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
|
<ProjectGuid>{EF378B10-B9FA-4B0F-ADA9-73E386B690A9}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>svgb</RootNamespace>
|
||||||
|
<AssemblyName>svgb</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core">
|
||||||
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Xml.Linq">
|
||||||
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Data.DataSetExtensions">
|
||||||
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="SvgDec.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="svgb.c" />
|
||||||
|
<Content Include="svgb.h" />
|
||||||
|
<Content Include="svg_dec.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
47
svgb/svgb.h
Normal file
47
svgb/svgb.h
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* $Id: svgb.h,v 1.1 2007/01/27 02:40:52 slava Exp $
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007 by Slava Monich
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
|
*
|
||||||
|
* 1.Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
* 2.Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer
|
||||||
|
* in the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
||||||
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||||
|
* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING
|
||||||
|
* IN ANY WAY OUT OF THE USE OR INABILITY TO USE THIS SOFTWARE, EVEN
|
||||||
|
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
* The views and conclusions contained in the software and documentation
|
||||||
|
* are those of the authors and should not be interpreted as representing
|
||||||
|
* any official policies, either expressed or implied.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _SVGB_H_
|
||||||
|
#define _SVGB_H_ 1
|
||||||
|
|
||||||
|
#include "s_lib.h"
|
||||||
|
|
||||||
|
#define SVGB_EXIT_OK 0
|
||||||
|
#define SVGB_EXIT_USAGE 1
|
||||||
|
#define SVGB_EXIT_ERROR 2
|
||||||
|
#define SVGB_EXIT_UNSUPPORTED 3
|
||||||
|
|
||||||
|
extern const Str pname;
|
||||||
|
extern Bool SVGB_Decode(File * in, File * out);
|
||||||
|
|
||||||
|
#define APP_VERSION "0.9.1"
|
||||||
|
|
||||||
|
#endif /* _SVGB_H_ */
|
20
svgb1/svgb1.sln
Normal file
20
svgb1/svgb1.sln
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||||
|
# Visual Studio 2008
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "svgb1", "svgb1\svgb1.vcproj", "{7186A3A0-E05D-4920-B7AF-8548E22440B7}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{7186A3A0-E05D-4920-B7AF-8548E22440B7}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{7186A3A0-E05D-4920-B7AF-8548E22440B7}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{7186A3A0-E05D-4920-B7AF-8548E22440B7}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{7186A3A0-E05D-4920-B7AF-8548E22440B7}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
36
svgb1/svgb1/ReadMe.txt
Normal file
36
svgb1/svgb1/ReadMe.txt
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
========================================================================
|
||||||
|
KONSOLENANWENDUNG: svgb1-Projektübersicht
|
||||||
|
========================================================================
|
||||||
|
|
||||||
|
Diese svgb1-Anwendung wurde vom Anwendungs-Assistenten
|
||||||
|
für Sie erstellt.
|
||||||
|
|
||||||
|
Die Datei enthält eine Zusammenfassung des Inhalts der Dateien,
|
||||||
|
aus denen die svgb1-Anwendung besteht.
|
||||||
|
|
||||||
|
|
||||||
|
svgb1.vcproj
|
||||||
|
Dies ist die Hauptprojektdatei für VC++-Projekte, die mit dem Anwendungs-
|
||||||
|
Assistenten generiert werden.
|
||||||
|
Sie enthält Informationen zu der Version von Visual C++, mit der die Datei
|
||||||
|
generiert wurde, sowie Informationen zu Plattformen, Konfigurationen und
|
||||||
|
Projektfeatures, die mit dem dem Anwendungs-Assistenten generiert werden.
|
||||||
|
|
||||||
|
svgb1.cpp
|
||||||
|
Dies ist die Hauptquelldatei der Anwendung.
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
Andere Standarddateien:
|
||||||
|
|
||||||
|
StdAfx.h, StdAfx.cpp
|
||||||
|
Mit diesen Dateien werden eine vorkompilierte Headerdatei (PCH)
|
||||||
|
mit dem Namen svgb1.pch sowie eine vorkompilierte
|
||||||
|
Typendatei mit dem Namen StdAfx.obj erstellt.
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
Weitere Hinweise:
|
||||||
|
|
||||||
|
Der Anwendungs-Assistent verwendet "TODO:"-Kommentare, um die Teile des
|
||||||
|
Quellcodes anzugeben, die hinzugefügt oder bearbeitet werden müssen.
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
8
svgb1/svgb1/stdafx.c
Normal file
8
svgb1/svgb1/stdafx.c
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
// stdafx.cpp : Quelldatei, die nur die Standard-Includes einbindet.
|
||||||
|
// svgb1.pch ist der vorkompilierte Header.
|
||||||
|
// stdafx.obj enthält die vorkompilierten Typinformationen.
|
||||||
|
|
||||||
|
#include "stdafx.h"
|
||||||
|
|
||||||
|
// TODO: Auf zusätzliche Header verweisen, die in STDAFX.H
|
||||||
|
// und nicht in dieser Datei erforderlich sind.
|
29
svgb1/svgb1/stdafx.h
Normal file
29
svgb1/svgb1/stdafx.h
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
// stdafx.h : Includedatei für Standardsystem-Includedateien
|
||||||
|
// oder häufig verwendete projektspezifische Includedateien,
|
||||||
|
// die nur in unregelmäßigen Abständen geändert werden.
|
||||||
|
//
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "targetver.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <tchar.h>
|
||||||
|
|
||||||
|
#ifndef _SVGB_H_
|
||||||
|
#define _SVGB_H_ 1
|
||||||
|
|
||||||
|
|
||||||
|
#define SVGB_EXIT_OK 0
|
||||||
|
#define SVGB_EXIT_USAGE 1
|
||||||
|
#define SVGB_EXIT_ERROR 2
|
||||||
|
#define SVGB_EXIT_UNSUPPORTED 3
|
||||||
|
|
||||||
|
//extern const Str pname;
|
||||||
|
//extern Bool SVGB_Decode(File * in, File * out);
|
||||||
|
|
||||||
|
#define APP_VERSION "0.9.1"
|
||||||
|
|
||||||
|
#endif /* _SVGB_H_ */
|
||||||
|
|
||||||
|
// TODO: Hier auf zusätzliche Header, die das Programm erfordert, verweisen.
|
55
svgb1/svgb1/svgb1.c
Normal file
55
svgb1/svgb1/svgb1.c
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
// svgb1.cpp : Definiert den Einstiegspunkt für die Konsolenanwendung.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "stdafx.h"
|
||||||
|
|
||||||
|
const Str pname = "svgb";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Entry point for SVGB decoder
|
||||||
|
*/
|
||||||
|
int _tmain(int argc, _TCHAR* argv[])
|
||||||
|
{
|
||||||
|
int ret = SVGB_EXIT_ERROR;
|
||||||
|
MEM_InitModule();
|
||||||
|
if (argc == 2 || argc == 3) {
|
||||||
|
Str infile = argv[1];
|
||||||
|
File * in = FILE_Open(infile, READ_BINARY_MODE, NULL);
|
||||||
|
if (in) {
|
||||||
|
Str outfile;
|
||||||
|
File * out;
|
||||||
|
if (argc == 2) {
|
||||||
|
outfile = "stdout";
|
||||||
|
out = FILE_AttachToFile(stdout, outfile);
|
||||||
|
} else {
|
||||||
|
outfile = argv[2];
|
||||||
|
out = FILE_Open(outfile, WRITE_TEXT_MODE, NULL);
|
||||||
|
}
|
||||||
|
if (out) {
|
||||||
|
File * wrap = FILE_Wrap(out, 2, INT_MAX);
|
||||||
|
if (wrap) {
|
||||||
|
if (SVGB_Decode(in, wrap)) {
|
||||||
|
ret = SVGB_EXIT_OK;
|
||||||
|
}
|
||||||
|
FILE_Detach(wrap);
|
||||||
|
FILE_Close(wrap);
|
||||||
|
} else if (SVGB_Decode(in, out)) {
|
||||||
|
ret = SVGB_EXIT_OK;
|
||||||
|
}
|
||||||
|
FILE_Detach(out);
|
||||||
|
FILE_Close(out);
|
||||||
|
} else {
|
||||||
|
Error("%s: can't create output file %s\n",pname,outfile);
|
||||||
|
}
|
||||||
|
FILE_Close(in);
|
||||||
|
} else {
|
||||||
|
Error("%s: can't open input file %s\n",pname,infile);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Output("SVGB to SVG converter version "APP_VERSION"\n");
|
||||||
|
Output("Usage: %s input [output]\n",pname);
|
||||||
|
ret = SVGB_EXIT_ERROR;
|
||||||
|
}
|
||||||
|
MEM_Shutdown();
|
||||||
|
return ret;
|
||||||
|
}
|
229
svgb1/svgb1/svgb1.vcproj
Normal file
229
svgb1/svgb1/svgb1.vcproj
Normal file
@ -0,0 +1,229 @@
|
|||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<VisualStudioProject
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="9,00"
|
||||||
|
Name="svgb1"
|
||||||
|
ProjectGUID="{7186A3A0-E05D-4920-B7AF-8548E22440B7}"
|
||||||
|
RootNamespace="svgb1"
|
||||||
|
Keyword="Win32Proj"
|
||||||
|
TargetFrameworkVersion="196613"
|
||||||
|
>
|
||||||
|
<Platforms>
|
||||||
|
<Platform
|
||||||
|
Name="Win32"
|
||||||
|
/>
|
||||||
|
</Platforms>
|
||||||
|
<ToolFiles>
|
||||||
|
</ToolFiles>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="4"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
LinkIncremental="2"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="1"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
CharacterSet="1"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
EnableIntrinsicFunctions="true"
|
||||||
|
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
EnableFunctionLevelLinking="true"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
LinkIncremental="1"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
</References>
|
||||||
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="Quelldateien"
|
||||||
|
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||||
|
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\stdafx.c"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\svgb\svgb\svg_dec.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\svgb1.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Headerdateien"
|
||||||
|
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||||
|
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\stdafx.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\targetver.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Ressourcendateien"
|
||||||
|
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||||
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||||
|
>
|
||||||
|
</Filter>
|
||||||
|
<File
|
||||||
|
RelativePath=".\ReadMe.txt"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Globals>
|
||||||
|
</Globals>
|
||||||
|
</VisualStudioProject>
|
65
svgb1/svgb1/svgb1.vcproj.Phil.netz.user
Normal file
65
svgb1/svgb1/svgb1.vcproj.Phil.netz.user
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<VisualStudioUserFile
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="9,00"
|
||||||
|
ShowAllFiles="false"
|
||||||
|
>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command="$(TargetPath)"
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="PHIL"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command="$(TargetPath)"
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="PHIL"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
</VisualStudioUserFile>
|
13
svgb1/svgb1/targetver.h
Normal file
13
svgb1/svgb1/targetver.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
// Die folgenden Makros definieren die mindestens erforderliche Plattform. Die mindestens erforderliche Plattform
|
||||||
|
// ist die früheste Windows-, Internet Explorer-Version usw., die über die erforderlichen Features zur Ausführung
|
||||||
|
// Ihrer Anwendung verfügt. Die Makros aktivieren alle Funktionen, die auf den Plattformversionen bis
|
||||||
|
// einschließlich der angegebenen Version verfügbar sind.
|
||||||
|
|
||||||
|
// Ändern Sie folgende Definitionen für Plattformen, die älter als die unten angegebenen sind.
|
||||||
|
// Unter MSDN finden Sie die neuesten Informationen über die entsprechenden Werte für die unterschiedlichen Plattformen.
|
||||||
|
#ifndef _WIN32_WINNT // Gibt an, dass Windows Vista die mindestens erforderliche Plattform ist.
|
||||||
|
#define _WIN32_WINNT 0x0600 // Ändern Sie den entsprechenden Wert, um auf andere Versionen von Windows abzuzielen.
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user