Problem ending application
I am very new to C. I have created an application that calls a DLL. The DLL is used to create a dialog with a bunch of labels and edit boxes on them. On the dialog is a Quit button. The DLL handles this as well. When the Quit button is clicked, I need to close the entire application, the dialog as well and the parent form. Here's what I have so far:
When I debug, it hits the SendMessage(hWndChild, WM_CLOSE,NULL,NULL) line, then goes to the return line. And I get this error then: Unhandled exception in ParseName.exe: 0xC0000005: Access Violation.
LRESULT CALLBACK ParseDialogProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam)
static HWND hWndChild;
const int iMaxBufferSize = 500;
hWndChild = (HWND)GetParent(hWnd);
//there is some code here but it all works so i omitted it