Skip to content

Commit 0d63821

Browse files
committed
prj properties change
1 parent cc5dfdb commit 0d63821

12 files changed

Lines changed: 45 additions & 14 deletions

File tree

QuantBox.XAPI/QuantBox.XAPI.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<DebugSymbols>true</DebugSymbols>
1717
<DebugType>full</DebugType>
1818
<Optimize>false</Optimize>
19-
<OutputPath>C:\Program Files\SmartQuant Ltd\OpenQuant 2014\</OutputPath>
19+
<OutputPath>..\bin\</OutputPath>
2020
<DefineConstants>DEBUG;TRACE</DefineConstants>
2121
<ErrorReport>prompt</ErrorReport>
2222
<WarningLevel>4</WarningLevel>
@@ -31,6 +31,7 @@
3131
<DefineConstants>TRACE</DefineConstants>
3232
<ErrorReport>prompt</ErrorReport>
3333
<WarningLevel>4</WarningLevel>
34+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
3435
</PropertyGroup>
3536
<PropertyGroup>
3637
<StartupObject>

QuantBox_CTP_Quote/QuantBox_CTP_Quote.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<PropertyGroup Label="UserMacros" />
9595
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
9696
<LinkIncremental>true</LinkIncremental>
97-
<OutDir>C:\Program Files\SmartQuant Ltd\OpenQuant 2014\XAPI\CTP\x86</OutDir>
97+
<OutDir>..\bin</OutDir>
9898
</PropertyGroup>
9999
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
100100
<LinkIncremental>true</LinkIncremental>

QuantBox_CTP_Trade/QuantBox_CTP_Trade.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<PropertyGroup Label="UserMacros" />
9595
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
9696
<LinkIncremental>true</LinkIncremental>
97-
<OutDir>C:\Program Files\SmartQuant Ltd\OpenQuant 2014\XAPI\CTP\x86</OutDir>
97+
<OutDir>..\bin</OutDir>
9898
</PropertyGroup>
9999
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
100100
<LinkIncremental>true</LinkIncremental>

QuantBox_KingstarStock_Trade/QuantBox_KingstarStock_Trade.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<Optimization>MaxSpeed</Optimization>
6868
<FunctionLevelLinking>true</FunctionLevelLinking>
6969
<IntrinsicFunctions>true</IntrinsicFunctions>
70-
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;QUANTBOX_KINGSTARSTOCK_TRADE_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
70+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;QUANTBOX_KINGSTARSTOCK_TRADE_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
7171
<SDLCheck>true</SDLCheck>
7272
</ClCompile>
7373
<Link>

QuantBox_LTS_Trade/QuantBox_LTS_Trade.vcxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
<PropertyGroup Label="UserMacros" />
7676
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
7777
<LinkIncremental>true</LinkIncremental>
78-
<OutDir>C:\Program Files\SmartQuant Ltd\OpenQuant 2014\XAPI\LTS\x86</OutDir>
78+
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
7979
</PropertyGroup>
8080
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug64|Win32'">
8181
<LinkIncremental>true</LinkIncremental>
@@ -134,6 +134,7 @@
134134
<Text Include="ReadMe.txt" />
135135
</ItemGroup>
136136
<ItemGroup>
137+
<ClInclude Include="..\include\ChinaStock.h" />
137138
<ClInclude Include="..\include\LTS\SecurityFtdcTraderApi.h" />
138139
<ClInclude Include="..\include\LTS\SecurityFtdcUserApiDataType.h" />
139140
<ClInclude Include="..\include\LTS\SecurityFtdcUserApiStruct.h" />
@@ -144,6 +145,7 @@
144145
<ClInclude Include="TypeConvert.h" />
145146
</ItemGroup>
146147
<ItemGroup>
148+
<ClCompile Include="..\include\ChinaStock.cpp" />
147149
<ClCompile Include="..\include\toolkit.cpp" />
148150
<ClCompile Include="dllmain.cpp">
149151
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>

QuantBox_LTS_Trade/QuantBox_LTS_Trade.vcxproj.filters

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
<ClInclude Include="..\include\LTS\SecurityFtdcUserApiStruct.h">
4646
<Filter>include</Filter>
4747
</ClInclude>
48+
<ClInclude Include="..\include\ChinaStock.h">
49+
<Filter>Header Files</Filter>
50+
</ClInclude>
4851
</ItemGroup>
4952
<ItemGroup>
5053
<ClCompile Include="stdafx.cpp">
@@ -65,5 +68,8 @@
6568
<ClCompile Include="..\include\toolkit.cpp">
6669
<Filter>Source Files</Filter>
6770
</ClCompile>
71+
<ClCompile Include="..\include\ChinaStock.cpp">
72+
<Filter>Source Files</Filter>
73+
</ClCompile>
6874
</ItemGroup>
6975
</Project>

