: :
See RED...
: : Also, MAKELPARAM(FALSE,0) is just zero.
: :
: :
: : :
: : : hfDefault = (HFONT) GetStockObject (DEFAULT_GUI_FONT);
: : : SendMessage(hEdit, WM_SETFONT, (WPARAM)hfDefault, MAKELPARAM(FALSE, 0));
: : : break;
: : :
: :
: :
:
: Thanks ASM, the (HFONT) worked for the problem. Dev didn't like when I took out the false though so I kept it and it worked fine. Now I am running into another error on the next lesson.
:
:
: DWORD dwFileSize;
:
: dwFileSize = GetFileSize(hFile, NULL);
: if(dwFileSize != 0xFFFFFFFF)
: {
: LPSTR pszFileText;
:
: pszFileText = GlobalAlloc(GPTR, dwFileSize + 1);
: if (pszFileText != NULL);
:
:
: with an error of: invalid conversion from 'void*' to 'CHAR*'
:
: Eventualy I will figure out all of these damn errors:)
:
If you compile as C++, you need to make an explicit typecast.
You won't get that error if you compile as C.