Page 6 of 6

Posted: Fri Feb 25, 2005 10:00 am
by Antdizzle
You can make a wrapper of Purebasic commands if they are for your use only.

Posted: Fri Feb 25, 2005 12:58 pm
by NoahPhense
OMG.. you guys are at this again.. just find the old thread

- np

Posted: Fri Feb 25, 2005 2:57 pm
by Fred
The english doc is finished, you can grab it here: www.purebasic.com/beta/PureBasic.chm so there is no excuse to not use the beta anymore 8) . Feel free to tell us if there is something missing..

Posted: Fri Feb 25, 2005 3:35 pm
by Karbon
Then why isn't it PureBasic 3.93? *grin*

As soon as I get the source to COMLIB or get in touch with aXend, I'll be using it...

Posted: Fri Feb 25, 2005 5:55 pm
by Derlidio
I had this construction in my code, which was compiling OK on 3.92:

Code: Select all

CopyMemory(@UserGUID, *AppDesc + OffsetOf(DPN_APPLICATION_DESC,guidApplication), SizeOf(GUID))
Now, with 3.93 beta 3 it doesn't compile anymore. Compiler complains about a Syntaxe Error in the expression. Am I missing something?

- Derlidio

Posted: Fri Feb 25, 2005 6:09 pm
by Derlidio
Ok... the problem seems to be with OffsetOf() function.

This code also doesn't work:

Code: Select all

Structure Test
  X.l
  Y.l
EndStructure

Address = OffsetOf(Test,Y)

Debug Address
Compiler complains about a Syntaxe Error in the line of OffsetOf(). Was that function removed from the language core?

- Derlidio

Posted: Fri Feb 25, 2005 6:29 pm
by traumatic
Derlidio wrote:Compiler complains about a Syntaxe Error in the line of OffsetOf(). Was that function removed from the language core?
No, the syntax changed =>
viewtopic.php?t=14124

Posted: Fri Feb 25, 2005 6:33 pm
by Derlidio
Thanks! Would not figure it out on my own...

- Derlidio

Posted: Fri Feb 25, 2005 6:34 pm
by Pupil
@Derlidio

I think the syntax has changed, or at least i asuming that from reading other post on this forum today.

The new syntax seems to be like this:
OffsetOf(structure\item)

so your example would look like this:
Address = OffsetOf(Test\Y)

Posted: Sat Feb 26, 2005 1:54 am
by Doobrey
Fred wrote: Nothing change here, it allows you to use your dll in VC++ (or any other compilers) for your own projects easily.
Ah..but what about the other use for .lib files? :wink:

Posted: Sat Feb 26, 2005 1:40 pm
by freedimension
Ah, the new sort functions are good, but the whole lib would be even more complete if there were two more functions with callbacks:

Code: Select all

UserSortStructuredArray(ArrayName(), @SortProc() [, Start, End]))
UserSortStructuredList(ListName(), @SortProc() [, Start, End]))
Where the SortProc() could look like this (very simple example, the procedure though is meant to be used in more complicated situations):

Code: Select all

Procedure SortProc(*a.myStruct, *b.myStruct)
  If *a\myElement > *b\myElement
    result = 1
  ElseIf *a\myElement < *b\myElement
    result = -1
  Else
    result = 0
  Endif
  ProcedureReturn result
EndProcedure

Posted: Sat Feb 26, 2005 6:03 pm
by Lebostein
Hera a simple "error" in the new manual (see history):
Added: KeyboardMode() (wasn't in the doc)
Yes, now it is in the doc :D

Posted: Sat Mar 05, 2005 12:22 am
by traumatic
fsw wrote: Somehow it's weird.

With other languages, C or Basic's, there is no such thing that userlibs (static libs) need to be recompiled, the only thing to watch for are cdecl or standard calls.
I'm sorry to bring up this thread again and being OT but I really had to smile while
reading this on the freebasic site:

Code: Select all

Version 0.12b released

[chged] IMPORTANT: the format of the internal string descriptor was modified to speed up concatenation of large strings, so you MUST recompile all the old code, don't reuse object files compiled with older versions (below v0.12b) and rebuild DLL's created in FB if they return or process STRING's passed to/from client EXE's (v1c)
Ok, I know what comes next: "Hey, it's still beta!" ;)

Posted: Sat Mar 05, 2005 1:17 am
by Fred
:P

Posted: Mon Mar 07, 2005 4:45 pm
by fsw
traumatic wrote:
fsw wrote: Somehow it's weird.

With other languages, C or Basic's, there is no such thing that userlibs (static libs) need to be recompiled, the only thing to watch for are cdecl or standard calls.
I'm sorry to bring up this thread again and being OT but I really had to smile while
reading this on the freebasic site:

Code: Select all

Version 0.12b released

[chged] IMPORTANT: the format of the internal string descriptor was modified to speed up concatenation of large strings, so you MUST recompile all the old code, don't reuse object files compiled with older versions (below v0.12b) and rebuild DLL's created in FB if they return or process STRING's passed to/from client EXE's (v1c)
Ok, I know what comes next: "Hey, it's still beta!" ;)
Exactly :wink:
And it's only version 0.12....