- This topic has 0 replies, 1 voice, and was last updated 17 years, 11 months ago by .
Viewing 0 reply threads
Viewing 0 reply threads
- The forum ‘C Programming’ is closed to new topics and replies.
Home › Forums › C Programming › passing HWND to STL map
Hi,
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,
1 2 3 4 5 | Void fun (HWND hOwner, LPCTSTR str, HWND hValue)<br /> {<br /> map<const void*, std::string, void *> m1;<br /> m1.insert(make_pair(hOwner,str),hValue); //Line 2<br /> }</const> |
I’m getting a compile time error ( Error Code C2664) in line 2.
Kindly guide me how to implement this.