Search found 13 matches

by darryl_bartlett
Sat Feb 23, 2008 12:52 am
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

Ah ha - good spot there Mistrel. It didn't even occur to me WindowEvent() was running twice within one loop iteration so would miss events!!!! That is definitely a "Doh!!" moment!!!

That also explains why it worked for me when I put in the or EventID = 16 in the until statement!!!!

Thanks for the ...
by darryl_bartlett
Sat Feb 23, 2008 12:36 am
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

@sigi,

Weird eh? This is quite similar to a problem with using the initial version of the Blitz3d SDK within a C#.net winforms apps. The SDK was "swallowing" most of the windows events before .net could process them.


Try this - change the Delay(1) line to something like Delay(100).

Obviously ...
by darryl_bartlett
Sat Feb 23, 2008 12:15 am
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

Hi Sigi,

Have you tried running my updated version of your code? If so, do you get any values displayed in the Console window when you select a menu option?


Interestingly, if I change the until line of code to add an Or EventID = 16 clause (so the line now reads)
Until WindowEvent() = #WM_CLOSE ...
by darryl_bartlett
Fri Feb 22, 2008 11:51 pm
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

@r_hyde,

In a round-about way, I have come to the same conclusion. I have changed Sigi's original code to output to a console whenever the EventID variable is not equal to 0. With this new code the menu event trigger every time. Here is the code I am testing with:

#screenwidth = 800
#screenheight ...
by darryl_bartlett
Fri Feb 22, 2008 11:29 pm
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

Hi Sigi,

Something strange is going on. I can replicate your problem. Here is why I say something weird is going on:

The first time I ran you example code using the PureGDK examples it worked fine i.e. selecting the Objects -> Load menu option displayed the File Open dialog box.

When I quit the ...
by darryl_bartlett
Thu Feb 21, 2008 12:14 pm
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

zParticle Example

This is the conversion of one of the example supplied with zParticles plugin.

;Conversion of Volcano example supplied with zParticle plugin
;Original DBPro code by Eric PL Smith


; show the PureGDK render window
hDBWnd=OpenDBWnd(0,0,800,600,32,#GDK_Window_SystemMenu|#GDK_Window_ScreenCentered ...
by darryl_bartlett
Thu Feb 21, 2008 11:45 am
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

Unity example

I have just successfully converted one of the Unity (LUA) DBPro plugin examples to PureGDK.

The only change I have made from the original DBPro project installed as part of the Unity installer is I have moved all the media into the media directory.

I am very very impressed with PureGDK. You can ...
by darryl_bartlett
Wed Feb 20, 2008 9:52 pm
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

Hi Mistrel.

Just wanted to confirm that the update has solved the compilation problem. Thank you for that. I must say I think PureGDK is very impressive.

FIXED THIS ISSUE -> The only issue I have now is when I try to close down a compiled exe (by clicking on the red X) that .exe just hangs. I ...
by darryl_bartlett
Wed Feb 20, 2008 8:10 pm
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

Examining my DBPro installation, I have the following plugins:

Licenced:
AdvancedTerrain, DarkAI, DarkPhysics, Extends, Enhancement, EzRotate, Unity, DarkLights, Styx, Cloth & Particle

User:
2dpluginkit, AdvancedSprites, Matrix1Util plugins, zParticles.


So maybe PureGDK requires one or more ...
by darryl_bartlett
Wed Feb 20, 2008 7:58 pm
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

I may be wrong, but to me that sounds like the kind of error the DBPro compiler throws when it is trying to compile a keyword in the source code and it cannot find that keyword in any of the extensions/DLLs stored in either the plugins-licensed or plugins-user folders (stored within the compiler ...
by darryl_bartlett
Wed Feb 20, 2008 7:45 pm
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

Hi Sigi,

I have just tried all 19 examples and they have all compiled and run successfully - I just had to remember to re-select Debugger -> Use Debugger after loaded each individual example.

Do you get any specific error? As another check, I am using DBPro v1.066 and PureBasic 4.10.
by darryl_bartlett
Wed Feb 20, 2008 7:27 pm
Forum: Applications - Feedback and Discussion
Topic: PureGDK Open Beta - DarkBasic for PureBasic
Replies: 195
Views: 118275

Solution for "Wrong compiler" error

I noticed some people were getting a "Wrong Compiler" error. I was initially getting this first, but I have found the solution.

It seems I have to select the Debugger -> Use Debugger" menu option in order to successfully compile a PureGDK source.

This has the disadvantage that if I compile using ...
by darryl_bartlett
Thu Aug 21, 2003 3:04 pm
Forum: Coding Questions
Topic: WMA/MP3 track length help
Replies: 3
Views: 1928

WMA/MP3 track length help

Hi guys,

I want to write a program which simply gets the track (song) length of a WMA or MP3 file.

Does anybody have any PureBasic code which does this? Do you know of any DLL I can use which will do this for me?

Thanks in advance for any help you may be able to give me.

Daz.