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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Sample CMap Application

Sample CMap Application

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    velayudhan_raj
    wrote on last edited by
    #1

    Hi Guys, Can anyone plz help me by giving some source code for sample CMap applications. It will be very useful for me. Regards Velayudhan Thanks in Advance Velayudhan

    C U D 3 Replies Last reply
    0
    • V velayudhan_raj

      Hi Guys, Can anyone plz help me by giving some source code for sample CMap applications. It will be very useful for me. Regards Velayudhan Thanks in Advance Velayudhan

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Do you mean samples using CMap ? I recommend using std::map instead. I know there are plenty of samples for that on the web and IMO, the public interface makes a lot more sense than CMap does.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      1 Reply Last reply
      0
      • V velayudhan_raj

        Hi Guys, Can anyone plz help me by giving some source code for sample CMap applications. It will be very useful for me. Regards Velayudhan Thanks in Advance Velayudhan

        U Offline
        U Offline
        uday kiran janaswamy
        wrote on last edited by
        #3

        hi, CMap is used for (Key Name --> Key Values). // It is MFC Class. Please Study the MSDN which gives a Neat explation and how to use. // In order to Use STL class. use std::map(...) // which is complicated. First Approach is MFC. Go to Google and search CMap you will get number of Examples. Uday kiran

        1 Reply Last reply
        0
        • V velayudhan_raj

          Hi Guys, Can anyone plz help me by giving some source code for sample CMap applications. It will be very useful for me. Regards Velayudhan Thanks in Advance Velayudhan

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          velayudhan_raj wrote:

          Can anyone plz help me by giving some source code for sample CMap applications.

          void main( void )
          {
          CMap <int, int, CString, CString> mapZIP;

          mapZIP.SetAt(73001, "Albert");
          mapZIP.SetAt(73002, "Alex");
          mapZIP.SetAt(73003, "Edmond");
          mapZIP.SetAt(73004, "Amber");
          mapZIP.SetAt(73005, "Anadarko");
          mapZIP.SetAt(73006, "Apache");
          mapZIP.SetAt(73007, "Arcadia");
          
          CString strCity;
          mapZIP.Lookup(73006, strCity);
          

          }


          "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

          "Judge not by the eye but by the heart." - Native American Proverb

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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