also, normally you cant always include headers as much as you like if they dont have a "definition procedure"
like
#ifndef HEADER_H
#define HEADER_H
// header code
Type: Posts; User: C+noob
also, normally you cant always include headers as much as you like if they dont have a "definition procedure"
like
#ifndef HEADER_H
#define HEADER_H
// header code
i havent done File I/O for a long LONG time
but instead of ofstream file_out(MAINPATHNAME)
try:
ofstream file_out;
file_out.open(MAINPATHNAME)
i would also reccomend using get and set
class wutever
{
private int x;
public int X
{
in the windows form designer click tools -> tolol, box and click listbox and drag it on to your program then loook at the code ot see how its made
you can also add colums in th eform designer its...
i reccomend using Dev-C++ over Borland for beginning programming, iots free and available at www.bloodshed.net but anyways if that did run it would run and close instantly try this when you fix your...
howe does everyone find all this stuff on msdn? i search it on MSDN and i cant find it :S
EDIT: ive been to FoosYourDoos, i dont program in Unicode, and it seems deprecetated, as it uses stuff...
yes, those wiondows ones i have, but they dont cover the controls i want to learn about
i know how to make the simple controls like buttons and edits etc....
but how do i make..
progress bars how do i use them and how can i make them look like XP not windows 95, track bars how do...
i disagree, microsoft is a memory .......... the only reason i uise it is cus of DX but Microsoft pushes everything, and its not our boss geez.
i take this as offensive, i cant do DDraw but you can do 2D with Direct3D, DirectX is not hard to learn :rolleyes: !!!!! i had an easier time learning DirectX than OpenGL (i started OpenGL first,...
i must say, i didnt have a great knowledge of windows when i started windows programmong, starting windows OpenGL and DirectX got my programming skills tuned AKA learn as you go and ask questions...
im looking form some good windows XP programming books in C++
and
i REALLY need to find advanced windows tutorials like with combo boxes list boxes advanced dialogs threads dll's groupboxes...
HDC is the Direct Context which is used in win32 to write anything to the screen ex. lines or GFX anything like that or simply managing Bitmaps OpenGL uses HDC
try this tutorial it should vcover this and future questions: http://code.glowdot.com/tutorials/win32tutorial.php
wow id like to find this out for myself (i too use this compiler)
#include brings code froma header file into your application, eventually it combines into one big CPP or C file now if you included all these headers even ones you dont use you would have an extremly...
how can i achieve this?
im havin probs with this bit of code:
case WM_TIMER:
{
if (wParam == FPS_TIMER)
{
FPSCount = round(FPSCount * 1000/FPS_INTERVAL);
...
i need it for my game to calculate FPS so yes thts why i asked :P
www.catch22.net/tuts
to link that go to linker settings and in the box type -lgdi32
btw? why wud u use an older version of dev?
Try This ( i use this methoud for my games)
// Global Variables.
bool keys[256];
bool tabp; // check if tab is being pressed
// were you have your ShowWindow() function plce this under it...
tnx and congrats to your 200th post :D
no need to flame and yea allegro is a piece of ........
its not difficult at all unless ur making it a windows program otherwise console ........ like that is easy, best not to post your im ppl will spam u