Results for "Category: Files/ File Controls/ Input/ Output"
Acess files and execute them if you like than please vote......
This File reading tests compare 3 methodes of reading file. One is using Api, second is using random access file methode and third is using binary file methode. I have tested all and found that using Api is the best and fastest solution for reading files. I have included 3 classes for these 3 methodes and a template project to test them. In my tests, i have used a PIII450mhz, 195MBRam with WinXP Pro. I have read a 20mb file in 1.8seconds.
Create a toolbar/statusbar in a dialog. To add a control bar to a dialog, you must create the control bar as usual, and then make room for the control bar within the client area of the dialog. For the control bar to function properly, the dialog must duplicate some of the functionality of frame windows. If you want ON_UPDATE_COMMAND_UI handlers to work for the control bars, you also need to derive new control bar classes, and handle the WM_IDLEUPDATECMDUI message. If your dialog is not the main window of your application, you will also need to modify its parent frame window to pass the WM_IDLEUPDATECMDUI message on to the dialog's control bars. To make room for a control bar within the client area of the dialog, follow these steps in your dialog's OnInitDialog() function: http://stingsoft.com/mfc_faq/chapter6/chapter6_5.htm
Get you a easy way for creating and using timers on your window application. This code use two timers and you can see how to start and stop the timer.
This code illustrates the use of the combo box control with no MFC.
This will make a Form Transparent according to a Pixel of it's Picture. Be patient with me as I am learning how to code in C++. This code was ported from a project in VB by Chris Yates. However VB is horribly slow so I thought I'd make a Dll in C++ that did the same. Here's the result
Well, want to ACTUALLY create your own form? no MFC or Resources. This is code to actually make a raw form. easy to use. Please gimme feed back.
Why are you waiting for ?? quick download this and become a really awesome GUI maker. This contains a list of new functions which will enable you to put 3D Windows - like buttons,windows,checkboxes,progressbars etc.. to your programs. This also contains an example to what you can really do. example: to open a 3D window with a close button , title etc you can use --- openwindow(10,10,620,460,"Title"); That's it & you will have a cool window on your screen. Not only this , you can change colors,fillpatterns etc for your things. For your benifit this also contains codes for using mouse in TC.
This is a console menu foundation class. This allows you to create menus in seconds! Methods include: AddMenu(int ID, char *Name); AddItem(int ID, char *Name, void (*Function)()); Draw(); Run(); ...
This program is a simple Menu which uses the UP, DOWN, PGUP, PGDN, ESC and ENTER keys. You can use is to create more then one menu with the same code.
This program displays a message in a small default Windows message box along with an icon. It performs no other function.
This program adds a toolbar without modification to the cWindow class. This program also incorporates a menu and a text edit client area. When the user clicks on the On/Off icon, a different message is displayed in the client area. This program performs no other function (at least, any useful function).
Simulates wait time (time unit is one loop iteration) of a queue much like a line at a bank. Uses a Que Class, Server List Class, Server Class, Timer Class and a driver (Simulate.cpp)
It's an example of using a few controls on a dialog box. The program doesn't really do anything useful.
Just a skeleton to look out when building yours. So you can remember how each part goes into the window skeleton using the platform SDK. My friend asked for this.
A class for creating Windows, Buttons, Edit boxes, and Multiline Edit boxes. It is very simple to use, and later I will add more types(Listbox, static(label), frame, etc). I included project files for Brland C++ Builder 5, and MS Visual C++ 6.
This is a GREAT / COOL program that would let begginers write your C, C++ programs in windows rather that DOS.
Heres a good example that shows you how to create a window, with a rich edit box. Also shows how you can manipulate the edit box, attach notification messages to it, and highlight/change areas of text.
This source code will show you how to setup your program to be able to minimize to the system tray, or to make a program that runs from the system tray. Shows how you can make a menu (not from resource), and then have it popup when they right click, or double click the icon in the system tray. Fully commented so you can understand.
There are two different programs which come in this *.zip file. One of them is about User-Feedback. The other code is about using edit boxes. This also comes with a really great e-book on: “Writing your first dialog based application using Visual C++.” I strongly recommend you read this e-book if you are just starting to program in Visual C++ (Uses MFC).