摘要: 1. Save the following text to an XML file (e.g. so.xml) <!-- This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the ... 阅读全文
posted @ 2012-10-07 07:39 YUVU 阅读(482) 评论(0) 推荐(0) 编辑
摘要: References: http://www.rlmueller.net/ReadCSV.htm http://msdn.microsoft.com/en-us/library/ms709353.aspx http://www.aspdotnetcodes.com/Importing_CSV_Database_Schema.ini.aspx ... 阅读全文
posted @ 2012-09-20 17:26 YUVU 阅读(337) 评论(0) 推荐(0) 编辑
摘要: On the destination database, run: exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure Run copy: INSERT INTO [DEV].[db... 阅读全文
posted @ 2012-09-12 15:00 YUVU 阅读(158) 评论(0) 推荐(0) 编辑
摘要: How to return String-Arrays from C++ COM component to C#? http://blogs.msdn.com/b/gpalem/archive/2007/04/27/how-to-return-string-arrays-from-c-com-component-to-c.aspx How To Pass Arrays Between Visu... 阅读全文
posted @ 2012-09-11 17:24 YUVU 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Note: disabled adapters will not be enumerated. Source Code: DWORD EnumNetworkAdapters() { IP_ADAPTER_INFO* pAdapterList = NULL; IP_AD... 阅读全文
posted @ 2012-07-05 14:27 YUVU 阅读(246) 评论(0) 推荐(0) 编辑
摘要: Return Value: 0: Connected 1: Disconnected -1: Not available Source Code: int QueryNetworkAdapterStatus(string guidName) { string str =... 阅读全文
posted @ 2012-07-04 17:46 YUVU 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1. Open the report file (.rpt) 2. In the main menu on VS, click “Crystal Report” –> “Field Explorer” 3. On the Field Explorer pane, right click “Database Fields” –> “Set Datasource Location”, choose... 阅读全文
posted @ 2012-07-03 17:05 YUVU 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 为了在 PropertyGrid 中将密码显示为‘*’需要使用 PasswordPropertyText 属性。 示例如下: class Settings { [CategoryAttribute("Login"), DisplayName("User Name"), DescriptionAttribute("Log... 阅读全文
posted @ 2012-06-05 14:52 YUVU 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 本文作出如下假设: 1)Oracle 版本 11.2g 2)使用 PL/SQL Developer 3)Oracle 所在 IP 192.168.56.222 4)远程机器 IP 192.168.56.1 5)Java 存储过程使用本地 UDP 端口 7777 6)远程检测程序使用 UDP 端口 7778 完整步骤如下: 1. 用 PL/SQL 创建一个 Java Sourc... 阅读全文
posted @ 2012-06-05 11:52 YUVU 阅读(751) 评论(0) 推荐(0) 编辑
摘要: Time Complexity: O(N) Description: series: 价格变动序列 pos1: 买入位置 pos2: 卖出位置 returns: 最大盈利或者亏损 public static double getMaxProfit(double[] series, out int pos1, out int p... 阅读全文
posted @ 2012-05-18 14:38 YUVU 阅读(268) 评论(0) 推荐(0) 编辑