Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. firrip

    Sybase's Powerbuilder a question

    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...
  2. firrip

    Overloaded Operators!

    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.
  3. firrip

    How can i change the Default / Current Printer assignment

    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...
  4. firrip

    API Call (GetWindowTextLength), simple.

    There are usually two variants of API functions. Unicode and standard. Define GetWindowTextLengthA instead of GetWindowTextLength
  5. firrip

    How to get message from non-existing window?

    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
  6. firrip

    Sending Array from c/c++ to PowerBuilder

    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...
  7. firrip

    Sorting of Arrays - How is it done?

    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...
  8. firrip

    How to get message from non-existing window?

    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...

Part and Inventory Search

Back
Top