PB is a RAD tool that uses it's own syntax called PowerScript which is based (losely) on C++. One can embed SQL and create dynamic SQL within the PB code, a little like breaking into ASM from C++.
PB has a set of standard classes which can be inherited, events extended, new functions and...
In C++ you can overload an operator so that operators operate on complex data types as well as simple ones. i.e. you can add two classes and the overloaded oeprator knows what to do cause it's programmed that way.
You can change the registry setting on the machine your app runs on so that PB uses a "new" default printer and then change it back after you've finished printing. The registry setting your after is ...
"HKEY_CURRENT_USER\Software\Microsoft\Windows...
What you want to do is call SetWindowLong with GWL_WNDPROC and the address of your WNDPROC function. SetWindowLong returns the previous WNDPROC which you must call from the new WNDPROC. Actual C++ code is at home unfortunately but hey, if you don't suffer you don't grow.
ciao
This might be helpfull but not sure as I go the other way with PB calling C++ function with string array. A PB string array is a C++ LPSTR * (pointer to pointer). The PB array and the C++ LPSTR * are the same. PB does not store a null pointer to mark the end of the array so I must pass the...
bubble sorts are good for arrays.
boolean lb_sorted
lb_sorted = false
do while not lb_sorted
for ll_row = 1 to x.RowCount() - 1
if x.value [ ll_row ] > x.value [ ll_row + 1 ] then
save row ll_row
copy row ll_row + 1 to ll_row
copy saved row to ll_row + 1...
Yes you need C++ code.
Use SetWindowLong Windows API call to assign your WINDPROC message loop to your newly created child window. Don't forget to call the previous WINDPROC ( as returned by SetWindowLong ) or you will find that Windows crashes.
This gets quite complicated and unless you've...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.