• Advertisement

neoztar

Member
  • Content count

    176
  • Joined

  • Last visited

Community Reputation

144 Neutral

About neoztar

  • Rank
    Member
  1. Quote:Original post by Xarium caldiar's first post contains the only XML in this thread. An XML file must begin with the processing instruction: <?xml ### ?> If it doesn't; it's not XML. Actually, the XML declaration is optional, but you should use it.
  2. int main(int argc, char *argv[])

    int main() does the same thing when you don't need the command line arguments. When using the longer form, argc contains the number of arguments and argv contains all arguments. Note that the first argument is the path of the application.
  3. Just thought of something: Use CreateProcess() to start the application, and save the process id, which you can then use with OpenProcess() to see if it's still running. Check MSDN for details.
  4. You could try to create a hidden window and see if you can find it with FindWindow().
  5. You can use CreateMutex() to create a named mutex in one application, and then try to create a mutex with the same name in the other one. If the other application is running, GetLastError() will return ERROR_ALREADY_EXISTS.
  6. The WGL_ARB_pbuffer extension does just that, and with WGL_ARB_render_texture you can use the offscreen buffer as a texture.
  7. Just use return. When called from an included or required file, the script continues after the include() or require().
  8. I don't know what happened. My post showed up empty. Hmmm... Anyway, it's just that due to all those template instanciations, the name becomes too long for the debugging information. This warning can be safely ignored, by inserting #pragma warning( disable: 4786 ) before including <map> [Edited by - neoztar on June 16, 2004 4:34:38 PM]
  9. Signature Testing

    hmm...
  10. Q3) No, the texture coordinates should be the same throughout the animation. Q4) The normals are specified per-frame, as indices into a normal table. Interpolating between normals should be fast and easy, just remember to normalize the result.
  11. If I remember correctly, RTTI is usually implemented as an extra pointer at the end of the vtable for each class, which shouldn't cause any performance hit. Note that in many cases dynamic_cast<> may not be the best choice. Other methods, like the visitor pattern, may be better suited to your problem.
  • Advertisement