Can any one tell me how to solve these any pointers would be of great help :(

Error5

Look in that file (afxcmn) and check line 544. Most likely its a NULL pointer or invalid HANDLE that is being passed to it. I don't have that file installed on my computer so I can't check it for you. Put a break point in your program where it calls the function in afxcmn then verify the validity of the parameters your program is passing.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.