   Bitmap Fonts and Time based Particle Systems
  I have two questions, and the first is about my create bitmap funciton. I am recieving an extremely strange compile error for the funciton. The code is below.    unsigned int Create(char *fontName, int fontSize){HFONT hFont;    // windows fontunsigned int base;base = glGenLists(96); // create storage for 96 charactersif (stricmp(fontName, "symbol") == 0){hFont = CreateFont(fontSize, 0, 0, 0, FW_BOLD, FALSE, FALSE, FALSE, SYMBOL_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY,FF_DONTCARE | DEFAULT_PITCH, fontName);}else{ hFont = CreateFont(fontSize, 0, 0, 0, FW_BOLD, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY,FF_DONTCARE | DEFAULT_PITCH, fontName);}if (!hFont)return 0;//compiler error on next lineSelectObject(HDC, hFont);//if i take out the above line this line also result in a compile errorwglUseFontBitmaps(HDC, 32, 96, base);return base;}The compiler says "Parse error before "," which is weird because it compiles if i take out those two lines.The second problem I have is I would like to know how to time based motion on my partcile system. I called an update and draw function every frame. Should it just be something like:float time = GetTickCount();float elapsed = time - lasttimeif (elapsed >= 100)Update()ltime = time;Thanks in advance.[edited by - gresc on December 18, 2003 8:07:27 PM]
  Are you sure your var isnt called "hDC" or something instead of HDC ? HDC should be the typename... ;  yeah i feel really stupid, i tried to figure what was wrong for ages, and it was as simple as that. Does anyone have any ideas on the tme based motion of particle systems?  Streamline.cjb.net - Flash and Opengl Country