Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

tentons

@tentons
About
Posts
3
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Compiling a single cpp file
    T tentons

    Is there any way to compile only 1 cpp file in Visual Studio 2003? The build menu only allows you to build the whole project, but I want to compile only 1 source file. I could do it in VC6, but they removed the option, apparently. Do I have to use the command line to do this? Thanks for any help. tentons http://www.griminventions.com

    C / C++ / MFC csharp c++ visual-studio com help

  • STL map with Boost shared_ptr (attempt 2)
    T tentons

    (Sorry for the spam, but here's a proper version without the <> getting eaten.) I'm trying to store boost::shared_ptrs in a std::map with a const std::string as the key. The trouble arises when I need to find a value. Using find() yields an iterator, but VC2003 doesn't like it: error C2440: 'initializing' : cannot convert from 'std::allocator<_Ty>::value_type' to 'boost::shared_ptr' with [ _Ty=std::pair> ] and [ T=Sprite ] And here's the bit of code that causes this reaction: map >::iterator frameSet = mysprite.find("animationName"); What I had hoped was that frameSet would be an iterator that I could dereference to call member functions on the Sprite object. But, alas. Anyone have any suggestions? :wtf: tentons

    C / C++ / MFC c++ help question announcement

  • STL map with Boost shared_ptr
    T tentons

    I'm trying to store boost::shared_ptrs in a std::map with a const std::string as the key. The trouble arises when I need to find a value. Using find() yields an iterator, but VC2003 doesn't like it: error C2440: 'initializing' : cannot convert from 'std::allocator<_Ty>::value_type' to 'boost::shared_ptr' with [ _Ty=std::pair> ] and [ T=Sprite ] And here's the bit of code that causes this reaction: map >::iterator frameSet = mysprite.find("animationName"); What I had hoped was that frameSet would be an iterator that I could dereference to call member functions on the Sprite object. But, alas. Anyone have any suggestions? :wtf: tentons

    C / C++ / MFC c++ help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups