in my window creation class, i have a static WndProc which will be used for adding events. i read here http://www.mvps.org/windev/cpp/class.html that by passing the this pointer to the lParam of CreateWindow, i can then retrieve that pointer when i handle WM_CREATE in my WndProc, and store it.. after i can cast it back to the class, and use the pointer to access and modify members...the problem is that everytime i try to actually modify a member, the program crashes..could anybody help me?
thanks
Amon Ra




Reply With Quote