Đầu tiên, nói đến C++ thì ta phải hiểu C++ là 1 ngôn ngữ có cú pháp rất logic và rất khó chịu. Trong C++ không có may rủi hay đoán mò được, để hiểu thấu đáo thì ta phải từng bước từng bước dòng lệnh của nó. Bài này mình sẽ giới thiệu cách làm sao … Continue reading Lập trình C++ | Cách đọc 1 statement
Tag: C#
Adding and accessing custom sections in your C# App.config
So I recently thought I’d try using the app.config file to specify some data for my application (such as URLs) rather than hard-coding it into my app, which would require a recompile and redeploy of my app if one of our URLs changed. By using the app.config it allows a user to just open up … Continue reading Adding and accessing custom sections in your C# App.config
In C++, what’s a virtual destructor and when is it needed?
In C++, what’s a virtual destructor and when is it needed? As you may know, in C++ a destructor is generally used to deallocate memory and do some other cleanup for a class object and it’s class members whenever an object is destroyed. Destructors are distinguished by the tilde, the ‘~’ that appears in front … Continue reading In C++, what’s a virtual destructor and when is it needed?
Difference between Int32.Parse(), Convert.ToInt32() and Int32.TryParse()
Int32.Parse() Int32.Parse (string s) method converts the string representation of a number to its 32-bit signed integer equivalent. When s is a null reference, it will throw ArgumentNullException. If s is other than integer value, it will throw FormatException. When s represents a number less than MinValue or greater than MaxValue, it will throw OverflowException. Int32.TryParse() Int32.TryParse(string s, out int result) method converts the specified string representation of 32-bit signed integer … Continue reading Difference between Int32.Parse(), Convert.ToInt32() and Int32.TryParse()
Restore SQL Server Database Using C#
In previous post SQL Server Database BackUp using C#, I explained how to take backup of SQL Server database using C#. Today I am going to describe how to restore SQL Server database backup programmatically using C# and SQL Server Management Objects (SMO). You can also check more articles related to C#, ASP.Net , SQL Server and … Continue reading Restore SQL Server Database Using C#
SQL Server Database BackUp using C#
There are various ways to take the SQL Server database backup. You can take the database backup using SQL Server backup wizard or using SQL Server BackUp Database statement. Here I am going to describe how to take the SQL Server database backup programatically using C# and SQL Server Management Objects (SMO). In my previous … Continue reading SQL Server Database BackUp using C#
C/C++/CLI Hello world project
Hi everyone, just take a minute to see this code. The result is: Enter your name: Edward Hello Edward. Welcome to C/C++/CLI world. We found 3 languages just in less than 10 lines code.