IonicWind Software

IWBasic => IWGrid => IWGrid Development => Topic started by: LarryMc on July 06, 2013, 03:13:52 PM

Title: Update 2013-07-06
Post by: LarryMc on July 06, 2013, 03:13:52 PM
Attached is alpha release of the IWGrid library.
Place the IWGrid.lib file in your IWBDev/libs folder.
The IWGrid.inc file needs to go at the beginning of any file that uses the lib.

There is a demo file included in the zip that demonstrates all the different cell types (except the @IWGMASK).

While building the demo I found 3 bugs that are caused by me fixing something elsewhere:
1. Negative numbers are not handled properly in the @IWGMONEY cells
2. In the @IWGBUTTON cells some unwanted extra data is being sent to the User's subroutine.
3. The global grid protection function is not working.

Feedback is welcomed and encouraged.
Now is the time to make all your wants and desires known.
Title: Re: IWGrid
Post by: Brian on July 07, 2013, 04:59:39 AM
Larry,

Can't compile the example, keeps coming up with errors:

Compiling...
IWGrid_Demo.iwb
No Errors
Linking...
IWBasic Linker v1.11 Copyright © 2011 Ionic Wind Software
Unresolved external MAKELONG
Error: C:\Program Files\iwbdev\libs\IWGrid.lib\IWGrid_lib.o - Unresolved extern MAKELONG
Error: C:\Program Files\iwbdev\libs\IWGrid.lib\handlers.o - Unresolved extern LOWORD
Error: C:\Program Files\iwbdev\libs\IWGrid.lib\handlers.o - Unresolved extern HIWORD
Error: C:\Program Files\iwbdev\libs\IWGrid.lib\handlers.o - Unresolved extern MAKELONG
Error: C:\Program Files\iwbdev\libs\IWGrid.lib\notify.o - Unresolved extern MAKELONG
Error: C:\Program Files\iwbdev\libs\IWGrid.lib\on_subs.o - Unresolved extern MAKELONG
Error(s) in linking C:\Documents and Settings\All Users\Documents\IWBasic\projects\IWGrid\IWGrid_Demo.exe

You may be aware of this, of course

Brian
Title: Re: Update 2013-07-06
Post by: LarryMc on July 07, 2013, 05:08:22 AM
Brian
It compiles just fine for me.
I'll have to think on it for a while.
Title: Re: Update 2013-07-06
Post by: LarryMc on July 07, 2013, 05:52:07 AM
Let's start with the questions:
1. what kind of computer and OS?
2. Are you compiling it with EBasic, IWBasic 2, or the new 2.5 beta IDE?
3. do you have Sapero's windowssdk includes installed?
Title: Re: Update 2013-07-06
Post by: Brian on July 07, 2013, 06:05:24 AM
Windows XP SP3
IWB 2.09
Had Sapero's includes installed for ages (although I might re-download them and
install again, to make sure)

Will let you know...

Brian
Title: Re: Update 2013-07-06
Post by: Brian on July 07, 2013, 06:24:04 AM
Silly me, I didn't have $include "windowssdk.inc" as an entry

Brian
Title: Re: Update 2013-07-06
Post by: LarryMc on July 07, 2013, 06:39:29 AM
Does that mean you got it to compile?
Title: Re: Update 2013-07-06
Post by: Brian on July 07, 2013, 06:49:12 AM
Sorry - yes, perfectly. Will look later - off visiting grandchildren, etc

Brian
Title: Re: Update 2013-07-06
Post by: LarryMc on July 07, 2013, 07:50:54 AM
Until further notice (and probably forever) IWGrid requires that you have Sapero's windowssdk include files installed.