Qbasicnews.com

Full Version: Long or Integer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi all,

Thank you guys for all the answers ... I learned a lot from it.

But one question is still there:

Is it propper coding style to mix integers and longs?
For instance take the example "examples\Windows\gui\hello.bas". The arguments of DefWindowProc are declared as integers, but longs are passed. If you look in the mentioned example it is the same with other functions (BeginPaint returns an integer, this integer is stored in hDC, which was declared as long).

cu, helpy
Pages: 1 2