Oxygen Basic

Information => Development => Topic started by: Arnold on March 20, 2018, 09:20:40 AM

Title: Question about corewin / minwin
Post 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)

Quote
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
Title: Re: Question about corewin / minwin
Post by: Charles Pegge on March 20, 2018, 10:50:30 AM

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.