Page 5 of 7
Posted: Sun Jan 13, 2008 5:06 pm
by inc.
Comtois wrote:i would like to give a try, so i downloaded "PureObject_Win32_1.0rev65.zip"
In the archiv there is a file 'OOP.exe' , when i run it, it ask for a file .pb ?
Is it an update ? must i have a previous version ? if yes, where can i download it ?
Please read my post more carefully.
- The Plugin doesn't come with an installer anymore. Detailed installation instructions for the IDE and jaPBe can be found in the project page.
EDIT: Ah, ok you did figure out by yourself

Posted: Sun Jan 13, 2008 7:37 pm
by Comtois
i wanted to test this
http://pb-oop.origo.ethz.ch/system/files/PBOOP_DX9.zip but it dont work with the last update r65.
Posted: Sun Jan 13, 2008 7:40 pm
by Godai
The example at the webpage crashes during the list iteration with the latest release. And you need to change This to *This to make it compile

Posted: Sun Jan 13, 2008 9:57 pm
by inc.
This is due the fact that Hellhound did declare methods of a masterclass as "Flex" using a more anxient revision. Methods can only be "Flexible" in a Baseclass.
I did fix the code to the specs of the latest release and replaced it:
http://pb-oop.origo.ethz.ch/system/files/PBOOP_DX9.zip
Godai wrote:The example at the webpage crashes during the list iteration with the latest release. And you need to change This to *This to make it compile

Fixed!
(The example of the documentation as well.)
Happy continuing on testing
Rev67 is up :
http://pb-oop.origo.ethz.ch/download
Changelog :
http://pb-oop.origo.ethz.ch/wiki/changelog
Posted: Mon Jan 14, 2008 10:01 am
by Godai
Keep up the good work! Totally rocks so far!

Posted: Mon Jan 14, 2008 11:58 am
by Comtois
Thank you ,examples work fine now
Posted: Mon Jan 14, 2008 3:55 pm
by superadnim
I made a class, but... am I forced to define the object handle as a pointer?, if so, why?, and why isn't this handled by the pre-processor itself?
Thanks.
PS: How portable is the code generated?, can I still make DLLs?
Posted: Mon Jan 14, 2008 8:02 pm
by inc.
Classes are heap allocated as NewObject does actually makes use of AllocatedMemory. So Pointers do make sense and will be the way when using PureObject.
PS: How portable is the code generated?, can I still make DLLs?
Should be COM compilant, so try and import a class out of a PureObject compile and use it in an external C++ lib.
But if you're just talking about generic Dll creation, then .... try. This project is still in beta state and by this it needs user testings and -> feedback.
... and why isn't this handled by the pre-processor itself
There are many many many (if you dont mind less importand) things which are still not handled by the preprocessor, I have many ideas on a big todo list. But all next bigger addings do depent on if its really worth the work compared to that small amount of users actually using it. For my purposes it gots all it needs right now.
Posted: Thu Jan 17, 2008 5:18 am
by superadnim
inc. count me as a user, please.
I don't mind the pointer declaration, I was just bitchin' out loud
How do you handle things internally?, stack-based system?.
One thing I would like is to grab a pb-only export (that doesn't require the pre-processor) so one could share code with other people that doesn't have/use the pre-processor, is this doable?.
Thanks for this wonderful tool.
I was working on a preprocessor myself but now that I see this I won't even continue, although I was focusing on a more C-like syntax (; delimiter as line endings, c-like array declaration and variable assignment, etc. Been using a stack for the {} to resolve into the PB keywords themselves)
Posted: Thu Jan 17, 2008 10:09 am
by inc.
Sorry but with all respect .... why don't you read the first (release)-post or the docs when using this a tool?
Even as I did point that out in the first page.
Part of inc.'s first post wrote:- A final beautyfied output of the converted code. Easy to read i.e. in forums, like if you dont want to force the user to use the Preprocessor to make your code work!
(The converted code can be found in the users temp directory of the Windows installation)
Means you can find a beautyfied easy-to-read conversion to PB nativ code in the same directory where PB in general does safe the temporary files before sending them to the compiler. So this will be in newer PB versions your users temp file.
How do you handle things internally?, stack-based system?.
Do look into the temporary generated code like explained above and you'll see how the approach is done.
Also as I already answered you in the projects page forum, in here above and as its mentioned in the docs: objects are simply heap allocated, so no stack based system i used.
superadnim wrote:although I was focusing on a more C-like syntax (; delimiter as line endings, c-like array declaration and variable assignment
My purpose wasn't to invent a new preprocessor language, ... it is an integration of an OOP style paradigm into the present PureBasic Language and its syntax logic.
If I want to code using ";" as line endings and prefering c-like arrays then I actually simply do use "C".
I don't mind the pointer declaration, I was just bitchin' out loud
You weren't just bitching out loud, you have been triple posting your Q's over three areas.
Thats annoying btw.
Posted: Fri Feb 29, 2008 1:44 pm
by hellhound66
Removed.
Posted: Fri Feb 29, 2008 3:40 pm
by inc.
Yes I noticed your bugreport

Posted: Tue Mar 25, 2008 11:57 am
by SofT MANiAC
it doesn't work with dreamotion...
also it crashes on with-endwith
/me want OOPureBasic

Posted: Wed Mar 26, 2008 11:36 am
by inc.
SofT MANiAC wrote:it doesn't work with dreamotion...
also it crashes on with-endwith
/me want OOPureBasic

... you might want to share a part of the code which makes the process crashing. Also a part of where the 'Width/EndWith' issue occurs.
Thx
Posted: Wed Mar 26, 2008 1:24 pm
by SofT MANiAC
inc. wrote:... you might want to share a part of the code which makes the process crashing.
Thx
ok, lets start...
Dreamotion site:
http://www.dreamotion3d.com/site/downloads.php
File: 11-3D2D.pb from examples
File structure:
Code: Select all
C:\PB\
|---OOP.exe
|---PureBasic.exe
|---Examples
| `---DM3D
| `---11-3D2D.pb
|---Includes
| |---DM3D
| | `---include
| | |---Animate Sprite.pbi
| | |---d3d9.pbi
| | |---d3d9caps.pbi
| | |---d3d9types.pbi
| | |---d3dx9.pbi
| | |---d3dx9anim.pbi
| | |---d3dx9core.pbi
| | |---d3dx9effect.pbi
| | |---d3dx9math.pbi
| | |---d3dx9mathinl.pbi
| | |---d3dx9mesh.pbi
| | |---d3dx9shader.pbi
| | |---d3dx9shape.pbi
| | |---d3dx9tex.pbi
| | |---d3dx9xof.pbi
| | |---dinput.pbi
| | |---dplay.pbi
| | |---dreamotion3d.pbi
| | |---dreamotionStruct.pbi
| | |---dsound.pbi
| | |---DxCommon.pbi
| | |---dxerr9.pbi
| | `---Physic.pbi
| `etc...
|
`etc...
Problem location (11-3D2D.pb):
Code: Select all
; ------------------------------------------------------------
; DreaMotion3D
;
; Exemple : 2D-3D etc...
; Historique :
; 18/09/06 00:00 DreaMotion3D Team
; 01/11/06 19:16 TMyke
;
; ------------------------------------------------------------
; Include files
IncludePath "..\..\includes\dm3d\Include" : IncludeFile "dreamotion3d.pbi"
Error:
"OOP-Parser error"
"Could create file for parser output: C:\Documents and Settings\softmaniac.SOUND\Local Settings\Temp\d3dx9.pbi"
(without PureObject all is OK)
inc. wrote:Also a part of where the 'Width/EndWith' issue occurs.Thx
later...