Well thanks everybody.
Yes it's no good to have globals in a program i know.
I hope i won't say anything foolish, but i see win32api
fully procedural /* ok with classes but procedural */.
Thus writing a simple win32 program with 2 or 3 windows you have to declare HINSTANCEs and Handles to...
! wow very quick, thanks
ok here is a simple example and the compiler output
in the end
/* config.h */
#ifndef CONFIG_H
#define CONFIG_H
#include <iostream>
int WhatIsWrong; /* THIS SHOULD BE STATIC */
void SayHelloToTheWorld(char *s);
#endif
/* config.cpp */
#include...
OpenGL is a a graphics library.
Using constants and functions the library provides; you can do really good graphics. OpenGL is small. You don't to know C++ at the begining, just C.
Although GL is not win32 only (multiplatform).
Using plain C with OpenGL you can do (i think) a lot of things...
Hello everybody,
in an example project with VC6.0
config.h
config.cpp
main.cpp
I am using some global variables in `config.h'.
If i won't declare them as `static' then the conpiler stops when compiling with
critical error; telling me something about undercleared/redeclared symbols in .obj...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.