QuantBox_Queue/QuantBox_Queue.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
115115
<LinkIncremental>false</LinkIncremental>
116116
<TargetName>QuantBox_Queue_x86</TargetName>
117-
<OutDir>C:\Program Files\SmartQuant Ltd\OpenQuant 2014\XAPI\TongShi\x86</OutDir>
117+
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
118118
</PropertyGroup>
119119
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
120120
<LinkIncremental>false</LinkIncremental>
@@ -187,7 +187,7 @@
187187
<Optimization>MaxSpeed</Optimization>
188188
<FunctionLevelLinking>true</FunctionLevelLinking>
189189
<IntrinsicFunctions>true</IntrinsicFunctions>
190-
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;BUILDING_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
190+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;BUILDING_DLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
191191
<SDLCheck>true</SDLCheck>
192192
</ClCompile>
193193
<Link>

QuantBox_TongShi_Quote/QuantBox_TongShi_Quote.vcxproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,16 @@
7878
<Optimization>MaxSpeed</Optimization>
7979
<FunctionLevelLinking>true</FunctionLevelLinking>
8080
<IntrinsicFunctions>true</IntrinsicFunctions>
81-
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
81+
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
8282
<SDLCheck>true</SDLCheck>
8383
</ClCompile>
8484
<Link>
8585
<SubSystem>Windows</SubSystem>
8686
<GenerateDebugInformation>true</GenerateDebugInformation>
8787
<EnableCOMDATFolding>true</EnableCOMDATFolding>
8888
<OptimizeReferences>true</OptimizeReferences>
89-
<ModuleDefinitionFile>.\QuantBox_TongShi_Quote.def</ModuleDefinitionFile>
89+
<ModuleDefinitionFile>
90+
</ModuleDefinitionFile>
9091
</Link>
9192
<Midl>
9293
<MkTypLibCompatible>false</MkTypLibCompatible>

QuantBox_XAPI/QuantBox_XAPI.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<Optimization>MaxSpeed</Optimization>
6767
<FunctionLevelLinking>true</FunctionLevelLinking>
6868
<IntrinsicFunctions>true</IntrinsicFunctions>
69-
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;QUANTBOX_XAPI_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
69+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;QUANTBOX_XAPI_EXPORTS;_CRT_SECURE_NO_WARNINGS;BUILDING_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
7070
<SDLCheck>true</SDLCheck>
7171
</ClCompile>
7272
<Link>

QuantBox_XAPI_TEST/QuantBox_XAPI_TEST.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ class CXSpiImpl :public CXSpi
4444
int x = mon + i;
4545
int a = x / 12;
4646
int b = x % 12;
47-
sprintf(buf, "IF%d%02d", (1900 + timeinfo->tm_year + a) % 100, b + 1);
47+
sprintf(buf, "au%d%02d", (1900 + timeinfo->tm_year + a) % 100, b + 1);
4848
pApi->Subscribe(buf, "");
49-
sprintf(buf, "TF%d%02d", (1900 + timeinfo->tm_year + a) % 100, b + 1);
49+
sprintf(buf, "ag%d%02d", (1900 + timeinfo->tm_year + a) % 100, b + 1);
5050
pApi->Subscribe(buf, "");
5151
}
5252
}
@@ -237,7 +237,8 @@ int main(int argc, char* argv[])
237237
{
238238
CXSpiImpl* p = new CXSpiImpl();
239239
#if defined WINDOWS || _WIN32
240-
char DLLPath1[250] = "C:\\Program Files\\SmartQuant Ltd\\OpenQuant 2014\\XAPI\\CTP\\x86\\QuantBox_CTP_Quote.dll";
240+
//char DLLPath1[250] = "C:\\Program Files\\SmartQuant Ltd\\OpenQuant 2014\\XAPI\\CTP\\x86\\QuantBox_CTP_Quote.dll";
241+
char DLLPath1[250] = ".\\QuantBox_CTP_Quote.dll";
241242
#else
242243
char DLLPath1[250] = "libQuantBox_CTP_Quote.so";
243244
#endif

0 commit comments

Comments
 (0)