Jede Menge Fragen

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

1) Wie kann ich unter PB ein EOR benutzen ?
2) Für was für Source Code Editoren gibt's Syntax Highlighting Files ?
Ich hab´s für Context und UltraEdit. Ich biete an mir für andere
welche zu schicken, und ich stelle dann alle gesammelt auf meine Page.
3) Wie kann man (ohne dll Unterstützung) Zeitabhängige Vorgänge Aufrufen ?
4) Ich will möglichst schnell zu eine von ca. 240 Unterprogrammen
Springen. Ist es in PB möglich eine Sprungtabelle zu konfigurieren ?
oder muß ich zu verschiedene Gruppen mit If springen ...
5) Hat einer eine Ahnung wann PB 3.0 rauskommt und was wird da anders sein ?
6) Warum ist in der Anleitung nix über "Bitweises" "And" und "Or" ?

Danke schonmal
MFG
WolfgangS
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

Loosely translated (via http://babelfish.altavista.com/) to English:

1) as I can use under PB a EOR?
2) for which for SOURCE code wordprocessors gibt's syntax Highlighting files? I habx27s for Context and UltraEdit. I offer at me for others which to send, and I place then all collected on my PAGE.
3) as one (without DLL support) knows time-dependent processes calls?
4) I want as fast as possible to one of approx. 240 subroutines branching. Is it to be configured in PB possible a branch table? or do I have to branch to different groups with If...
5) a notion when PB 3,0 rauskommt and which there different will be?
6) why and " and " Or " are in the guidance nix over " bit by bit " "?

Thanks already times
MFG
WolfgangS

PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

OOHh Sh....
Sorry ths was the wrong forum ... Sorry and thanks for translating ... :*|

WolfgangS
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Sorry ths was the wrong forum ...

Wrong forum? But your post is all about PureBasic...


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Franco.
> Sorry ths was the wrong forum ...

Wrong forum? But your post is all about PureBasic...

PB - Registered PureBasic Coder
PB, Wolfgang means the german PureBasic Forum.


It's very funny how Babelfish translates...

Here is my translation...
1) How can I use an EOR under PB?

Wolfgang, what du you mean with EOR? End Of Research? End OF Runnaways?

2) For which source code editors are there syntax Highlighting files?
I have files for Context and UltraEdit. I offer you to send me other syntax Highlighting files, and then I will place all collected on my page.

Look under Paul's resource page http://www.reelmediaproductions/pb/
there you will find what is available for now.

3) How can somebody call time-dependent processes (without DLL support)?

You can use the Windows timer for things like that.
To get more help you must be more specific.

4) I want jump to one of approx. 240 subroutines as fast as possible.
Is it possible in PB to configure jump table? or do I have to jump to different groups with If...

Well you need to more specific. How do you get your information which subroutine you need to call? Through Gadgets? Through math functions? Or what?

5)Does somebody knows when PB 3,0 will come out and what will be different?

Fred knows, but he is out - one week vacation. Hope he will come back without plaster... well not on his arms, hands and neck

6) Why is in the help guide nothing about how to handle bit's with " and " and "Or "?

Good question!

Thanks in advance (<- well this is not a 100% translation but it's near...)

You welcome...



Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Wolfgang means the german PureBasic Forum.

Oh, I see. Didn't know there was one!

> Why is in the help guide nothing about how to handle bit's
> with " and " and "Or "?

You use the pipe symbol ( | ) when you want to "Or" something together.
Don't know what the symbol for "And" is, and why they're both not in the
docs.


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TronDoc.

I understood both translations quite well
and MOST of the original post even though
I don't know German (I should though,
it's in my ancestry).

It's funny how in learning programming a
person tends to pick up on other things
and can even 'get the jist' of something
written in an unknown language.

cyrillic and BigC still throw me though!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

babelfish is funny :)
I like those translations, its better than communicate with hands and feets.
btw. he (wolfgang) post it in the german forum and we helped him.

