Search found 100 matches

by freddix
Sat Dec 13, 2008 10:50 am
Forum: AmigaOS
Topic: PureBASIC And Amiga OS 4.1
Replies: 9
Views: 32080

@AngelHeart : I have acquired a SAM440EP ... I will try PureBASIC on it soonly :) (was too busy these last days :( )

@Lucifer : Why "annoying" ???
by freddix
Thu Nov 06, 2008 12:12 pm
Forum: Coding Questions
Topic: Importing DarkSDK into PureBASIC
Replies: 2
Views: 1451

Yes, all is correctly used.

If I do something like this

dbloadobject( "File.x", 1 )
dbdeleteobject( 1 )
Reoeat
dbsync()
Until dbescapekey() = 1

All run fine

I can also create a 3D object and see it on screen but if I do this :
dbloadobject( "File.x", 1 )
Reoeat
dbsync()
Until dbescapekey ...
by freddix
Tue Nov 04, 2008 11:45 am
Forum: Coding Questions
Topic: Importing DarkSDK into PureBASIC
Replies: 2
Views: 1451

Importing DarkSDK into PureBASIC

Hi All,
This post directly follow the last one :
http://www.purebasic.fr/english/viewtopic.php?t=34927
Now FLOATS are correctly handled, INTEGER and STRINGS too :)

I've made good progress integrating the latest DarkSDK .lib pack into PureBASIC 4.30 Beta X.
I actually can include all PureSDK .lib ...
by freddix
Tue Nov 04, 2008 11:35 am
Forum: AmigaOS
Topic: PureBASIC And Amiga OS 4.1
Replies: 9
Views: 32080

PureBASIC And Amiga OS 4.1

Hi All,

did someone tried PureBASIC on an Amiga OS 4.1 (on AmigaNG : AmigaONE, Sam, etc ...) ?

Are there some feedback concerning it ?
by freddix
Tue Oct 28, 2008 4:28 pm
Forum: Coding Questions
Topic: Import a LIB function that return a float
Replies: 13
Views: 4121

@ts-soft : It's already what I do ;)
by freddix
Tue Oct 28, 2008 4:05 pm
Forum: Coding Questions
Topic: Import a LIB function that return a float
Replies: 13
Views: 4121

@Srod : You're probably right.
I'm not the author of the .lib files I'm working to integrate in PureBASIC ... but with:
MyInteger.l = RotateObject( ObjectID.l, FX.f, FY.f, FZ.f )
MyFloat.f = PeekF( @MyInteger )

it working fine.
As I've done a small program to get the functions names an create the ...
by freddix
Tue Oct 28, 2008 8:41 am
Forum: Coding Questions
Topic: Import a LIB function that return a float
Replies: 13
Views: 4121

@srod :
In fact, I don't exactly get the same result. I don't get the same number but both number are recognized as integer (.l) by PureBASIC ... and never change ... apparently, I always get the pointer to the float and not the float itself... I'll check with the author of the plugin concerning ...
by freddix
Mon Oct 27, 2008 7:44 pm
Forum: Coding Questions
Topic: Import a LIB function that return a float
Replies: 13
Views: 4121

The .lib to import was developed using Microsoft Visual C++ ..
From the author, it directly send back simple precision floating number.
by freddix
Mon Oct 27, 2008 3:55 pm
Forum: Coding Questions
Topic: Import a LIB function that return a float
Replies: 13
Views: 4121

I've already tried this
It doesn't work.
It gives the same result than when I don't add the .f at the end of function name.
by freddix
Mon Oct 27, 2008 3:42 pm
Forum: Coding Questions
Topic: Import a LIB function that return a float
Replies: 13
Views: 4121

Import a LIB function that return a float

Hi All,

I need to import a .lib file that return float numbers.

For example :
Import "MyPlugin.lib"
RotateObject( iid.l , fx.f , fy.f , fz.f ) As "?RotateObject@@YAXHMMM@Z"
EndImport

I must chen use the function this way :
MyFloat.f = RotateObject( ObjectID.l, FX.f, FY.f, FZ.f )

The problem ...
by freddix
Tue Sep 30, 2008 2:14 pm
Forum: Coding Questions
Topic: PureBASIC DLL questions.
Replies: 4
Views: 1564

Ok.

Thank you Fred for these informations.
by freddix
Tue Sep 30, 2008 1:55 pm
Forum: Coding Questions
Topic: PureBASIC DLL questions.
Replies: 4
Views: 1564

So, I'll have to create a procedure inside my DLL to receive the informations I need from the main PureBASIC program ?
by freddix
Tue Sep 30, 2008 12:49 pm
Forum: Coding Questions
Topic: PureBASIC DLL questions.
Replies: 4
Views: 1564

PureBASIC DLL questions.

Hi All,

I have a small question.
If I create a DLL under PureBASIC to be used with PureBASIC.
Will the DLL share medias data ?

Imagine the main PureBASIC program open a screen/bitmap, will it be possible to access it from the DLL I've created ? Will I have to create a command where the user will ...
by freddix
Wed Jun 18, 2008 10:08 am
Forum: Coding Questions
Topic: PureBASIC 4.20 DLL Vs VISTA crashs ..
Replies: 9
Views: 2922

it's what I'll do.
I will send directly the code to Fred.

thank you all.
by freddix
Tue Jun 17, 2008 10:23 pm
Forum: Coding Questions
Topic: PureBASIC 4.20 DLL Vs VISTA crashs ..
Replies: 9
Views: 2922

@ts-soft:
it's a simple calculation DLL there are no API calls, no DirectX calls ...
The most strange is that it's a group of DLL I've created and only 1 of them does not work ...

@freak:
It's a group of 21 DLLs I've created for various wrapping/calculations.
20 of them work perfectly on Windows ...