From source code,code examples
Basicly this program can roll 1 or 2, 6 sided dies. It's not bad for a program i wrote as my second full program but if you like it, i'm glad. Feedback please. =P
An interpreter for a simple interpreted language.
This code is a a simple quiz that asks the user ten questions and gives them two options to choose from. It is made up of 2 template functions and 10 question functions it also gives the user the option to record their result and date of the quiz in a text file in the same directory as the program is run from. This code has been compiled with g++ (GCC) 4.1.2
This cool program contains the entire ascii index for ready reference. You can also get the ascii value for any character, and vice versa. A must for beginners who wish to build menu based programs.
It can be used to browse directories.
Dancing dolls changes every character on the screen alternatively to upper and lower case.
This is a beginner's tutorial to learn how to use loops in C++. Every line is EXTENSIVELY commented why it is there and what it does. Please vote for me!
This program will ask the user for two numbers and add together all of the numbers between them.
This program takes in an input, and checks all its anagrams against a dictionary file.
/* Are you a beginner #1 :O) */
The code converts a subset of 'C' language to three address code which can easily be converted to any assambly language.It also spots syntactic errors.
This is an interperter for a scripting language that I designed. The interpreter and language are completly my own. The code can take a file and add it to the end of an exe that will then automaticaly run it. Please remember that this is still in the works and is NOT a finished product. I am just hopeing for some input and constructive critisism by fellow programmers. Please Leave feedback. I want to know what you think. If you have any problems you can email me at eric256@rocketmail.com or IM me on AOLIM at ericjh256.
this code completes an input field based on a wordlist generated by you or by a directory scan.
Converts from character text to ASCII integer values, and from integers to characters(typecasting). Also demonstrates the usage of getch to select an option without pushing enter. Creates two local files.
The aim of this programm is to include a header and footer to your source code to trak the programm history.
"asm" is ?almost? an ?ASSEMBLER FOR INTEL 8085 MICROPROCESSOR?.
This program was made to check the accuracy of a tie for sale at www.thinkgeek.com that said Ties suck in binary. It helps one grasp the concept of the binary system. Its a rather crude algorithm but it shows you whats going on rather than using itoa.
Comport communication via modem, direct serial cable or any other asynchronous connection. Set baudrate, hardware flow control, software flow control, parity etc. yourself!
Send one or more emails to an SMTP server, to multiple recipients, with attachments etc. Easy to use, no IIS or MS SMTP service required!
Client/server communication, automated telnet sessions, wake on lan, winsock communications using this easy to use component
This program will demonstrate how to add transparency into your forms. It has a manual fade and timer fade, this shows how to let the user select the degree of transparency (255 == solid, 0 == totally transparent) which is usefull for user defined options, and has a timer fade in which the timer will fade the form away or bring it back, usefull for splash screens or a cool way to close forms. Will only work with win2000 and winXP ! Hope you find it usefull
The code demonstrates the method to alter the opacity of a Window in 2000 and XP. The opacity can be from 0 - 255.
Gives you a concept y structures are used
Really nifty, A function's bytecode buffer is copied to a "string"
I was composing a song then I thought why not generate it through 'c', so here is the result. But it will generate some directories as well while you hear my composition.
Encrypts a text file using XOR encryption. Also decrypts text files encripted with XOR encryption (if you know the code).
For each function in a C program, adds the name of the function as the first line.
This program gets a Key from the keyboard and returns it's ASCII value... Great when you want to use ASCII values in your code and you don't know them...
This header file is very useful for console and windows programing with very good funktions. I update this some times so remember to check for updates. Tell me what you think of the file...
A program sugests an appropriate activity for the user
shows graphical works
Sorta like the matrix, works best in full screen mode(alt+enter), WILL ONLY WORK ON XP!!
An introduction to XML Data Binding, and a review of a number of the leading products.
By using hook procedure we can customize open or save as common dialog box.
Winn the AI challenge and get the Tom Clancy's Splinter Cell game!
Just a example on how to code in the new Avalan from Microsoft. It's prolly the new thingie they are gonna use in LongHorn to develop the gui etc.
Do this ever happen to you:
The Pheonix shell for dos is a substitute for the original DOS shell, it works similarly to the way linux switches between shells. This program uses the dos kernel (io.sys) so only DOS/Win9x/WinME will work. Simply format a floppy with system files, del command.com(on the floppy) put psh.exe on the floppy, and add the line
Here's an alarm clock done in vhdl.
This tutorial explains how to use a mouse with Turbo C and it also explains various procedures like initialising, showing and hiding the mouse.
This tutorial teaches about dynamic memory allocation which is very essential for memory management.
A text-based adventure game. Short but none-the-
Displays the calendar for a specified month and year. Very simple code. Please send in your suggestions.
This is a tutorial on C++ that explains Some Basic and Fundamental things.I have tried to make this as detailed and descriptive as possible so anyone can follow on with the tutorial.
Most HTML programmers like to use Notepad to create and edit their HTML documents. But to make simple revisions to the code means revising the code, saving the file, and refreshing Internet Explorer (or whatever web browser you use) which becomes a tedious task. So I developed this: nothing extraordinary, just a simple submenu under the "File" menu named "Preview in Internet Explorer...". Just edit your code, and click "Preview in Internet Explorer..." and Internet Explorer will be opened with HTML document with the latest revisions. There are no comments in the source code for this submission (didn't feel like adding them), but just remember to compile the DLL included in this submission and read the "ReadMe First.txt" file before you run the add-in. I will appreciate any comments you have regarding this submissions and I am looking for to viewing your submission.
Program to convert a given text file to base 64
Changes the screen(desktop) brightness level in few codes.
A basic calculator, not very professional. Can be used for begginers to learn some basics about code. Calculates sums of numbers and subtraction, multiplication, and division of 2 numbers, along with the area of a cicle, triangle, or cube, squaring\square rooting numbers, the pythagorean theorem, and factorials. Made with Dev-C++ if anyone wanted to know.
The program inputs the dimentions (width, length) of a flat surface and then finds the best dimentions for a box out of it (width, height, length).
Converts ASCII characters to binary and vice-versa, real fun for confusing people by sending them messages in binary :D
This program is designed to convert decimal to binary and binary to decimal notation.
Make a DLL file in Borland C++ Builder
This is my first non mfc gui. It is well documented. Simply this program just gets a username and password. adds 2 to each character of the user name and compares it to the inputed password. then gives you a message as to whether it was correct,incorrect, etc...
shows how to create a popup using api.
The code searches whether any bit in a integer is switched ON(1) or OFF(0). The search is only limited to the 7th bit of the given integer and the (BITWISE & operator )is used to find it.I have included a read-me file in the zip. Please read it as i have explained the code there.
This code employs an easy method to convert 8 bit binaries to decimal, no math.h , just plane attitude.
The easiest way to convert binary to decimal but the most tedious.
This article will describe about window 32 programming using Windows API and C++.
This tutorial covers the basics of C programming on GNU-Linux systems. It covers from basic I/O (including the 'HelloWorld' program we all start out with) and goes as far as basic TCP raw socket programming where you end up making a nice little Stealth FIN Portscanner. I wrote this tutorial several years ago, and it has been on my site for a while. I figured that now I am a PSC member, I would post it here as well.
Include gbox.h in your program and generate six different types of box special effects.
I am essentially a VB programmer, but I've been trying to expand into C to create DLLs that do complex stuff that much quicker! When I first tried to create DLLs, I was unsure on the syntax used for different circumstances and how written functions were exposed to VB. This upload is a very simple DLL that has a number of functions such as AddTwoNumbers, DivideNumber, GetCurrentQuarter etc. I've tried to demonstrate different techniques in the functions, such as the 'switch, case' and 'if - else' statements. I've included a VB project that has all the declarations for the C DLL, with very simple examples of each function. If you (like me!) are used to VB & are a newbie to C, this project may help you understand some of the basics...Compile the EasyC.dll and place it in your '/System32' or equivilent directory before running the VB project.
This is a very basic screen saver that uses a <scrnsaver.h>. It uses a configure dialog.
Blinking Lights is simple program which On and Off randomly the LEDS of NUM, CAPS and Scroll lock. It is tested on Window 95 and 98, Made in Turbo C
A simple example of how to add extra functionality to the Borland c++ IDE.
This Programme is a very good approach to understanding Text mode of the Console.
An easy code that teaches you to use and create header files
This MFC code will change your start button to "Hello" after you clicked on the button.
This is just like all my other uploads, they are all for beginners like me trying to find somewhere to begin.
BuildCounter is a simple program that helps keep track of the versioning of the VC++ applications.
this shows an example of how to create a DLL in C++, and use it in visual basic... hope you like it :)
//programmed by HaSsan Kanj (hassan_k1@hotmail.com)
This is a demo of using COM to open a browser window.
You enter in the price and it puts things in to a spreadsheet
it is a upgrade of my older Checkout program
There are two articles included here. First one explains IF family, GOTO, SWITCH and '?' condition statements.(you will find the example in '?' interesting. that's the base of many ofuscated programs). The second of the article explains FOR, WHILE, DO-WHILE statements. increments, comparison operators, logical operators are also considered. the main thing is the practical approach towards the understanding these concepts. the if and buts attached with any of the statements (if any) are also described. i hope beginers will find it useful. experts plz do comment for improvements. i am sorry for any spell n english mistakes as they have not been considered vey seriously, the focus was discussing these concepts.
Program to count the no of charactes, white spaces and words in a given TEXT file.
This code is a library of 3 header files.
This thing codes your message according to the famous caesar cipher; plus! it can decode a message coded in caesar cipher; enjoy! and dont forget to comment n rate me
Creates a user account using netapi32 library. And then, I execute a Windows XP command using the system function to make the account an administrator.
A colorful scientific calculator. Written completely in c++. This should be helpful for the c++ programmers developing graphical programs.
Different text and background colors in DOS
This little project reads from a source file (.cpp) and prints it out onscreen as if someone were typing it.
Just Enter the Year and the Month and view the calendar for the Year and corresponding month.
DiGiTaL CloCk
To find the closure of an attribute in a relational database given the attributes in the table and the set of functional dependencies
Many useful functions. Including a clear-screen function.
Create a simple client/server connection using winsock. Also shows how one might detect whether or not the address entered is an IP or a hostname, and then how to format that address.
Add a pair of rulers to any CView derived class. Designed for minimum change in your own class. I have simplified the CView class to illustrate the core method and the power of MFC.
This code will show you how to setup a basic window and how to use the GDI to show how many times WM_PAINT has been called on that window. Makes you feel good inside, doesnt it?
This program is just for fun. It lets you ask a question then randomly gives you an answer. (It's a modified 8 ball. >=)
Draws fractals in different colors which can be re-initialized during runtime. Zooming feature (endless zoom due to the algorithm), and adjustable drawing parameters.
Just a bit of steganography, wel not really, but it's kinda like tha, it reads in a file of 'secret information' locates different locations in your big plain-text-mean-nothing-useless file, and creates a keyfile to unscramble later.. This is obviously not SECURE, and it's not meant to be, which is why it's underthe miscellaneous catergory.. thanks!=)
This program obtains the color directly beneath the mouse cursor, and reports its RGB, Decimal and Hexadecimal values.
The CalcPlus library is the C++ class library which provides an ability to use your own programming language built into C++ project. Any algorithm or any constant needed by application can be carried out into the special file, when process comes to the key point, it calls function or procedure stored in the text file. Interpreter runs the function and process returns back to C++ code. Library contains the interpreter which understands simple nameless procedural language. Bi-directional communication between C++ and the code for interpreter available.
Amulet is a user interface development environment for C++ and is portable across X11 on all kinds of Unix (Sun, Dec, HP, SGI, Linux, NetBSD, etc.), Microsoft Windows 95 and NT, and the Macintosh. Amulet helps you create graphical, interactive user interfaces for your software. More than just another free virtual toolkit, Amulet includes many features specifically designed to make the creation of highly-interactive, graphical, direct manipulation user interfaces significantly easier, including a prototype-instance object model, constraints, high-level input handling including automatic undo, built-in support for animation and gesture-recognition, and a full set of widgets. (http://www.cs.cmu.edu/afs/cs/project/amulet/www/amulet-overview.html) Documentation is at: http://www.cs.cmu.edu/~amulet/
Aisearch - a package to make writing problem solving programs easier. Offers the programmer a set of search algorithms that may be used to solve all kind of different problems. The following search algorithms have been implemented:
C++SIM provides discrete process based simulation similar to that provided by the simulation class and libraries of SIMULA. The linked list manipulation facilities provided by SIMSET are also included in the package, and there is support for a variety of statistics gathering classes.
This is just a quick demonstation on how you can use the windows API to print colored text in your basic console application.
JCOOL Library. Its main difference from COOL and GECOOL is that it uses real C++ templates instead of a similar syntax that is preprocessed by a special 'cpp' distributed with COOL and GECOOL. The original GECOOL is a C++ OO library and was created by some programmers at GE.
Clears the CMOS password area and hence helps in users who have lost their CMOS passwords
This article explains, with source, how to build a C++ DLL that exports functions that can be called from Visual Basic and other "C" DLL compatable programs.
For Begginners!: A friend asked me to help him with his homework, so here is it. This program demonstrates the use of toupper(), isalpha(), how to pass variables across functions, how to read a string from keyboard, how to use a do/while loop, and other little things... Heavily commented, and explained!
Compile the project!!!
This class provides encryption/decryption through the CryptoAPI. This is the standard API you can use regardless of the underlying dll used to do the encryption. These dlls are called Cryptographic Service Providers (CSPs) and you get one as standard from Microsoft called "Microsoft Base Cryptographic Provider v1.0" This class uses the standard CSP, but this can be changed by changing the constant SERVICE_PROVIDER There is additional code in this class to ensure that the encrypted values do not contain CR or LF characters so that the result can be written to a file
Wow I just pasted this code as a tutorial before and realized that it got not line ?? Anyway, I'm sending it back as a zip so it is gonna work.
This code creates a chart using a class. You can add row and columns. Very Simple.
See Calender of Any Input Month and Year after 1900
This thing will compair two files that are asked for when you run the executable.
I have put so much time into creating this book. This book is for free. This book is good for those who already know the basics of C++. I will be working on adding to it in the coming months. The code examples I have used in the book are only partial and will not compile. If you need the compilable version, no problem I will write them for you if you ask. If you need me to add something you would like to know about, just let me know.
Prints out a calendar for a year specified by the user, checks if the year given is a leap year or not.
This is a c example to show how to compress and decompress a file. This code basically compresses and decompress .txt, .c, .cpp files.
Displays the time with a simple analogue clock
What you do is input any amount of money you have and this will give you change for however much money you inputed in quarters, dimes, nickles, and pennies. Entering any number over 99 and it gets glitchy.
It uses custom classes in a MS VC++ enviroment to manipulate data. I'm using time becouse its easy to see whats going on. And there is also a "RadioState" class to keep track of radio buttons.
This code simply shows you how to create a DLL in C++, and use it in VB. The ZIP file contains both the C++, and the VB code, and also a working example.
importance of for loop
convert a numerical date (mm dd yyyy) into "day of a week" (e.g., 5 24 1997 -> Saturday).
Returns RGB & Hex values of colors anywhere on the screen.
I have tried to make a simple, hopefully understandable, DOS program to communicate with com ports.
This module implements a custom memory manager that keeps track of
Sample of creating and using DLLs
Commandline executable that goes through a text file and does a search and replace based on the arguments passed.
Looks for and clicks a button with a given caption (contained by a window with a specified caption) every 'n' seconds - useful if you need to (e.g., for dialup internet connections) click Ok every now and then to stay online, etc.
Creates a Christmas Tree with a user entered height.
Discusses some of the easy to fall into C++ pitfalls and ways to avoid them.
This is the Code in Visuall C++ Console project to open and close your CDRom hope you find it usefull.. And i would love your comments...
A program designed to recognize user input of different patterns, like letters, and numbers. It is pre-programmed or pre-teached already for numbres, and it is possible to teach it new characters. It was programmed by Albert Archwamety. esspecially in subject of IMAGE PROCESSING or Robotics. With C++ source code. OCR programming.
Tutorial and sample codes to calculate the distance between two locations using spherical algorithm. Free sample source codes in PHP, ASP, ColdFusion, C/C++, C#, Java, Perl, Visual Basic and Javascript. Longitude and latitude for United States ZIP Code and Canadian Postal Code are available in database subscription from http://www.zipcodeworld.com.
Some example classes (useless, for educational purposes only) including a template class. Good example for things like polymorphism, inheritance, operator overloading. only include needed is <iostream>
This is a C interpreter that I have written. Not every single C statement has been implemented yet, but all of the hard work has been done.
This submission contains two programs, one for copying CMOS data from the memory to a file and vice versa, and one for deleting the CMOS password (and why it sucks).
Purpose: Trivial example of native code callable from java.
This is a class called CDate written to automate everything you need to do with dates. It can:
The program implements a demo application which demonstrates using C++ stream-compatible sockets developed by Maciej Sobczak http://www.msobczak.com/
The aim of this tutorial is to show you how to write a
To explain how to develop interrupt routines for use in a personal operating system and an introduction on how to write kernel mode drivers.
The program will scan a Visual C 6 Project File. Then the user can choose a file to be removed. All occurences of the filenames are deleted from the project and the files are renamed. There will be one level of backup from the project file.
Code Opens the cd tray showing you how to use mciSendString in it. Written in C++ Compiled with Dev-Cpp be sure to include the winmm lib when compiling/linking this code.
This little program gives you the possibility to check out other running applications? windows informations - for example: handle, caption, parent?s handle and the most interesting one: the class name of this window and its parent?s, very useful if you are doing some subclassing. All of that packed in a nice 2 threads algorithm
This code change any c/c++ file into html file and then it ask u either u want to excute a the html file or not :)
Convertir codigo fuente a HTML.
Now
collection 15 difrent c-programs.helpfull for many ppl out there.like exe header,drivelock,bootparameter etc...
Developing an office 2000 addin( an Outlook2K code sample)
Cool Minimize and Gets Text of a Text Box!
This is a VERY simple program which demonstrates how to get the command line arguments given to a program.
The CDBug class is designed to take the place of OutputDebugString in your project. The class includes DBMonitor.exe which displays the output from the CDBug class which is imbedded in your application.
FOR COLLEGE ADMISSION
Returns RGB & Hex values of colors anywhere on the screen.
Tests ur depth of understanding
This is a must have to all C++ Programmers. This tutorial starts at the very basics with the Hello World and then goes to more advance topics like structs, pointers, arrays, printing, creating dll files and much more.
This Program displays All the Cache Passwords on your PC.
This game is entirely text-based. The object of this game is to select a card and determine whether or not it falls in between the highest and lowest cards, using queues. This program is meant to demonstrate the use of queues and how to enqueue and dequeue to/from a stack, not to show flashy graphics or add any fun factor.
A backup program. Copies drive X to drive Y. (Copying x:\dir1 to y:\dir2 shouldnt be much harder, i'm just too lazy) Its not fast, but seems to be around normal copy & paste speed. The only major drawback is no way to tell where its copying
The code was changed on 12/14/00 to use fstream objects for file I/O and I also added more comments.
This code will figure out the day of the week in which you were born.
These are a my C++ Tutorials that are designed to teach you everything you need to know in writing your first program. It is a must read for all beginners or for people who want to refresh there skills. Please rate if you found these helpful.
A tool for removing comments from C/C++ and Java source files.
Demonstrates how to use the arrow keys as input in a if else ladder. Shows use of scancodes. The user can draw a picture in the console window using characters. It is well commented and easy to read. gconio.h is found at http://www.wence.vandermeersch.org/gconio/ . It has the gotoxy and delline functions not found in Microsoft Visual C++.
This is a wrapper class for the open/save dialogs with example usage. Cheers...fallenhobbit
Has a menu, for help and or author info. Also,
Note: It doesn't even barely comse close to emulating
A Word Statistics Tool to count and report words statistics of an input file. The output is displayed in alphabetical order of the words with
This is a SImple code that transforms celcius into farhenheit and vice-versa. look at this if you wanna learn how to use itoa and atoi. ANyays have fun!
Helps you to draw a 16*16 pixel mouse cursor
you can draw an 16*16 pixel image set it as your mouse cursor
Here's a code about seven segment display :)
This program was written to scare the pants off a friend of mine. It plays a scary wave file that is invisible to the desktop and then it opens and writes it in microsoft word. By the way, this program is in no way harmful to your computer. However, it may make it hard for your friend to sleep at night.
This program is a multithreaded intranet (LAN) discussion board coded in pure Win32 C++.
Hey All This Is Is A AppWizard Output With A Little Extra Tacked On To Allow You To Turn On And Off Drawing Abilities
This is an interactive program
Draws the border of any picture of any size,just like Diablo does :)
The object of this project is to write a C++ application to simulate the scheduler of a simple operating system. The computer will have two resources, a CPU and a disk. There will be an undetermined number of processes in the system. Every process will have the following information:
Developing an office 2000 addin( an Outlook2K code sample)
This is a program with which you can drive mosquitos out of your room. It does this by creating sound of high frequency. Mosquitos cannot stand this frequency and they go away. Check it out and if you like it, then vote.
Converts Decimal numbers to Binary and Binary numbers to decimal
This little program displays a digital clock on top of the screen.
This program will search the directory tree of any folder on your hard drive.
This source code show how to create a console menu that can be scroll using UP, DOWN button. Easy to modify and add your own menu. This program also can be modified so that it can be scroll using RIGHT LEFT button. Feel free to use it.
This displays an analogue clock and a digital clock, and has the facility to set an alarm...
pls rate it and vote for me.this is a helpfull utility to see ,edit ur harddisk,floppy disk sectors.u can save secotrs to file write them from file .for more see readme.txt.similler to many commercial programs.edit files,disk sectors and much more.......
Dos write is a application developed in the C programming language. This application is basically a 'notepad' for dos. I am in the process of learning c now, and I did this application so I would not forget some of the stuff I learned and because I was bored. :) This has been ported to linux successfully some things do need to be changed for it to compile in Gcc. When you compile it you will get three errors about escape sequences or something similar, don't worry about the errors there suppose to be in the code, but the compiler does not recognize them.
it is an addin for console applications. it features a progressbar and spinning and hash progress indicators. (it needs more work to function correctly as a fool proof progress bar)
This code detects the technique my last code project demonstarted. It detects if a process has any extra dlls loaded using EnumProcessModules and CreateToolhelp32Snapshot.
to dispaly the calender for any month and year and move across the months and years using arrow keys.and find day on particular date
this code will generate the digital clock in mmddyy format.Along with the time, it also shows the day(sunday,monday etc).it also tells about (A.M & P.M.).this is a general c++ compatible code.
some solutions to some everyday digital logic stuff.
It calculates voltage,resistance,and current.
put eight queens in a chess board than none of them attacking aothers
PLEASE EXCUSE MY WRITTING and all the errors in it since i type fast and do not look at what im typing.
The article gives information about main(). How to bypass main()? what happens before main() executes? contains innovative programs with source code.
My code accepts the electrical requirements i.e. KVA rating, input and output voltages etc. and calculates the optimum design parameters of the transformer i.e. number of windings, core and yoke dimensions etc.
This is just an excuse generator for all you IT guys out there. Its modeled after the BOFH Excuse Table. I wrote this while working, probably should have been doing something else though :)
This is an element helper equiped with neat menues, you can search elements by there, name , #, mass, boiling point, melting point. Also with a quiz. you decide on which elements to quiz over and also the q & a format.
Convert Euro to Lire and vice-versa!
I am essentially a VB programmer, but I've been trying to expand into C to create DLLs that do complex stuff that much quicker! When I first tried to create DLLs, I was unsure on the syntax used for different circumstances and how written functions were exposed to VB. This upload is a very simple DLL that has a number of functions such as AddTwoNumbers, DivideNumber, GetCurrentQuarter etc. I've tried to demonstrate different techniques in the functions, such as the 'switch, case' and 'if - else' statements. I've included a VB project that has all the declarations for the C DLL, with very simple examples of each function. If you (like me!) are used to VB & are a newbie to C, this project may help you understand some of the basics...Compile the EasyC.dll and place it in your '/System32' or equivilent directory before running the VB project.
It has two Encrypting languages
write a text to console. but main purpose is a encrypted source code. Try to understand from where it takes theese sentences!
| [[EASY CALCULATOR >>>> BINARY , DECIMAL, HEXADECIMAL, BASE X ,]]
|
A simple BINARY , DECIMAL, HEXADECIMAL, BASE X , <<<<<<CALCULATOR>>>>..this code demostrates how to do all this operations with a simple few lines of code...NOTE: that it is not a complete calculator..it only demostrates the way it is done :)...but you can make it complete with yust a few modifications...i have found a lot of code in PSc but none of it works the way it has to..so here you have a few lines of free and working code :)
reads text from a file and translates it into NADSAT
Statistical analysis of ASCII text
A pure WIN API single file program which converts fahrenheit to celcius. Also it shows you how to create window without resource file(s).
It's a program that simulates the formating or erasing of the volume 'c:' because of a "virus"
I wrote this in C++ 6.0. It is a very very easy MS-DOS type program where it runs a string of nubers over and over simulating a virus. (It doesn't harm your PC) At the end it displays a message saying April Fools. (My Favorite Holiday)
In the name of GOD
My code is exactly simple fileserver.
A simple but effective file cutter program that splits a file of any type(mp3s,videos,exes..) to desired number of small files. it also generates a small batch file that is used to combine those files.
This code will split a file into chunks of any given size with the last chunk being the size of the remaining file data.
- O) For a rookie/beginner (O:
Usage sample code of the find_if() STL algorithm
Usage sample code of the find_each() STL algorithm
Counts the alphabetic characters in a file
This piece of code is just a questionare that judges your interactivity in a group.
Do you think that your great at typing.....then try this!!! Type any thing you want, and see what you have typed.
Reports the Uptime of your Windows Operating system, also shows how to use Registry/Clipboard/Resource Strings/System Tray, also has windows XP theme, I think it's great for both learning and using, then again..I wrote it, so of course I would :)
This shows how to use pointer casting to allocate one large memory block and break of pieces as needed for dynamic memory needs. This would eliminate numerous calls to "new"(which is really malloc), which means alot less function calls in an application that uses alot of dynamically allocated memory.
This article is back Again !! Due to some specific reason[Person]..I removed it purposely.But till then everyday i had to deal with 15/20 pals of PSC for the article and requesting to resubmit it again.So it's here again.Enjoy.
Converts number in figures to words
Describes how to return type information in C++ like GetType() in Microsoft .NET languages.
The Gl Pad is a clone on notepad with all the features that have notepad and have nice icons and more. see the screenshot.
It simulates a 51 row and 51 column grid (50 rows and columns + the 0th row and column). The cells have 2 states, 0 and 1, and you manipulate them with various commands. It can also be a good example for using 2d arrays... I didn't provide a screenshot because there is nothing to see really, you have to test it for yourself
This program displays days of a month on a screen in a calendar format, from given month and year, which inputted from the keyboard. Dates range: -4712 (4713 B.C.) to 9999 years.
Ever needed to detect if the esc key or fkeys or any key to be detected? Well this program will convert chars to int and vise versa. Thus giving you the ability to detect keystrokes. Complete with a small tutorial on how to use this program to your advantage. Though not fancey it will hopefully suite your purposes. Thanks ~kc~
Getting user time used via getrusage()
Getting current time (sec, microsec)
This class takes an HWND handle via the mouse position and traces it's path pack to the
Allowing a user to quickly begin google searches on the fly, floats on the desktop and docks to any side of the screen.
Simple example on how to make a dll to get file size and delete a file!
This is an exprimentation of using genetic algorithm to solve the Unit Commitment problem. It focuses on the effect of different selection towards the robustness of the GA. In this code, I only include the GA with Roulette Wheel selection method. The rest will be uploaded shortly. For details on the scope of the Unit Commitment, the constraints for each generating units etc; do contact me.
Guess
this program manages evalute the performances by using stochastic petrinets.
This is the scripting language that I have been developing for my Game Engine that I'm working on. Right now the scripting language is still in development, I have plans to expand the functionality to allow you to make use of including header type scripting files.
You have to hit the true number.
This program wil build a number house based on user input (size).
Starting point for creating dialog based windows applications.
Floods the console (or cmd.exe) with Hello World until the application is stopped. Of course it can be replaced with any message.
Here's a short document for an introduction to shell.
Convert decimal dotted IP address to Binary and vice versa and also show class of IP address
XCrypt is a XOR file encryption tool. It accepts both strings or files as a key. For example, you can use an audio file or an image as your encryption key, or you can just use a simple password. This program includes three encryption modes: Standard, Binary, and Text. Binary and Text modes are ment to improve encryption for a small key such as a string that is only 10 bytes in length, so that it is not revealed in any obvious form. Included is a command version and a Win32 API version (non mfc). I hope you find this submission useful.
This code works only if:
Possibly the most boring thing shipped with windows today is dos. This small little utility tries to bring in some vibrancy and effervescence into it by introducing colored text and background. Install this program to bring some life into your dos prompt.
You must know C++ before starting to learn MFC. This is a hands on tutorial. I have used pictures on how to start your first project and explained in full detail and commented it very well. I am a beginner to MFC too. So I wrote it from a beginner's percpective. I created my first windows application. If anyone knows where I can download the MSDN library, please share the link with me. ___________Please Comment and let me know what you think, so in the future chapters I can do improvements._____________
Usage sample code of istream_iterator and ostream_iterator
A simple interpreter ,which I haven't finished yet.
Universal Remote Control, record IR frequencies in mp3 files the plays the back,Experimental converts IR to Analog audio then analog Audio to IR. Because it uses mp3 files it is easy to control anything that uses IR.
This code is a terminate and resident programe that will generate a message each time you press a key.
There is an Instalator. This project contains 2 executables. One is the executable tath selfextracts the files introduced in it. An other is the fusioner to add files to the Final executable. This project uses my WindowClass. Sorry but this code is commented in Spanish.
This article shows you the implementation of physical layer using parallel port as transmission medium. it also describes how to implement the flow controll and acknowledgement. detailed description of source code also given. we can easily convert this one into wireless network using some simple RF circuits. your comments are welcome. it will help me fine tune my article also it may help me to write more articles.
Solutions to LET US C book's Input/Output in C questions and examples too...
Functions for Windows made by myself:
Many and important math functions, like:
A program that when a user specified key is pressed, quickly hides all instances of Internet Explorer. Great, if your not supposed to be on the internet! (;
Its a simple code which compiles the java program and display the output at once. The user does not need to type the command prompt for compiling and running the program. The code also set the JDK path once and no need to set the path Again.
THIS PROJECT IS SURE TO BE A GOOD HELP FOR THOSE NEW TO C++ PROGRAMMING AND THOSE WHO ARE LEARNING THE BASICS OF FUNCTIONS , MATRIX, FLOW OF CONTROLS IN A CODE, LOOPING etc. THIS PROJECT HAS BEEN COMPILED BY MANGALICK MITRA. COPY THE CODES TO YOUR C++'S WINDOW.....COMPILE...AND RUN.....
This code if for DOS. I was tired of having to perform a directory listing to find the file I was looking for, only to type it incorrectly at the prompt. So, I created this program to allow me to CURSOR-UP (or any direction) to text already typed on the screen.
To take any JPEG file and save it to a bigger or smaller size JPEG file. Before the JPEG is converted the application gives an option to add text to the JPEG. It also demonstrates how to drag a file onto an application and handle the file. It works with multiple selected JPEG files.
Use the Sun's JNI API to communicate with a DLL generated with VC++ 6
Defines constants in _KEY_* form for many uses... Very useful with getch()
This one tell u abt the shift keys status of yr keyboard.ie.....status of caps lock, shift, ctrl,scroll..etc other keys...do check this out
QUIZ
displays month of the year entered.u can use arrow keys to go forwards or backwards.AD and BC,
Enter Any Digit and Get its Corresponding Text String for Example if you Enter 1200 as Input You will get "One Thousand Two Hundred" as Output. This Code is made with Very excessive and Logical use of if-else. I Reccomand to every Newbie to understand Power of these tiny controls and use them in decision making.
This application can generate or solve suduku puzzles as per requirement.
A 3D rotating penny in GDI. No DirectX. No OpenGl. Just 100% pure GDI! Please, if you can, vote for it or simply comment. I'm looking foward to hearing your suggestions :)!!!
In certain versions of Microsoft Visual C++, before you execute a program, you get that annoying message:
A program that displays the contents of its source file. Please comment and/or vote.
A program and function that copies the specified string to the clipboard. The string then can be pasted to Notepad, etc.
A program that draws rectangles and ellipses of the specified size and color in Microsoft (R) Paint. Note: Microsoft (R) Paint must be open in order for this to work.
A program and function that takes the specified black & white bitmap and draws it in the console using ASCII characters. See screenshot. Please vote and/or comment. Your feedback is greatly appreciated.
A program that takes a bunch of bitmaps and attaches them together side-by-side and puts them on the clipboard. The bitmaps then can be pasted into Paint by clicking Edit->Paste.
This program allows you to preview a window before you create it. It allows you to modify the caption, style, icon, cursor, position and sizes of a window and then it shows you how it looks. It also generates the code needed to create the window. PLEASE vote for it.
Make your C/C++ programs more intresting by providing a mouse support. Learn about Mouse Programming here. This tutorial teaches basic stuff and advanced like changing mouse cursor shape. Make a header file of the sample code and use mouse with minimum effort.
Want to know how to use special keys like UPARROW, Delete and combination keys like CTRL+Delete. Make you own new SHORTCUT keys. Change Keyboard state using your software. This tutorial takes you from beginner to advanced level keyboard programming.
This is a magic trick that let's you choose a card in mind and eventually after 2 shufflings, it will show you the card you've chosen.
this code completes an input field based on a wordlist generated by you or by a directory scan.
2 Matrix screensaver in one. All I ask is for you to vote.
This is the program that will animate the text as per your wish. It can animate the text with many functions. It can be used to give the good effect to your application