表示 进入内容 12
Displaying posts with tag: c (reset)
FFLIB之FFXML:极简化TinyXml 读取

摘要:

XML是结构化的标记语言,经常被用来做配置文件。由于XML的具有非常强的自描述属性,使用XML的配置文件往往直观易懂。C++中解析XML已经有一些非常成熟的类库可以使用,TinyXml是最受欢迎的解析类库之一。尽管TinyXml已经已经封装了解析细节,但是解析、遍历Xml仍然是稍显繁琐。FFXML针对如下需求对TinyXml做了轻量封装:

阅读全文——共2965字

Connection To SQL Server

Connection To SQL Server

How to use C# to connect to the SQL Server, there is a connection string we can use:

      string conn = "Integrated Security=false; Data Source=****;Initial Catalog=****;User ID=****;Password=****";

Data Source (Server; Address ; Addr ; Network Address): The name or network address of the instance of SQL Server to which to connect. The port number can be specified after the server name:
server=tcp:servername, portnumber
When specifying a local instance, always use (local).
Initial Catalog (Database): The name of the database.
Integrated Security (Trusted_Connection): By default, it is false, and User ID and Password are specified in the connection. When true, the current Windows account credentials are used for authentication.

To ensure that connections are always closed, open the …

[获取更多]
表示 进入内容 12