Author Topic: Question about corewin / minwin  (Read 1448 times)

0 Members and 1 Guest are viewing this topic.

Arnold

  • Guest
Question about corewin / minwin
« 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

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

Charles Pegge

  • Guest
Re: Question about corewin / minwin
« Reply #1 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.