It is currently Thu Oct 17, 2019 11:53 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 54 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: Wed May 07, 2008 10:53 pm 
Online
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1961
Location: Germany
Update v0371

Bugfix Includes:
- Now check Includefile to constant "#PB_Compiler_Home" and with added "+" Strings

Please test it

GT :wink:

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 07, 2008 11:08 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Sep 17, 2007 10:28 am
Posts: 141
Location: P.O.P
Thanks for update but it doesn't work...

Try to download
http://purebasic.fr/english/viewtopic.p ... sc&start=0

Next ->
Code:
IncludePath #PB_Compiler_Home + "path_to_DirectX\"
XIncludeFile "d3dx9.pbi"
Class MyClass Extends BaseClass
EndClass


Quote:
[COMPILER] Line 3: Syntax error!

_________________
POiNT.OF.PRESENCE group


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 07, 2008 11:47 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Sep 17, 2007 10:28 am
Posts: 141
Location: P.O.P
and another ..

no parameters for constructor? :cry:

_________________
POiNT.OF.PRESENCE group


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 07, 2008 11:47 pm 
Online
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1961
Location: Germany
I now know the probleme, IncludePath is not checked.

In the works.

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 07, 2008 11:50 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Sep 17, 2007 10:28 am
Posts: 141
Location: P.O.P
mk-soft wrote:
In the works.

good luck :!:

_________________
POiNT.OF.PRESENCE group


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 08, 2008 12:21 am 
Online
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1961
Location: Germany
Update v0.372

Bugfix: Includefile and parse "IncludePath" added

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 08, 2008 1:15 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Sep 17, 2007 10:28 am
Posts: 141
Location: P.O.P
good support!

But another moment:

topfile.oop:
Code:
...
Interface IMyClass Extends IUnknown
...
Translate( Translation.D3DXVECTOR2)
EndInterface
...


dx.pbi:
Code:
...
structure D3DXVECTOR2
...
endstructure


main.pb:
Code:
IncludeFile "dx.pbi"

class myclass extends baseclass
  Translation.D3DXVECTOR2
endclass


Of course...
Quote:
Line XX: Structure not found: D3DXVECTOR2

(topfile.oop)

coz we can not use it before it was declared... ooops...

_________________
POiNT.OF.PRESENCE group


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 08, 2008 12:20 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Sep 17, 2007 10:28 am
Posts: 141
Location: P.O.P
I think it's total deadlock for this concept..

Resident-files save the world? :)

_________________
POiNT.OF.PRESENCE group


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 08, 2008 4:00 pm 
Online
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1961
Location: Germany
I´m work at time to solve this probleme

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 09, 2008 12:18 pm 
Online
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1961
Location: Germany
There I try the scourecode do not change give it the problem the methods (interfaces) at the correct place to merge. At present the interfaces are merged into topfile. This is however with structures in the methods to be used the problem.
My solution would be " a macro; Module (Classname) " to define which the interface to the correct places placed.

That´s right?

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 09, 2008 12:47 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Sep 17, 2007 10:28 am
Posts: 141
Location: P.O.P
need to try

_________________
POiNT.OF.PRESENCE group


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 09, 2008 7:48 pm 
Online
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1961
Location: Germany
Update v0.38

Is not the best solution, but you can now use structures

Code:
; Organization for OOP with structures

; All needed structures as first
Structure udtStruct
  value1.l
  value2.l
EndStructure

; All classes and methods
Class MyClass Extends BaseClass
  ; Attributes
  val1.s
  val2.udtStruct
  ; etc
EndClass

Method MyClass_Function(*this.MyClass, *mystruc.udtStruct)
  With *this
 
  EndWith
EndMethod

; Create Object
*myObject.iMyClass = NewObject(MyClass)

*myObject\Function(MyData.udtStruct)

; Release Object
*myObject\Release()



P.S
We can declare procedures but not interfaces.
I hope fred implimented this

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon May 12, 2008 5:15 pm 
Online
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1961
Location: Germany
Update v0.39

Now included interfaces at right position without change any included scourecode. We can now splitted any classes to differend files.

Sorry, one macro has changed. Examples
- Class MyClass Extends BaseClass -> Class(MyClass) ; keyword BaseClass not longer used
- Class SubClass Extends MyClass -> Class(SubClass, MyClass)

Chaos test code
Code:
; Organization for OOP with structures

; Structures for MyClass ******************************************************
Structure udtStructMyClass
  value1.l
  value2.l
EndStructure

Class(MyClass)
  ; Attributes
  val1.s
  values.udtStructMyClass
  ; etc
EndClass

Method MyClass_Function(*this.MyClass, *mystruct.udtStructMyClass)
  With *this
    \values\value1 = *mystruct\value1
  EndWith
EndMethod

; Structures for SubClass *****************************************************
Structure udtStructSubClass
  value1.l
  value2.l
EndStructure

Class(SubClass)
  ; Attributes
  val1.s
  values.udtStructSubClass
  ; etc
EndClass

Method SubClass_Function(*this.MyClass, *mystruct.udtStructSubClass)
  With *this
    \values\value1 = *mystruct\value1
  EndWith
EndMethod

; test ************************************************************************

; Create Object
*myObject.iMyClass = NewObject(MyClass)
*myObject2.iSubClass = NewObject(SubClass)
*myObject\Function(MyData.udtStructMyClass)

; Release Object
*myObject\Release()
*myObject2\Release()


P.S. Update Linux Version v0.39 :wink:

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun May 25, 2008 11:53 am 
Online
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1961
Location: Germany
Update v0.40

- Performance of Release Object
- Change internal name of baseclass

GT :wink:

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Sep 27, 2008 1:42 pm 
Online
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1961
Location: Germany
Update v0.41

- fixed DeleteObject for x64 compilations


I can´t tested because havn´t x64 os

GT :wink:

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 54 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye