Code:
BOOL LoadTextFileToEdit(hEdit, pszFileName);
BOOL SaveTextFileFromEdit(hEdit, pszFileName);
//void DoFileOpen(hwnd);
//void DoFileSave(hwnd);
void splash(hInstance);
HWND CreateNewMDIStatus(hMDIClient);
LRESULT CALLBACK WndProc(hwnd, msg, wParam, lParam);
LRESULT CALLBACK MDIStatusWndProc(hwnd, msg, wParam, lParam);
BOOL SetUpMDIStatusWindowClass(hInstance);
BOOL CALLBACK SplashDlgProc(hwnd, message, wParam, lParam);
BOOL CALLBACK AboutDlgProc(hwnd, message, wParam, lParam);
BOOL CALLBACK MenuDlgProc(hwnd, message, wParam, lParam);
BOOL CALLBACK ToolDlgProc(hwnd, Message, wParam, lParam);
BOOL CALLBACK WeightDlgProc(hwnd, message, wParam, lParam);
BOOL CALLBACK SearchDlgProc(hwnd, message, wParam, lParam);
BOOL CALLBACK EditDlgProc(hwnd, message, wParam, lParam);
float convertTextToNum(char *text);
void displayMenu(hwnd);
void displayUserScreen(hwnd);
void clearUserFields(hwnd);
void displayUserControl(hwnd);
See anything wrong here? Your prototypes are correct elsewhere so I assume this is a tiredness induced problem and I won't go into details. I didn't think this was valid either(but I may be wrong on this one):
Code:
static void logger(char path[MAXSTR], char test[MAXSTR]);
Fix your prototyes in test.c and header files and see if the errors remain.
Does anyome know why the compiler doesn't baulk on these invalid "prototypes"? The errors suggest that the compiler interprets them as being functions whose argument lists are not specified or take no arguments.