Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by gopet

  1. gopet

    Static globals in local include files

    am i wrong or something? i don't mean any disrespect
  2. gopet

    Static globals in local include files

    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...
  3. gopet

    c++ to ? = games

    .. i like this spirit :-)
  4. gopet

    Static globals in local include files

    ! 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...
  5. gopet

    c++ to ? = games

    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...
  6. gopet

    Static globals in local include files

    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...

Part and Inventory Search

Back
Top