Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
2Activity

Table Of Contents

1.1Why learn C?
1.2Program organization
1.3.2What are “function parameters” ?
1.3.3Console mode programs and windows programs
1.3.4An overview of the compilation process
1.3.5The run time environment
1.4An overview of the standard libraries
1.4.1The “stdheaders.h” include file
1.4.2Windows specific headers
1.5Passing arguments to a program
1.5.1Iteration constructs
1.6Declarations and definitions
1.6.1Variable declaration
1.6.4Scope of identifiers
1.6.5Linkage and duration of objects
1.6.6Variable definition
1.6.7Statement syntax
1.7Errors and warnings
1.8Input and output
1.8.1Predefined devices
1.8.2The typical sequence of operations
1.8.4Other input/output functions
1.9Commenting the source code
1.9.1Describing a function
1.9.2Describing a file
1.10An overview of the whole language
1.10.4Windows specific defined symbols
1.10.5Structured exception handling
1.10.7Windows specific syntax
1.11Extensions of lcc-win32
1.12A closer view
1.12.4Function call syntax
1.12.5Functions with variable number of arguments
1.12.8Conditional operator
1.12.16variable length array
1.12.21break and continue statements
1.12.29Sequential expressions
1.12.33Predefined identifiers
1.12.34Precedence of the different operators
1.13The printf family
1.13.2The conversion flags
1.13.3The size specification
1.14.1Operations with pointers
1.15.2Register variables and longjmp()
1.16Simple programs
1.16.4Write ispowerOfTwo without any loops
1.17Using arrays and sorting
1.17.2Other qsort applications
1.17.3Summary of Arrays and sorting
1.18Pointers and references
1.19Structures and unions
1.21Identifier scope and linkage
1.22Top-down analysis
1.23Extending a program
1.24Improving the design
1.25Traditional string representation in C
1.26The problems with C-“Strings“
1.27Buffer-overflows
1.27.1A buffer overflow in the C standard document
1.28Memory management and memory layout
1.28.1Functions for memory allocation
1.28.2Memory layout under windows69
1.29Memory management strategies
1.29.2Stack based allocation
1.29.3“Arena” based allocation
1.29.4The malloc / free strategy
1.29.5The malloc with no free strategy
1.29.6Automatic freeing (garbage collection)
1.29.8A debugging implementation of malloc
1.30Counting words
1.30.1The organization of the table
1.30.2Memory organization
1.30.3Displaying the results
1.31Time and Date functions
1.32Using structures (continued)
1.33A closer look at the pre-processor
1.33.1Preprocessor commands
1.33.2Things to watch when using the preprocessor
1.34Using function pointers
1.35Advanced C programming with lcc-win32
1.35.1Operator overloading
1.35.5Structured exception handling
1.35.6The signal function
1.36Numerical programming
1.36.1Floating point formats
1.36.2What can we do with those numbers then?
1.37Using the floating point environment
1.37.2Reinitializing the floating point environment
1.38Using the libraries of lcc-win32
1.38.1The regular expressions library. A “grep” clone
1.40.14Careful with integer wraparound
1.40.15Problems with integer casting
1.40.17Wrong assumptions with realloc
1.40.18Be careful with overflow
1.41Fun with C
3.1.3The dialog box procedure
3.1.4A more advanced dialog box procedure
3.2User interface considerations
3.3Libraries
3.4Dynamically linked libraries (DLLs)
3.6A more formal approach
3.6.2Event oriented programming
3.7A more advanced window
3.8Customizing the wizard generated sample code
3.8.1Making a new menu or modifying the given menu
3.8.2Adding a dialog box
3.8.3Drawing the window
3.8.4Initializing or cleaning up
3.8.5Getting mouse input
3.8.6Getting keyboard input
3.8.7Handling moving/resizing
3.9Window controls
3.10A more complex example: a "clone" of spy.exe
3.10.1Creating the child windows
3.10.2Moving and resizing the child windows
3.10.4Building the window tree
3.10.5Scanning the window tree
3.10.7Filling the status bar
3.10.8Auxiliary procedures
3.11Numerical calculations in C
3.12Filling the blanks
3.13 Using the graphical code generator
3.14Customizing controls
3.14.1Processing the WM_CTLCOLORXXX message
3.14.2Using the WM_DRAWITEM message
3.15Building custom controls
3.16.1The structure of the registry
3.16.2Enumerating registry subkeys
3.16.3Rules for using the registry
3.17.2Serial communications
3.17.7Inter-Process Communications
3.18Advanced windows techniques
3.18.1Memory mapped files
3.18.2Letting the user browse for a folder: using the shell
3.18.3Retrieving a file from the internet
3.18.4Opening a web site or an HTML file using the default browser
3.18.5Creating a desktop shortcut
3.19Error handling under windows
3.19.1Check the return status of any API call
3.19.2Always check allocations
3.20Common errors
3.20.1Dialog will not display when you add a control
3.21Some Coding Tips
3.21.1Determining which version of Windows is running
3.21.2Translating the value returned by GetLastError() into a readable string
3.21.3Clearing the screen in text mode
3.21.4Getting a pointer to the stack
3.21.5Disabling the screen saver from a program
3.21.6Drawing a gradient background
3.21.7Capturing and printing the contents of an entire window
3.21.8Centering a dialog box in the screen
3.21.9Determining the number of visible items in a list box
3.21.10Starting a non-modal dialog box
3.21.11Propagating environment variables to the parent environment
3.21.12Restarting the shell under program control
3.21.13Translating client coordinates to screen coordinates
3.21.14Passing an argument to a dialog box procedure
3.21.15Calling printf from a windows application
3.21.16Enabling or disabling a button or control in a dialog box
3.21.17Making a window class available for all applications in the system
3.21.18Accessing the disk drive directly without using a file system
3.21.19Retrieving the Last-Write Time
3.21.20Retrieving the file name from a FILE pointer
3.21.21Setting the System Time
3.21.22Getting the list of running processes
3.21.23Changing a File Time to the Current Time
3.21.24Converting from GMT (UTC) time to local time
3.21.25Displaying the amount of disk space for each drive
3.21.26Mounting and unmounting volumes in NTFS 5.0
3.22.1How do I create a progress report with a Cancel button?
3.22.2How do I show in the screen a print preview?
3.22.3How do I change the color of an edit field?
3.22.4How do I draw a transparent bitmap?
3.22.5How do I draw a gradient background?
3.22.6How do I calculate print margins?
3.22.7How do I calculate the bounding rectangle of a string of text?
3.22.8How do I close an open menu?
3.22.9How do I center a dialog box in the screen?
3.22.10How do I create non-rectangular windows?
3.22.11How do I implement a non-blinking caret?
3.22.12How do I create a title window (splash screen)?
3.22.20How do I translate between dialog units and pixels?
3.22.21I initialize in WM_CREATE but the values of my variable change. Why?
3.22.22How do I translate between client coordinates to screen coordinates?
3.22.23When should I use critical sections and when is a mutex better?
3.22.24Why is my call to CreateFile failing when I use conin$ or conout$?
3.22.25How can I control the task bar under program control?
3.22.26How to erase a file into the recycle bin?
3.22.27Making a timed message box
3.22.28How do I build a “Property-sheet” control?
4.1.1What is a network?
4.2Protocols
4.3The HTTP Protocol
4.4The FTP protocol
4.4.1Implementing the ftp “GET”
4.5Querying the network parameters
4.6Writing “ping”
4.6.1How does it work?
4.7Client/Server programming using sockets
4.7.1Common steps for server and client
4.7.4Sending and receiving data
4.7.5Simplifying sockets programming with lcc-win32
0 of .
Results for:
No results containing your search query
P. 1
Tutorial

Tutorial

Ratings: (0)|Views: 150 |Likes:
Published by Gabi Munteanu

More info:

Published by: Gabi Munteanu on Oct 14, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/03/2011

pdf

text

original

You're Reading a Free Preview
Pages 9 to 113 are not shown in this preview.
You're Reading a Free Preview
Pages 122 to 207 are not shown in this preview.
You're Reading a Free Preview
Pages 216 to 359 are not shown in this preview.
You're Reading a Free Preview
Pages 368 to 376 are not shown in this preview.
You're Reading a Free Preview
Pages 385 to 401 are not shown in this preview.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->