Page 1 of 1

Posted: Wed Apr 03, 2002 11:06 pm
by BackupUser
Restored from previous forum. Originally posted by Don.

Fred

v.3 is a great achievement - you've packed in some really good stuff here, well done and thank you! In my opinion PB is now without doubt THE best all-round Basic compiler.

Is there documentation anywhere for all the new ComDX, Timer and Printer functions (I saw there is a printer.pb sample)?

Don

Posted: Wed Apr 03, 2002 11:14 pm
by BackupUser
Restored from previous forum. Originally posted by fred.


Thanks a lot. We have worked hard to provide you a such tool and it's always a pleasure to saw this. About the Documentation, the ComDX and Timer haven't be done for now (Danilo is the author) but will be released in a few day. About Printer, it's included, see in the left column of the help file (I foget to add the link in the main reference page... argh). The same for Help, Clipboard, Library.

Fred - AlphaSND

Posted: Wed Apr 03, 2002 11:25 pm
by BackupUser
Restored from previous forum. Originally posted by Don.

OK, thanks Fred. I can see from the PB editor status bar that the CallCOM syntax is

CallCOM(#METHOD,OBJECT,[Arg1,[Arg2,...]])

so at least I think I can try this out without the documentation. I would try it now, but I have to go to bed ready for work in the morning

Don

Posted: Thu Apr 04, 2002 12:40 am
by BackupUser
Restored from previous forum. Originally posted by Danilo.

I´ve send you an example for DirectX, Don.

I think El_Choni has done some COM-stuff too -
maybe he can provide a CallCOM() example here.

cya,
...Danilo

(registered PureBasic user)

Posted: Thu Apr 04, 2002 9:49 am
by BackupUser
Restored from previous forum. Originally posted by El_Choni.

Yes, but it's just an inline asm example that -as it uses a procedure- is slower than Danilo's library, and will make your code quite ugly. Use the lib. Btw, Danilo, have you already added CallCOM10?

Bye,

El_Choni

Posted: Thu Apr 04, 2002 3:27 pm
by BackupUser
Restored from previous forum. Originally posted by Danilo.

@El_Choni:

PureBasic 3.0 allows now variable Argument count (varARGs).
You dont need CallCOM0() or CallCOM5() anymore:
You SIMPLY use CallCOM( #Method, Object [+upto 20 ARGs] ).

CallCOM( #Method, Object, ARG1, ARG2, ARG3 )
CallCOM( #Method, Object, ARG1, ARG2, ARG3, ARG4, ..., ARG15 )

PureBasic is easy.

cya,
...Danilo

(registered PureBasic user)