地址: https://github.com/xiaobin80
IDE: VS2005
语言: C#
根目录: TDTC_demo
在使用前请确保:
下列升级包已安装!
(1) VS2005 SP1
VS80sp1-KB926601-X86-ENU
(2) VC2010 SP1部署包
vcredist_x86
并且,注册下列COM组件,否则会出现附件[3]的错误!
(1) xbfInfo.dll
regsvr32 d:\tdtc_atl\xbfInfo.dll(2) repoInfo.dll
regsvr32 d:\tdtc_atl\repoInfo.dll
https://github.com/xiaobin80/callXBFLib
[email protected]:xiaobin80/callXBFLib.git
文档请参考
1.1.1 《C#迁移之callXBFLibrary - 1(Windows Application)》、
1.1.2 《C#迁移之callXBFLibrary - 2(调用非托管DLL)》、
1.1.3 《C#迁移之callXBFLibrary - 3(调用COM)》、
1.1.4 《C#迁移之callXBFLibrary - 部署》
xbfConfig.ini
[config] type = MySQL [MS-Access] DB = v:\fde.mdb Pwd = wwsrts12 [MSSQL] Server = ddrwaas2 DB = dddrrewq User = ttrrre Pwd = qwerty [MySQL] Server = 192.168.1.107 DB = mysql User = DBAdmin Pwd = xbfirst
生成固定格式的报文。
https://github.com/xiaobin80/repoFmtGen
[email protected]:xiaobin80/repoFmtGen.git
文档请参考
2.1.1 《读取SafeArray数据》
文档请参考
2.2.1 《使用IE测试COM》
使用MySQL数据库。
与3.1.1不同的部分(连接服务器),不用输入“服务器地址”、“用户名”和“密码”;
使用XBF文件来存储上述信息。
https://github.com/xiaobin80/testMySQL
[email protected]:xiaobin80/testMySQL.git
组件:mysql-connector-net
文档请参考
3.1.1 《MySQL Connector/Net 的简单使用》
3.1.2 《MySQL Installer GUI - 图解》
使用SQLite数据库.
https://github.com/xiaobin80/testSQLite
[email protected]:xiaobin80/testSQLite.git
组件:sqlite-netFx20-setup-bundle-x86-2005(V1.0.92.0),当前版本1.0.99.0
需要.net2.0 sp2以上支持。
Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "repoFmtGen", "repoFmtGen\repoFmtGen.csproj", "{8B93D456-DD85-48F5-9248-0A1F520E1C13}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testMySQL", "testMySQL\testMySQL.csproj", "{7DD1BEEC-AC79-4294-871F-255E24CC5376}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "callXBFLib", "callXBFLib\callXBFLib.csproj", "{66CA90E7-1275-4DEF-9637-1745FEDFD32B}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testSQLite", "testSQLite\testSQLite.csproj", "{824CB178-50CC-493F-A304-658B46F0D036}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Debug|x64 = Debug|x64 Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU Release|x64 = Release|x64 Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Debug|Any CPU.Build.0 = Debug|Any CPU {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Debug|x64.ActiveCfg = Debug|x64 {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Debug|x64.Build.0 = Debug|x64 {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Debug|x86.ActiveCfg = Debug|x86 {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Debug|x86.Build.0 = Debug|x86 {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Release|Any CPU.ActiveCfg = Release|Any CPU {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Release|Any CPU.Build.0 = Release|Any CPU {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Release|x64.ActiveCfg = Release|x64 {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Release|x64.Build.0 = Release|x64 {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Release|x86.ActiveCfg = Release|x86 {8B93D456-DD85-48F5-9248-0A1F520E1C13}.Release|x86.Build.0 = Release|x86 {7DD1BEEC-AC79-4294-871F-255E24CC5376}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7DD1BEEC-AC79-4294-871F-255E24CC5376}.Debug|Any CPU.Build.0 = Debug|Any CPU {7DD1BEEC-AC79-4294-871F-255E24CC5376}.Debug|x64.ActiveCfg = Debug|x86 {7DD1BEEC-AC79-4294-871F-255E24CC5376}.Debug|x86.ActiveCfg = Debug|x86 {7DD1BEEC-AC79-4294-871F-255E24CC5376}.Debug|x86.Build.0 = Debug|x86 {7DD1BEEC-AC79-4294-871F-255E24CC5376}.Release|Any CPU.ActiveCfg = Release|Any CPU {7DD1BEEC-AC79-4294-871F-255E24CC5376}.Release|Any CPU.Build.0 = Release|Any CPU {7DD1BEEC-AC79-4294-871F-255E24CC5376}.Release|x64.ActiveCfg = Release|x86 {7DD1BEEC-AC79-4294-871F-255E24CC5376}.Release|x86.ActiveCfg = Release|x86 {7DD1BEEC-AC79-4294-871F-255E24CC5376}.Release|x86.Build.0 = Release|x86 {66CA90E7-1275-4DEF-9637-1745FEDFD32B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {66CA90E7-1275-4DEF-9637-1745FEDFD32B}.Debug|Any CPU.Build.0 = Debug|Any CPU {66CA90E7-1275-4DEF-9637-1745FEDFD32B}.Debug|x64.ActiveCfg = Debug|x86 {66CA90E7-1275-4DEF-9637-1745FEDFD32B}.Debug|x86.ActiveCfg = Debug|x86 {66CA90E7-1275-4DEF-9637-1745FEDFD32B}.Debug|x86.Build.0 = Debug|x86 {66CA90E7-1275-4DEF-9637-1745FEDFD32B}.Release|Any CPU.ActiveCfg = Release|Any CPU {66CA90E7-1275-4DEF-9637-1745FEDFD32B}.Release|Any CPU.Build.0 = Release|Any CPU {66CA90E7-1275-4DEF-9637-1745FEDFD32B}.Release|x64.ActiveCfg = Release|x86 {66CA90E7-1275-4DEF-9637-1745FEDFD32B}.Release|x86.ActiveCfg = Release|x86 {66CA90E7-1275-4DEF-9637-1745FEDFD32B}.Release|x86.Build.0 = Release|x86 {824CB178-50CC-493F-A304-658B46F0D036}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {824CB178-50CC-493F-A304-658B46F0D036}.Debug|Any CPU.Build.0 = Debug|Any CPU {824CB178-50CC-493F-A304-658B46F0D036}.Debug|x64.ActiveCfg = Debug|Any CPU {824CB178-50CC-493F-A304-658B46F0D036}.Debug|x86.ActiveCfg = Debug|x86 {824CB178-50CC-493F-A304-658B46F0D036}.Debug|x86.Build.0 = Debug|x86 {824CB178-50CC-493F-A304-658B46F0D036}.Release|Any CPU.ActiveCfg = Release|Any CPU {824CB178-50CC-493F-A304-658B46F0D036}.Release|Any CPU.Build.0 = Release|Any CPU {824CB178-50CC-493F-A304-658B46F0D036}.Release|x64.ActiveCfg = Release|Any CPU {824CB178-50CC-493F-A304-658B46F0D036}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal
文档请参考
2.1.1 《铁路车号读取 - IE》
Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xbfInfo", "xbfInfo\xbfInfo.vcxproj", "{47982D01-9007-44BF-8114-2FF8BD3AD54B}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xbfInfoPS", "xbfInfo\xbfInfoPS.vcxproj", "{E3784C1A-5D8A-4069-ADE9-054D5CD0F49B}" ProjectSection(ProjectDependencies) = postProject {47982D01-9007-44BF-8114-2FF8BD3AD54B} = {47982D01-9007-44BF-8114-2FF8BD3AD54B} EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {47982D01-9007-44BF-8114-2FF8BD3AD54B}.Debug|Win32.ActiveCfg = Debug|Win32 {47982D01-9007-44BF-8114-2FF8BD3AD54B}.Debug|Win32.Build.0 = Debug|Win32 {47982D01-9007-44BF-8114-2FF8BD3AD54B}.Release|Win32.ActiveCfg = Release|Win32 {47982D01-9007-44BF-8114-2FF8BD3AD54B}.Release|Win32.Build.0 = Release|Win32 {E3784C1A-5D8A-4069-ADE9-054D5CD0F49B}.Debug|Win32.ActiveCfg = Debug|Win32 {E3784C1A-5D8A-4069-ADE9-054D5CD0F49B}.Release|Win32.ActiveCfg = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal
Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "repoInfo", "repoInfo\repoInfo.vcxproj", "{36402013-16FB-4C6B-8962-F3201C5B66A3}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "repoInfoPS", "repoInfo\repoInfoPS.vcxproj", "{979AFB96-3D20-4864-8D72-0F1824A930F2}" ProjectSection(ProjectDependencies) = postProject {36402013-16FB-4C6B-8962-F3201C5B66A3} = {36402013-16FB-4C6B-8962-F3201C5B66A3} EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{16C84A52-0DED-4D4A-A4F2-FDF74287F17E}" ProjectSection(SolutionItems) = preProject docs\BinJiang_2005.rep = docs\BinJiang_2005.rep docs\BinJiang_2005.txt = docs\BinJiang_2005.txt docs\repoInfo_test.html = docs\repoInfo_test.html EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {36402013-16FB-4C6B-8962-F3201C5B66A3}.Debug|Win32.ActiveCfg = Debug|Win32 {36402013-16FB-4C6B-8962-F3201C5B66A3}.Debug|Win32.Build.0 = Debug|Win32 {36402013-16FB-4C6B-8962-F3201C5B66A3}.Release|Win32.ActiveCfg = Release|Win32 {36402013-16FB-4C6B-8962-F3201C5B66A3}.Release|Win32.Build.0 = Release|Win32 {979AFB96-3D20-4864-8D72-0F1824A930F2}.Debug|Win32.ActiveCfg = Debug|Win32 {979AFB96-3D20-4864-8D72-0F1824A930F2}.Release|Win32.ActiveCfg = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal