Oxygen Basic
Information => Development => Topic started by: Arnold on March 20, 2018, 09:20:40 AM
-
Hi Charles,
corewin.inc is a great enhancement to OxygenBasic. And with the rules you stated here:
http://www.oxygenbasic.org/forum/index.php?topic=1569.msg17059#msg17059 (http://www.oxygenbasic.org/forum/index.php?topic=1569.msg17059#msg17059)
As for unprototyped calls, o2 makes assumptions that UDT variables are byref, strings are dereferenced to be char pointers of some sort, floating point is passed as single byval,and the rest are integer primitives byval of any width up to 32/64 bits, according to platform.
I think by applying these rules it should be possible to use almost all unprototyped functions of the supported dlls without any problem.
Will minwin.inc get superfluous or will it be necessary for special cases?
Roland
-
Hi Roland,
There's no harm in keeping it for simple API programming. I've moved the types and equates into WinData.inc, which is shared by both CoreWin and MinWin. So we are only talking about 10kb.