OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Any way to use Callback functions in SB?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
Shadhi
Newbie
Newbie


Joined: 07 Aug 2004
Posts: 2

PostPosted: Sat Aug 07, 2004 7:16 pm    Post subject: Any way to use Callback functions in SB? Reply with quote

Hi everyone!
I am working on a small project to see if I can implement Win32 API calls within OO.o Basic (StarBasic?). Some of the function calls require callback functions. I know that MSOffice's VBA and Visual Studio's VB both support the AddressOf operator but apparently AddressOf is not a recognized keyword, nor have I found even a single "hit" on any searches of this site.

Is there any way, within OpenOffice, to get the address of a function? Question
If not, is there any other way to get callback functions to work in OpenOffice? Question

Any help would be much appreciated!

Shadhi Smile
Back to top
View user's profile Send private message
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Mon Aug 09, 2004 8:49 am    Post subject: Reply with quote

I don't think there is an answer to your problem, the way you are describing it.

If you are making Win32 calls, then these are non-portable anyway. Why not write some (or all?) of your code in VB?

Alternately, write a COM object in VB and register it. Then you can instantiate your VB object from OOo Basic and call its methods.
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
Shadhi
Newbie
Newbie


Joined: 07 Aug 2004
Posts: 2

PostPosted: Mon Aug 09, 2004 4:49 pm    Post subject: AddressOf (address of a function), for callback functions Reply with quote

If only it were as simple as using VB... Smile Unfortunately, I don't have the money to buy Visual Studio, or even MS Office. Maybe I'll be able to get the "express" version of VB, or even Visual Studio...

Still, it seems to me there should be a way to get the address of a function. This is a feature most languages support, isn't it?

Shadhi
Back to top
View user's profile Send private message
Cybb20
Super User
Super User


Joined: 02 Mar 2004
Posts: 1569
Location: Frankfurt, Germany

PostPosted: Mon Aug 09, 2004 7:24 pm    Post subject: Reply with quote

Shadhi forget VB, Python is way better.
And if you need to program on Windows do it in C#, it has nice OO features.

Besides: Think of it, Python costs absolutely nothing and is way much more powerful than VB.

Christian
_________________
- Knowledge is Power -
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group