I'm using Dev-c++ to make a dialog-based app. I had it working, but now I am getting an error:
An Access Violation (Segmentation Fault) raised in your program.
I have narrowed it down to the winmain function:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow) {
if (iCmdShow > 4) {
commandlineopener=szCmdLine;
}
gCmdShow=iCmdShow;
strcat(about,version);
strcat(about,"Stuff"); //About stuffs go here
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DIALOG1), 0,(DLGPROC)MainDlgProc);
WSACleanup();
return 0;
}
What am I doing wrong?