Home Forums C Programming passing HWND to STL map

Viewing 0 reply threads
  • Author
    • #1959

      I’m trying to pass a HWND type to a STL map container.
      I’m using like a void * to pass that parameter.
      I’ve coded like this,

      Void fun (HWND hOwner, LPCTSTR str, HWND hValue)
      map m1;
      m1.insert(make_pair(hOwner,str),hValue); //Line 2

      I’m getting a compile time error ( Error Code C2664) in line 2.
      Kindly guide me how to implement this.

Viewing 0 reply threads
  • The forum ‘C Programming’ is closed to new topics and replies.