Our Programming forum category encompasses application development, web development, programming theory, and everything in between.

96 69 69 67 63 60 59 58 52 49
Member Avatar
[B]Expression evaluation using Emit[/B] This class was designed to evaluate simple mathematical expressions. But instead of developing a routine to do the calculating, we use Emit to dynamically build a method that does the math for us. IMPORTANT: This is done with integer math. 7/2*3 = 9, not 10.5 (or …
by Momerath 1,327 in Software Development ()
Member Avatar
Export CSV TO Mysql and Import to CSV from MYsql in PHP
by tellysk in Web Development ()
php
Member Avatar
Now, before you say it already exists (because it does) I found that those didn't really have the generic ability to find any control on a form, regardless of containers. So, here you have a piece of code which will find any control on a form and will also search …
by Ketsuekiame 860 in Software Development ()
c#
Member Avatar
Here is a small extention of the Panel class that allows you to 'collapse' it. So far, the user can place a control on the parent form and perform a collapse/expantion by: 'Where cpNew is a Collapsible Panel If Not cpNew.PanelCollapsed Then cpNew.Collapse() 'or If cpNew.PanelCollapsed Then cpNew.Expand() I will …
by Begginnerdev 256 in Software Development ()
Member Avatar
A simple graphical year calendar. Compiler: Turbo C In main current year is set manually, for more generic way use date function to get current year.
by Luckychap 68 in Software Development ()
c
Member Avatar
Our text file contains 10 words,and located in C:\ drive,we will read this data into an array and write out the results to the screen Created by FlamingClaw 2009.04.26.
by FlamingClaw 98 in Software Development ()
Member Avatar
[CODE]struct PCB* handleProcessArrival_PP(struct PCB *processhead,struct PCB *processtail,struct PCB *currProcess,struct PCB *newProcess,int currTime){ if(currProcess==NULL){ newProcess->executionStartTime = currTime; newProcess->executionEndTime = currTime+newProcess->totalBurstTime; newProcess->remainingBurstTime = newProcess->totalBurstTime; if(newProcess->processID==processhead->processID){ processhead= newProcess->next; printf("processhead in case 1 %d \n",processhead->processID); } currProcess=newProcess; printf("***current process = new process%d \n",currProcess->processID); contents(processhead); return currProcess; //return processhead; } if (currProcess->processID !=0){ contents(processhead); if(currProcess->processPriority>newProcess->processPriority){//new …
by ayeswarya in Software Development ()
Member Avatar
This simple key logger shows any character/special key when pressed.
by vegaseat 1,720 in Software Development ()
Member Avatar
This is a snippet I use to clear a form. Right now it clears: TextBox, RichTextBox, ComboBox, CheckBox and RadioButton. More can be added if needed... :)
by avirag 10 in Software Development ()
Member Avatar
This snippet defines a function returning new identifiers created from reading the computer's time.
by Gribouillis 1,265 in Software Development ()
Member Avatar
The module pyglet leans on OpenGL for graphics and is used in the scientific community together with Python. This short code snippet shows you how to use it to display an animated GIF file. The download is free, so give it a try. You don't have to download OpenGL to …
by vegaseat 1,720 in Software Development ()
Member Avatar
Many times [inlinecode]strtok[/inlinecode] is recommended for parsing a string; I don't care for [inlinecode]strtok[/inlinecode]. Why? [list][*]It modifies the incoming string, so it cannot be used with string literals or other constant strings. [*]The identity of the delimiting character is lost. [*]It uses a static buffer while parsing, so it's not …
by Dave Sinkula 2,398 in Software Development ()
c
Member Avatar
It is a common design in data handling applications to move from form to form to show the user different information. I have seen any number of different attempts at this on the boards so i thought I'd throw together a short snippet to show a cleaner OO way to …
by Ryshad 480 in Software Development ()
Member Avatar
i have to write a code that has a random number generated between 1-100 and the user has the choice to keep the number, discard the number and quit the program. and when the user quits the program displays the numbers kept and discarded, but i dont know how to …
by Trevor_5 in Programming ()
Member Avatar
Just a simple exploration of the goslate module (uses the Google Translate API) to translate some common languages. However, some IDE's create character problems. Note: Your computer has to be connected to the Internet to access Google.
by vegaseat 1,720 in Software Development ()
Member Avatar
Hi everyone this is my first code snippet so be gentle.. I have written a basic client/server chat program that uses multithreading for listening and sending. I welcome any improvements or discussion... Thanks James
by james6754 39 in Software Development ()
Member Avatar
In response to [this thread](https://www.daniweb.com/programming/web-development/threads/499762/jquery-for-dropdown-textbox) I've decided to paste the linked example as a code snippet (updated to html5/jQuery2).
by pritaeas 1,895 in Web Development ()
Member Avatar
This code snippet demonstrates how to use ADO.NET to read the contents of a Microsoft Excel Worksheet. This snippet also demonstrates the use of the [GetSchema](https://msdn.microsoft.com/en-us/library/ms135981%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396) method to determine what worksheets are available within an Excel workbook allowing the end user the ability to select a specific worksheet in order …
by djjeavons 113 in Software Development ()
Member Avatar
This is a program for Encryption and Decryption This program uses the Simple Data Encryption Standard (SDES) Algorithm. This Algo takes 8-bits of plaintext at a time and produces 8-bits of ciphertext. It uses 10-bits of key for Encryption and Decryption.
by Luckychap 68 in Software Development ()
c++
Member Avatar
Shows how to create a basic slide show with the Python Tkinter GUI toolkit.
by vegaseat 1,720 in Software Development ()
Member Avatar
I know that this probably has been done by someone, but I want to learn how to do this using VB 2010 express. I cannot seem to get the numbers to stay in the text boxes that they are dropped in. The numbers always go to the last box (#81). …
by major_lost in Software Development ()
Member Avatar
Some time ago, I needed to know the pathname of my running application, in order to create a temporary file. As it seems ther are alot more options than I thought. So I applied all I could find in this little snippet. I also used the full names to make …
by ddanbe 2,429 in Software Development ()
Member Avatar
This is easy! But I admit, it can be rather confusing at first if you also take the old style MenuItem stuff into account. I hope my code is as clear as possible. If not please let me know. To test it, just start a forms application and paste it …
by ddanbe 2,429 in Software Development ()
Member Avatar
I was so amazed at how easy it was to embed google maps into a vb app I decided to post a quick example to help anyone get started. This is a simple example. Google's api has all kinds of things to help customize your map. You can find out …
by Unhnd_Exception 216 in Software Development ()
Member Avatar
Don't you just get sick of hash algorithms constantly been brute forced or even cracked. Well here is an algorithm I have created in my spare time to help out the little guy who just wants a secure hash. This hashing algorithm uses many different techniques including ones used in …
by cwarn23 387 in Web Development ()
Member Avatar
This Program implements the Predictive Parsing Of the grammar E->E+T/T F->F*T/F F->id(Identifier)
by praneeth_gunda 2 in Software Development ()
c
Member Avatar
Login functionality in C-language : Here the user enters the user id and password. The entered user id and password will be compared with the stored ones and user will be authenticated. While user enters password, characters should not be displayed on the screen. user id comparison must be case …
by dileepkumar235 -5 in Software Development ()
Member Avatar
For those interested in operating system development, this snippet tests status of A20. It is the line that allows memory beyond 1 meg to be addressed, otherwise it will just wrap around which some applications and versions of DOS depend on. My bootloader **MBR1_44** has switched system to protected (*32 …
by ShiftLeft 15 in Software Development ()
Member Avatar
This is a small one. Some time ago this table came in handy, testing out low level multiplication. And I just love multiplication tables. We all do, now don't we? :)
by ddanbe 2,429 in Software Development ()
Member Avatar
The Swift computer language is the brainchild of a number of Apple associates. In my humble opinion it shows some nice features, but also some warts. Part 1 (constants, variables, strings, tuples, arrays) explores a number of the features to give you a taste of the language. I hope I …
by vegaseat 1,720 in Computer Science ()
Latest Posts