Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Ian Casey (RIP)

#1
Questions & Answers / Re: ODBC demo errors
July 27, 2023, 01:40:50 PM
Thanks Robert,
I guess I missed that.

Ian
#2
Questions & Answers / ODBC demo errors
July 27, 2023, 12:28:33 PM
I've been looking at the DB example in the demos, after a few easy changes to update he code, I still have an error

Db.c(916): error #2140: Type error in argument 2 to 'SQLAllocConnect'; expected 'void * *' but found 'int'.

in the ODBC.inc line 171
retcode = SQLAllocConnect(hEnv, &hDbc)

which BC tranlates to:

retcode=SQLAllocConnect(hEnv,0xDbc);

Ian
#3
Take a look at MicroCode Studio, PICBASIC Pro, its been a while since I used it.
But I think it translates to assembly but there some options

Ian
#4
Announcements / Re: BCX v7.9.8 is available for download
February 14, 2023, 10:26:19 PM
Thanks,
I still had -D_WIN32_WINNT=0x0501 changing to /D NTDDI_VERSION=0x0A00 did the trick.
#5
Announcements / Re: BCX v7.9.8 is available for download
February 14, 2023, 08:50:39 PM
Kevin,
I tried compiling this as 32 bit in PellesC and I get error POLINK: error: Unresolved external symbol '_GetFinalPathNameByHandleA' - referenced from 'Bc.obj'.


It's not in the code so I tried PellesC64 bit and it compiles successfully, just thought I'd let you know.

Ian
#6
Announcements / Re: Wayne Halsdorf
November 20, 2022, 01:02:56 PM
I learned so much from Wayne and he fixed several problems for me.
It so good to know him, Rest in Peace
#7
Tips & Tricks / Re: Got a memory leak? Try this.
August 15, 2022, 09:22:51 AM
Okay, thanks anyways,

I still have a memory leak in the Forum to BCXOLR code, it only lets me add 4-5 posts to the db before it dies. 
I'll keep trying to fix it.

Ian

Update,
I found it I think I had a int instead of a long counting the characters in a file.  Still has some problem with a couple of posts, but manageable for now.
#8
Tips & Tricks / Re: Got a memory leak? Try this.
August 15, 2022, 06:13:01 AM
Did anyone try this with PellesC.
I get C:\Programming\BCX\MemoryTracker.h(12): fatal error #1035: Can't find include file <exception>.

#10
All those errors are in Center function that I modifed with 7.7.8 It relies on winuser.h and Windows.h both of which should be  included in the basic BC 'c' file. Of course they also rely on having Win 2000 Pro or newer.

Best Regards
#11
Bug Reports / Re: Misformed string code
May 02, 2022, 07:38:00 PM
Majik!
#12
Bug Reports / Misformed string code
May 02, 2022, 03:49:40 PM
As Far as I see I have only changed the order of these items for this to fail

DIM i, sometext$
sometext$ = "Just some text"
i = 100.125
PRINT "Test the string " & STR$(LEN(sometext$)) & USING$("##.#", i)
PRINT "Test the string "  & USING$("##.#", i)  & STR$(LEN(sometext$))


C:\Programming\BCX\MyProgs\testorder.c(431): error #2168: Operands of '&' have incompatible types 'char *' and 'char *'.

printf("%s%s\n","Test the string ",str((int)strlen(sometext))&Using("##.#",i));  <-- fails
  printf("%s%s%s\n","Test the string ",Using("##.#",i),str((int)strlen(sometext)));
#13
Thanks Kevin, will do
#14
David,
This may be a better example although it is not OOP code. I used this to test my GPS (GGA) and Fishfinder (DBT) inputs.
#15
David,
That's some old code...
to run that code with the latest BCX change THIS to ME also line 79 of OOP_CommInc.inc to LOOP.
You will need to change port# baud etc. manually.