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,
I’m getting a compile time error ( Error Code C2664) in line 2.Code:Void fun (HWND hOwner, LPCTSTR str, HWND hValue) { map<const void*, std::string, void *> m1; m1.insert(make_pair(hOwner,str),hValue); //Line 2 }
Kindly guide me how to implement this.