Click here to Skip to main content
15,891,375 members
Everything / Programming Languages / C

C

C

Great Reads

by Martin Mitáš
How to support scrolling within your controls.
by Espen Harlinn
Choosing the right synchronization mechanisms when working with threads, thread-pools, and I/O Completion ports to create high performance asynchronous servers in C++
by Andy Allinger
Add features to k-means for missing data, mixed data, and choosing the number of clusters
by Jeffrey Walton
Perform authenticated encryption with Crypto++.

Latest Articles

by Chris Boss
BASIC: A powerful language often underestimated and undervalued
by ColleagueRiley
A multi-platform single-header very simple-to-use framework library for creating GUI Libraries or simple GUI programs.
by FPGANinja
A walkthrough and source code for designing a stream interface in Vitis HLS
by Alexey Shtykov
The thing that could generate pseudo random numbers faster than standard library does

All Articles

Sort by Title

C 

5 Oct 2014 by KarstenK
Some toughts whether to prefer Objective-C or Swift.
27 Oct 2014 by Mike Meinz
Describes an algorithm to ignore spurious ultrasonic sensor readings.
23 Oct 2015 by Ph. Jounin
A C-replacement for MessageBox
13 Aug 2010 by Ohmu
A step-by-step Guide to getting a pure code application template.
16 Aug 2012 by AshakiranBhatter
ScreensSaver through fullscreen mode using Win32 APIs in C.
4 Oct 2012 by Ritesh_Singh
C++ code to connect/access DB2 database using DB2 call level interface(CLI)
15 Oct 2014 by Arthur Caputo
Tutorial on setting a false transparency onto your button's edges.
13 Jun 2014 by Michael Gledhill
How to add an fade-in message to your iPhone app in 5 minutes
10 Jun 2014 by Santosh Sharma (go2santosh)
Finally iOS developers get a new programming language as advanced as C# and Java
1 May 2017 by Arthur V. Ratz
This tip/trick introduces the basic ideas on how to avoid memory mismatched allocation/deallocation issues detected by Intel® Inspector XE for Visual Studio 2015
5 Jun 2012 by Abed AlSayed
AlSayed ColorBar is a TrackBar best for professional color picker, like the one used in Adobe Photoshop.
14 Feb 2016 by Jigar_Patel
Amazon S3 lib for uploading file in C++ using VS2010
15 Mar 2016 by cruppstahl
Describes algorithms for integer compression, introduces a few libraries and shows how to use them
5 Sep 2015 by Thinira
In this tip, we will discuss how to setup Angular 2.0 in Visual Studio and write a very basic “Todo” application.
9 Feb 2019 by zvx
An introduction to writing IOCP network servers
27 Dec 2020 by Steffen Ploetz
Step-by-step instructions and source code snippets for inserting a bitmap (or a section of it) into an icon image.
28 Nov 2016 by Zebedee Mason
Or why not both? This shows how.
15 Dec 2017 by Laurie Stearn
Dialogex with Listbox to manipulate long paths in Windows
20 Jan 2010 by jafarmlp
Introduction...
24 Jul 2015 by BEmbedded
This article discusses 'C' code used to control a Newhaven OLED in 4-bit mode. It is a MBLABX project.
2 Oct 2016 by Eric Z (Jing)
This tip introduces struct hack and compares it with several implementation alternatives.
3 Nov 2014 by Ullas_Krishnan
How create a Splash Screen in C++ Program (TurboC) in DOS Mode..
15 Dec 2010 by Lars P.Wadefalk
I have sometimes wondered if the 'with' statement would work in C/C++, just like in pascal. Meaning that it would in it's nearest scope automatically recognize class/struct members for the ones mentioned with a . or maybe -> operator.Maybe something like:TestClass* tc;float...
12 Apr 2016 by Shao Voon Wong
Never test for NaN by comparing it with NaN literal
13 May 2020 by Askar Azhibaev
Calculating the pi number faster using a simple formula
13 Dec 2013 by CathalMF
Describes with an example of how you can call C#.NET methods from unmanaged C++ code.
27 Nov 2014 by Abdallah Al-Dalleh
How to handle post data coming inside an HTTP POST request
29 Mar 2017 by Taehoon Kim 1004
Capture program using GDI
11 Aug 2013 by Ghosuwa Wogomon
An in-depth explanation of correct bracket placement and why...
24 Jun 2013 by Tejashwi Kalp Taru
Ever wanted to change the Windows Aero color without restarting the DWM?
22 Mar 2010 by PJ Arends
I have seen many different ways to check if the computer has an active internet connection. The best one, IMO, is to check for the presence of the default route in the IP forwarding table that is maintained by windows. This can be checked by using GetIPForwardTable function found in the...
25 Oct 2013 by Melih Mucuk
Check whether location service enabled for your app.
28 Feb 2014 by _Ravikant Tiwari_
This program will demonstrate the process of injecting code into already running processes. Here we have choosen to inject into Explorer
7 Mar 2014 by _Ravikant Tiwari_
Code Injection - A Generic Approach for 32bit and 64bit Versions
28 Jun 2015 by David A. Gray
While you can often get away with ignoring compiler warnings, failing to at least scan them can bite hard!
20 Aug 2014 by pi19404
This article describes the method to cross compile C/C++ library for Android OS
2 May 2014 by leon de boer
Implementation of connected component labeling and subsequent vectorization.
21 Apr 2012 by perilbrain
A very simple trick to assist you in eradicating out manual file name entries.
6 Feb 2014 by CPallini
A simple algorithm for counting occurrences of symbols in files
16 Mar 2012 by Florin Gherghel
How to create a BOTTOMMOST window (Win32 and .NET).
26 Jan 2008 by Volirvag Yexela
This tip suggests the way of launching a process with Medium IL from the process with High IL.
31 Mar 2013 by Melih Mucuk
Creating a WCF Service with JSON data for use on iOS
6 Nov 2012 by Philipp Sch
How to use an IStream-Interface with FFmpeg
14 Feb 2015 by Dennis E White
How to create delegates in Objective-C
15 Mar 2016 by araud
Did you ever want to know where most of the memory is consumed? Whether it leaks or just gets allocated too much. This home brew memory tracker is yet another bicycle that you will be able to tune for your needs.
11 May 2011 by Kerem Kat
Compile and run CUDA 3.2 projects from VS2010 in 9 easy steps
28 Mar 2014 by Alex Culea
Shows how to create a window that behaves like a context menu
3 Jan 2016 by José Cintra
An example of how to interact with the user through the keypad, LCD and Buzzer
25 Apr 2012 by Member 7961821
Life debug plug-in of non debugable host
25 Dec 2011 by Mukit, Ataul
This not so useful tip tells you how to declare a reference for a two dimensional array without needing to use typecasting.
3 Jan 2012 by kooyou
The second form is wrong. A two dimensional pointer does not equal to a two dimensional array. But you can use an one dimensional pointer to reference the two dimensional array.int arr[1][20];int *pTwoDem=(int*)arr;Now you can use *(pTwoDem+10) to replace arr[0][10].
27 Sep 2012 by david pretham
Windows Native API application
6 Nov 2012 by Pranay Rana
Design TypeDataSet from Storedprocedure using temptable
19 Feb 2016 by pasztorpisti
An advice to make your DLL interface more attractive and easier-to-maintain even in cross-platform projects
31 May 2016 by mbue
switch ... case statement for strings
6 Mar 2013 by Ahmed Elkafrawy
An easy way to simulate keyboard press & release keys to another application
7 Oct 2021 by Mircea Neacsu
Source code organization suggestion
26 Apr 2015 by Haftmann, Henrik
12 years too late but now it works: A replacement driver for giveio and dlportio for 64-bit Windows
6 May 2014 by Amogh Natu
This tip shows how you can add scrolling to a view in iOS to allow multiple elements on the screen that won't fit in one screen.
31 Dec 2009 by Vinayaka Krishna Shenoy
I explored a bit more on Entity framework,during last week of 2009 and here goes my observations on how to extend the Entity Framework functionality if you want to customize the normal/ideal flow of Entity framework execution engine.1) OnContextCreatedBy default a declaration of this...
26 Apr 2016 by itsdkg
This tip explains the usage of arrays for creating Fast binary search trees.
24 Dec 2013 by YvesDaoust
Yet another home-made implementation of the floor function
8 Apr 2016 by jurhas
Solving graph on linear time
28 Dec 2020 by CPallini
Fast integer square root computation in 8051 assembly
19 Feb 2024 by Alexey Shtykov
The thing that could generate pseudo random numbers faster than standard library does
17 Jul 2012 by Jacob F. W.
Here I present an improved version of the Circular Shift Operations
9 Oct 2014 by Issam Lahlali
Some feedback to avoid common mistakes when porting a .NET application to Mac OSX
14 Mar 2014 by mef526
Finding a substring is trivial, but is it a word?
12 Jun 2014 by stevic
Finding Fibonacci sequence can be done by a simple logic, but we can solve it too with a Math formula
24 Jun 2013 by Tejashwi Kalp Taru
When we have to scroll some text in the dialog box with a background image, you can see flicker. Here's the technique of double buffer to solve this problem
26 Jan 2024 by Member 16179004
Capture Enter key in edit control with no dialog box and no subclass.
9 Jun 2023 by AbdulRahman A. Badry
Alter your display gamma-ramp to correct & calibrate it
19 Jun 2015 by ergohack
System.Data.SQLite is great, but was missing some BLOB support. Switching to the native source project was easier than expected and provided significant functionality benefits.
25 Jul 2014 by Mohammad_Hamad
Using the Function Pointer inside C struct
16 Mar 2009 by m_sylvain
This tip shows how to build an FxEngine plugin to stream video data from a webcam
17 Jan 2017 by Arun Maiya
How to setup GCC cross compiler in Windows to generate Linux binaries
10 Mar 2017 by Southmountain
Gems for typedef and namespace in C
21 Aug 2011 by murtaza dhari
A generic dropdown control using LINQ to SQL and Entities using Reflection
22 Sep 2015 by Mike (Prof. Chuck)
Generic EventHandler/EventArgs with a generic implicit cast operator
15 Jul 2010 by Paul Brower
This tip will allow you to return the value from column X, where column Y matches your filter
17 May 2005 by Loay Al Lusi
Genetic Algorithm is used to search for maximum/minimum value of a given function using the concept of chromes and genes.
15 Oct 2015 by Abhishek Nandy
Smartwatch Development with pebble
13 Apr 2016 by Member 11246861
Within LAN, laptop gets signals from microcomputer and microcontroller using TCP/IP and SPI
26 Jul 2011 by Dave Cross
I just use OutputDebugString() and Sysinternals' DebugView.exe.
26 Jul 2011 by Jaime Olivares
Plain old console output is still a valuable debugging tool, even when used in a GUI application.There are many tools here in CP that can be combined with console output like:CConsole - a simple console for debug output[^]Creating a console for your MFC app's debug output[^]You can use...
25 Jul 2012 by pasztorpisti
How to open a console in a non-console C/C++ application or DLL and make printf/scanf work (stdin/stdout/stderr related functions)
13 Feb 2017 by trident99
GT is a compact, efficient, and customizable graphical user interface (GUI) library for the Windows environment.
15 Jan 2020 by Steffen Ploetz
A solution for: If the toolbar is created button by button with single TB_ADDBUTTONS calls, the width of the separators is not calculated correctly.
3 Mar 2014 by CPallini
Simple approach to heap data structure and heapsort, using C and Lua
5 Mar 2018 by Dharmateja Challa
This article is about generating random data using Trusted Platform Module in Windows 10 and testing its randomness using dieharder test suite.
4 Feb 2020 by Southmountain
Some tips on how to compile legacy Win32 programs in Visual Studio 2019 - may save you few hours to figure out why
13 Jan 2015 by Lai Taiyu
How to do simple image binarization?
2 May 2012 by Itai Basel
A macro that gets current function's return type on visual C++
12 Dec 2013 by Cloud Hsu
How to implement Queue in Objective-C
23 Jul 2011 by Cloud Hsu
Stack implementation for Objective-C.
28 Feb 2016 by Bipin Paul
Implementation of Contact Us Page using ASP.NET MVC pattern
26 Jun 2013 by Tecfield
This post shows how to make a callback to C# from C/C++