Environment:Microsoft Visual Studio 2005 + office2003
Purpose:Use the C # language and use Microsoft Excel 11.0 object library to Operate Excel.
Problem:In the process of using C # To Operate Excel, even if you just open it and save it as another
This article describes three methods for forced conversion of C #, namely (INT), int32.parse (), and convert. toint32.
What is the difference between the (INT), int32.parse () and convert. toint32 () methods in the C # forced conversion?
The Int
During programming, you may see two macros, callback and winapi, In the function declaration or definition. They are also synonymous with _ stdcall. Check the content in windef. h:
# Define callback _ stdcall
# Define winapi _ stdcall
_ Stdcall
I have been submitting my resume and interviewing for a job recently. However, I did not pass the interview and did not pass the test. As a result, I went home to make up for the base.
However, I always think it's boring to go over those basics
C # the learning of static methods is not only a literal understanding of concepts, but also an understanding of actual operations. Here we will introduce you to the application example of C # static methods.
C # static method is a special
1. problem: In socket communication, we often need multiple clients to share one port, but this often reports an error, because normally one port can only be bound once, but it is troublesome to release it, therefore, if Port Sharing is implemented,
. Net socket development-asynchronous socket
In the development of. Net-based network server, the most frequently used and heard is probably asynchronous socket. The performance of asynchronous socket is much higher than that of synchronization, but
Valid tive C # Item 2: prefer readonly to const
C # has two different constants: compile-time constants and runtime constants ). They have different features. Incorrect use may not only result in loss of efficiency, but also cause errors. In
STD namespace in C ++[16:12:10] font size: used before the Standard C ++ for both large and small sizes # include This is written because the header file name to be included is iostream. h. Standard C ++ introduces the concept of namespace, and
Guide
This article on http://www.daoluan.net /? The "Calculator" in P = 774 is improved and shared with you.
In the above Article, the server is a duplicate type, that is, only one customer's request is processed at a time point, and other
C # series of articles on interoperability:
C # Introduction to interoperability (I): C # Introduction to interoperability
C # Introduction to interoperability series (II): use the platform to call Win32 Functions
C # Introduction to
Use the webbrowser control to write in the documentcomplete event Processor
1 htmlelement name = webbrowser1.document. getelementbyid ("ctl00 $ content $ loginname"); 2 if (name! = NULL) 3 name. setattribute ("value", user); 4 htmlelement pass =
Explicit and implicit are conversion operators. Using these two operators allows us to exchange custom types.
Explicti indicates Explicit conversions. For example, forced conversions (B = (B) a) must be performed from A to B)
Implicit indicates
Developers always try to have more control over their own code. "Stopping the working thread immediately" is one of the many requirements. In contrast, there are at least two problems:
The first problem is that, just as the thread cannot be started
1. General Constants
Int const x = 2; or const int x = 2;
Of course, X is also an array, such as X [5]; int can be replaced with the class name, and X is the object name, which is usually an object at this time.
If int is replaced with char *, It is
?? It may be a forgotten operator, which is rarely used. Its usage is simple but practical:
Variable ?? Defaultvalue
Equivalent
Variable = NULL? Defaultvalue: Variable
With it, a row can handle lazy evaluation:
Use ?? Before:
Code highlighting
Some of the files in the unmanaged VC project use the. NET framwork original address to use the vs2005 environment, and the project does not use and compile the header file stdafx. H. (Yes, you cannot find me !)
1. Create a General C ++ console32
C # static member1. Static members belong to the class and non-static members belong to the instance.2. Each time a class instance is created, a new storage block is allocated to non-static members in the memory.C # static method1. C # static
(1) Save the source object to TXT text in a certain format
Public bool savetotxtfile (list pslist){Bool bresult = false;System. Io. filestream FS = NULL;System. Io. streamwriter Sw = NULL;Try{// Create a file streamFS = new system. Io. filestream
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service