PlanetSquires Forums

Support Forums => WinFBX - Windows Framework for FreeBASIC => Topic started by: Frank Bruebach on March 11, 2024, 09:02:49 AM

Title: Nehe 5 example errors
Post by: Frank Bruebach on March 11, 2024, 09:02:49 AM
Good morning hello all...

file: CW_GL_Nehe_05.bas

hey all wanted to test an openGl file, but something I have made wrong ?
I have got here some error messages... working on a windows 10 pc 32bit machine
regards, frank

freebasic version 1.10.1 win32

cwstr.inc
line 831 ambigous call to overloaded function etcpp
DIM cws AS CWSTR = SPACE(nChars)

afxstr.inc
line 137 + line 142 errors
dim cws as cwstr=SPACE(dwLen)
DIM cws AS CWSTR = SPACE(LEN(ansiStr))

much more...

Perhaps Somebody can Help thx
Title: Re: Nehe 5 example errors
Post by: Paul Squires on March 12, 2024, 09:21:57 AM
Works perfectly fine for me on 1.10.1 that I downloaded from:
https://www.freebasic.net/forum/viewtopic.php?t=32498

Are you using the new development version that Jeff is working on?
https://www.freebasic.net/forum/viewtopic.php?t=32254

That new version has a lot of changes to the way SPACE works and from your post it looks like that is where the errors are happening. Those functions with the errors are part of Jose's WinFBX library.

Title: Re: Nehe 5 example errors
Post by: Frank Bruebach on March 12, 2024, 12:55:56 PM
Thank you Paul :)

I have downloaded latest patch for freebasic and fbc Version I have was built at 24.12.2024 1.424 MB Size..

But my "fbedit" Editor dated of 2010 could that be a Problem perhaps?  Other Programms are working all fine.

I have included Afx folder into \ inc folder of Main Level Here you can find fbc

I have No ideas sorry

Thx Frank
Title: Re: Nehe 5 example errors
Post by: Frank Bruebach on March 12, 2024, 04:34:14 PM
All is fine now ;)

Have downloaded winFBE_suite and my nehe 5 example is running fine

I am Glad lol Bye Frank nice Rest of the week

Title: Re: Nehe 5 example errors
Post by: Paul Squires on March 12, 2024, 05:32:25 PM
Excellent, happy to hear that everything is working okay for you now!