Advertisement Jump to content
  • Advertisement

VolkerG

Member
  • Content Count

    744
  • Joined

  • Last visited

Community Reputation

151 Neutral

About VolkerG

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. VolkerG

    c++ reference Question

    To be exact, the first version will create the new object A on the stack (as local variable), not on the heap.
  2. LARGE_INTEGER is a union. You should be able to use the QuadPart member to do calculations.
  3. VolkerG

    Alternative STL

    It has been said before: Boost is not an STL implementation. It "only" contains extensions to the Standard C++ library. You will still need a STL to use boost. So you can't choose between STLPort and Boost.
  4. The first problem I see is that you cast the pointer to the double fin to a LARGE_INTEGER pointer. This will result in garbage beeing stored in fin. So the varaibale you pass as argument to QueryPerformanceCounter must be of type LARGE_INTEGER. The same holds for QueryPerformanceFrequency.
  5. VolkerG

    fatal link error

    What compiler version are you using? What library causes the error? Was the library built to be used with the version of your compiler?
  6. Have you tried to define _WIN32_WINNT to be 0x0500 either in stdafx.h (if you use precompiled headers), before including the very first header or in the compiler settings tab?
  7. Have a look at this: Using the Windows Headers. This should help you solving the problem, since this function is only defined starting with Windows 2000, according to the Platform SDK documentation. Edit: Don't have the VC 6 headers by hand, but you may need the latest headers that are included in the Platform SDK. You serach in WinGDI.h for AddFontResourceEx and you should see if it is defined at all (guarded by #if (_WIN32_WINNT >= 0x0500)).
  8. Quote:Original post by TDragon Look again :D -- that's Vampyre_Dark's code, not the OP's. Ups, my fault :(. But the argument stays the same. Just casting away the problem may easily lead to hard to detect errors (for example when moving from 32 to 64 bit windows, which should not be a problem in the OPs case).
  9. At first glance, the return type of your dialog procedure is nor specified. From what I read in the platform SDK it should be INT_PTR. I Don't think that just casting away the problem is the way to go in that case.
  10. You must not delete elements you did not allocate using new. Since you never allocated the elements of v on the heap you must not delete them. just delete a, that will free all memory in your example.
  11. typedef typename C::Key should be what you are looking for.
  12. VolkerG

    LIBs vs LoadLibrary()

    Or are you talking about import libraries vs. dynamic loading? In that case I would use the first one where possible (see post above). It's easier to code since the compiler takes care of the correct calling and you don't have to manage the function pointers for the entry points by yourself.
  13. VolkerG

    Degrees to Radian

    Just a quick hint: http://mathworld.wolfram.com/Radian.html
  14. VolkerG

    About OOP and Constructors ...

    Quote:Original post by Clueless The impression I got is that in that case a constructor CResource( std::string filename ); would be called ... but CResource() isn't. Is CResource( std::string filename ); the standard constructor in that case? That was what I was trying to talk about ;) If you don't call the baseclass constructor explicitly the constructor without any parameters will be called, regardless of the constructor in your derived class. how comes you think something different happens?
  15. VolkerG

    std::list question

    erase returns the iterator that follows the element beeing erased. You just have to modify your loop to use the return value in that case. You should find an example (for list or vector) if you search the forum.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!