PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

bug??

Hello to everyone, i was compiling the source that PointOfLight give me (thanks a lot P.O.L.) when i got a sintax Error coming from ListView_lib.ppl

on line 31, this one:

num$ = ListView_GetItemCount(ListView$);


I suppose may be because isnt declared correct?

all i can see is the initial declaration at line 1 that look like :

01 func ListView_Count(ListView$)
cnt$ = SendMessage(ListView$, LVM_GETITEMCOUNT, 0, 0);


am I right or totally wrong?
matteo,

Looks like you are right. Change line 1 in ListView_lib.ppl to read ListView_GetItemCount and not ListView_Count.

bmanske
PointOfLight · 21 Jul 2005, 22:36 UTC
Actually, it might be that the code needs to be changed rather than the include file. At one point I was trying to standardize all my libraries in terms of common function calls, and I might have missed updating some code appropriately. Of course, I won't know for sure without looking at my other libraries :D
P.O.L.

It looks to me like the calls were all well named except for the one in question. Your right, I should have stated that this may have an effect on the code.

I was going to look into it and then realized that I don't have the DLL needed. Is it possible to get the DLL without downloading and installing all of EVC++ 2002 edition?

BTW: really nice work you did on the libs. We should see if Kornalius will include them in the distribution. Thanks!

bmanske
PointOfLight · 22 Jul 2005, 13:15 UTC
Thanks very much for the compliment. Actually, some of them are already there. I think most of the _lib extensions that deal with specific controls are mine. These hadn't been included mainly because I wasn't done with them yet, though the tab control one might be close enough to include. Which DLL is it that you are missing?
P.O.L.

I don't have the ADOCE31.DLL file. Do you know where I can get it?

I think you did all of the _lib files except for the UpDown_lib which was mine. These 2 new files may not be done but they represent significant work, would make access to the controls easier and would allow for review & revision by the PPL community if they were placed into the distribution. I think you should go ahead and asked for them to be included.

I have used the tab control in the control properties page for the VFB. I would like to see if I can use TabCtl_lib and maybe even expand on it. Do you mind?

Thanks

bmanske
PointOfLight · 22 Jul 2005, 17:00 UTC
Go to this site: http://www.rustysabre.com/Downloads/. There are three ADOCE31 related downloads. Of the two that contain the DLLs (the CAB and non-doc zip file), I don't recall which one I used, though in theory the only difference is that one is a CAB and the other is a PC based install if you prefer. Hope one of these helps.

As for expanding on the TabControl_lib, be my guest. I only ask that you let me know what you've done so that I can keep up with things. Of course, if you don't, there's not a whole lot I can do anyway :roll:
@Bmanske: I agree with you ... for what I can see there is a nice work that P.O.L did and should be included with the distribution , because a lot of developers are interested in db application.

@P.O.L.: now compiling the main i get this message and it's a couple of days that i'm trying to solve myself (just to learn more about ppl) without result. the message i get is this:
Welcome to the PPL Console


PPL 0.8 Compiler Error Report

(Main.frm#FORM100) [Syntax error at 'COMBOBOX_GETSELITEM' (111,1)]
(Main.frm#FORM100) [Closing ) missing at '(' (111,1)]
(Main.frm#FORM100) [Syntax error at '==' (111,2)]


do you have any suggestion about how to proceed to debug and found the error?

thank you very much you guys... ciao ciao
PointOfLight · 23 Jul 2005, 13:11 UTC
For some reason the Combobox_lib being distributed with PPL is different than mine. Here is my version.
Attachments:
ComboBox_lib.ppl (4 KB)
@PointOfLight: finally it work!!! thank you a lot, greath job!!
PointOfLight · 26 Jul 2005, 16:29 UTC
Glad it's working, and glad you like it. I thought it would be pretty useful for learning the basics of SQLite. Besides, it provides a simple browser for looking at databases on your PDA :)
POL,

I finally got this working also. I had to do it the hard way. I modified the source to be compatible with the current versions of the library and tried to make it friendly to the desktop. Lets hope that when Kornalius comes back he will get SQLlight working for the desktop.

Would you please make this change to your tab library?
Code:
func TabControl_InsertTab(tabctl$, tabname$, tabpos$)
if(tabpos$ == -1)
tabpos$ = TabControl_GetItemCount(tabctl$);
end;

struct(tcitem$, TCITEM);
#ifdef _WIN32_WCE
tcitem.pszText$ = tabname$;
#else
tcitem.pszText$ = wide(tabname$);
#endif
tcitem.mask$ = TCIF_TEXT;
tcitem.cchTextMax$ = length(tcitem.pszText$);
result$ = SendMessage(tabctl$, TCM_INSERTITEM, tabpos$, &tcitem;$);

return(result$);
end;


This allows the use of the TabControl_InsertTab function on the desktop.

matteo: good job! While working on this, I was thinking that this was a really tough problem for anyone new to PPL.

bmanske
PointOfLight · 29 Jul 2005, 15:18 UTC
I certainly can make that change. I will say that none of my libraries are 100% compatible with desktop, because at the time I wrote them the desktop version didn't even exist. Maybe in all my spare time :roll: I can go back and tweak the libraries.
thank you bmanske for the compliment, for sure your help encourage people to want to be in this new language also the fact to share sources help a lots