Bor to DevC++ prog convert prob
Converting Borland prog to DevC++. Compiled and ran just fine with borland meow.
What is wrong with this?
Code:
pszFileText = GlobalAlloc(GPTR, dwFileSize + 1);
Code:
437 C:\Dev-Cpp\Project2\main.c invalid conversion from `void*' to `CHAR*'
pszFileText declared as
Functions give error of “type”
Code:
test( int a; int b)
{
int test;
....
}
Code:
59 C:\Dev-Cpp\Project2\main.c ISO C++ forbids declaration of `test' with no type
changed to
Code:
int test( int a; int b;)
Takes care of the error. That one fixed but there are others.
Code:
C:\Dev-Cpp\Project2\main.c In function `BOOL LoadTextFileToEdit(HWND__*, const TCHAR*)':
C:\Dev-Cpp\Project2\main.c In function `BOOL SaveTextFileFromEdit(HWND__*, const TCHAR*)':
591 C:\Dev-Cpp\Project2\main.c invalid conversion from `void*' to `HBITMAP__*'
C:\Dev-Cpp\Project2\main.c In function `LRESULT WndProc(HWND__*, UINT, WPARAM, LPARAM)':
C:\Dev-Cpp\Project2\main.c In function `LRESULT MDIChildWndProc(HWND__*, UINT, WPARAM, LPARAM)':
1794 C:\Dev-Cpp\Project2\main.c invalid conversion from `void*' to `HFONT__*'