Getting better with a little help from my friends....thx Siggi
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.
Don't know what the symbol for "And" is, and why they're both not in the
docs.
The symbol for And is "&". And it's useful indeed, as are ">>" and "<<", which, again, are not in the docs. BTW, I still miss Xor.

Bye,

El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

>>4) I want jump to one of approx. 240 subroutines as fast as possible.
>>Is it possible in PB to configure jump table? or do I have to jump to >>different groups with If...

>Well you need to more specific. How do you get your information which >subroutine you need to call? Through Gadgets? Through math functions? Or what?

I have an integer 'a' from 1 to 240.
I can make fit my functions however necesaray.

myfunction+str(a)(mystuff) is unfortunately not possible :wink:


procedure myfunction1(mystuff)
endprocedure
procedure myfunction2(mystuff)
endprocedure
procedure myfunction3(mystuff)
endprocedure
...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

I think thats not possible with this way.

But you could do a table and fill it with the
addresses of the procedures at programmstart.

DIM table.l(240)
table(0) = @procedure0()
table(1) = @procedure1()
table(2) = @procedure2()
[...]

later you call the entries in the table
with assembly language.
Look at this example (tested):

Code: Select all

Dim table.l(240)
a.l


Procedure proc1()
  beep_(1000,100)
EndProcedure


Procedure proc2()
  beep_(1000,1000)
EndProcedure


Procedure CallTable()
!mov dword EAX, a_table
!mov dword EAX, [EAX]
!mov dword EDX, [v_a]
!call [EAX+EDX]
EndProcedure



table(1) = @proc1()
table(2) = @proc2()


;----------
; Start:
;----------

proc1()


     Delay(1000)


a = 1 * 4
CallTable()


     Delay(300)


a = 2 * 4
CallTable()
Hope you get the idea...

cya,
...Danilo
(registered PureBasic user)


Edited by - Danilo on 04 March 2002 21:30:54
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Franco.

Well Danilo, it seems I'm to late.
But anyway, here is my little code to this issue:

Code: Select all

; (c) 2001 Franco's template - absolutely freeware
; test code how to call functions (subroutines easily)
; the same method is possible with Procedures instead of Subroutines...
; enable inline ASM support


#MAX_FUNCTIONS = 4 
Dim Function.l(#MAX_FUNCTIONS)
Function(1) = ?Subroutine1
Function(2) = ?Subroutine2
Function(3) = ?Subroutine3
Function(4) = ?Subroutine4
;....
;Function(240) = ?Subroutine240

InitGadget(1) 

#WindowWidth = 320 
#WindowHeight = 240 


If OpenWindow(0, 200, 200, 320, 240, #PB_Window_SystemMenu, "(c) Franco's Test Application") : Else : EndIf
CreateGadgetList(WindowID())
TextGadget(1,100,100,200,25,"This is the value of variable A")
WindowEvent() : WindowEvent() : WindowEvent()

For A = 1 To 4 
  Delay(3000)
  DestinationAdress.l = Function(A)
  CALL DestinationAdress
Next

Delay(3000)
End

Subroutine1:
  SetGadgetText(1,"This is Subroutine 1")
Return

Subroutine2:
  SetGadgetText(1,"This is Subroutine 2")
Return

Subroutine3:
  SetGadgetText(1,"This is Subroutine 3")
Return

Subroutine4:
  SetGadgetText(1,"This is Subroutine 4")
Return

 
Wolfgang if you need to call Procedures instead of Subroutines it's possible too.
Hope you get the idea... <- YES, I imitated this line from Danilo's post


Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

WOW !!!
Folx, you relly saved me fom learning C++ !!!
Although i already got a C++ learning book from Ebay. This was relly the last second ...

Thank you very much for that info. !!!!

cu
WolfgangS
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

WOW !!!
Folx, you relly saved me fom learning C++ !!!
Although i already got a C++ learning book from Ebay. This was relly the last second ...

Thank you very much for that info. !!!!

cu
WolfgangS
Post Reply