In the company's use of C + + development, the company's Danale a C + + cross-platform development framework. In the field of C + + development I am still a novice, have a lot of knowledge to learn, such as DLL library development.Reference to a lot
--------------------file Operations--------------------Function Name: ChangefileextFunction Description: Change the extension of the specified file, the function prototype is as follows:ansistring __fastcall changefileext (const ansistring
@ Function name: strdup
Function prototype: char * strdup (const char * s)Function: copy a string. The target space is allocated by the function.Function return: pointer to the copied stringParameter description: Src-source string to be copiedFile:
Overview of C/C ++ header files
# Include // set the insertion point# Include // Character Processing# Include // defines error codes.# Include // floating point number processing# Include // file input/output# Include // parameterized
@ Function name: strdupFunction prototype: char * strdup (const char * s)Function: copy a string. The target space is allocated by the function.Function return: pointer to the copied stringParameter description: src-source string to be copiedFile: #
Function Name: strcpyFunction: copy one string to another.Usage: char * stpcpy (char * Destin, char * Source ); Program Example:# Include # Include Int main (void){Char string [10];Char * str1 = "abcdefghi ";Stpcpy (string, str1 );Printf ("% Sn",
This article is translated from the blog of the cold autumn soul.
Function Name: stpcpyFunction: copy one string to another.Usage: char * stpcpy (char * Destin, char * Source );Program example:
# Include # Include
Int main (void){Char string
Comparison between wide character processing functions and common functionsCharacter classification: Description of common C functions of wide character FunctionsIswalnum () isalnum () test whether the character is a number or letterIswalpha ()
1.
When writing a thread function today, we found that the threadproc definition in msdn has requirements: DWORD winapi threadproc (lpvoid lpparameter );
I don't know why to use the winapi macro definition. I found the following definition after
C string operation (conversion) Note: several case-insensitive comparison functions in the text use stricmp in the original article. Later I found that the STD library in Linux is not available and changed to the strcasecmp series.
Function Name:
Dll details and macd indicators details[To] http://www.cnblogs.com/xuemaxiongfeng/articles/2461632.html
I don't know why to use the WINAPI macro definition. I found the following definition after checking it. The difference is needed.
Differences
Call conventions (Calling convention) RefersProgramA protocol established to implement function calls in the design language. This Protocol specifies the parameter transfer mode in the function of the language, whether the parameter is variable, and
1. _ cdecl
(1) c Declaration stands for c Declaration, indicating the default function call method of C language. It is actually the default function call method of c ++.
(2). All parameters are pushed to the stack from right to left. These
1. If the function func is _ cdecl (the default call method), the call process is as follows:
Int main ()...{// Stack pressure from right to left for parametersPush 4Push 3Push 2Push 1Call funcAdd ESP 0x10 // The caller restores the stack pointer
Libpcap development set
Libpcap is a C language library. libpcap stands for packet capture library, which is the data packet capture function library. Its function is to capture packets over Ethernet through the network adapter. This library
Directory
Introduction
Call Method
DLL in MFC
DLL entry function
Conventions
DLL Functions
Module definition file (. Def)
The relationship between the DLL program and the program that calls its output function
Author
Introduction large
I. Concepts of function calls
_ Stdcall, _ cdecl ,...... Left passed through the stack. The called function clears the memory stack of the transfer parameter before returning, but the difference is the function name modifier section (the
Process processing functions
1. Process Start functionFunction name EvalCall Syntax eval (string)The commentary considers a string as a Perl statement execution.When executed correctly, the system variable $@ is an empty string, and if there is an
1. _ stdcall is the default calling method of the PASCAL program. It is usually used in Win32 API. The function uses the stack pressure method from right to left and clears the stack when it exits. After compiling a function, VC adds an underline
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.