I'm currently porting some C code to PB and got two questions about it. I just started programming C and PB so maybe the questions are very easy.
1. What to do with function calls ? C calls it's functions most
of the time with a pointer from a variable. PB passes
variables byreference so I don't need to use pointers, but is
it faster to use them ?
2. Is there a way to directly give a PB variable a value at
declaration ? dim lngVal as long = 3 ?
Also debugging in PB goes very slowly if I want to watch variables. If I enter a variable in the watch window it takes about 5 sec before it can be seen in the list of watches. Is this normal on a P166 ?
Thanks
Erwin van de Wiel
1. What to do with function calls ? C calls it's functions most
of the time with a pointer from a variable. PB passes
variables byreference so I don't need to use pointers, but is
it faster to use them ?
2. Is there a way to directly give a PB variable a value at
declaration ? dim lngVal as long = 3 ?
Also debugging in PB goes very slowly if I want to watch variables. If I enter a variable in the watch window it takes about 5 sec before it can be seen in the list of watches. Is this normal on a P166 ?
Thanks
Erwin van de Wiel
Comment