Search Results - VBForums

Search:

Type: Posts; User: georgekar

Page 1 of 10 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    14
    Views
    273

    Re: Slow graphics development!

    As I described more sleep time means less load for cpu thus we have less power consumption. You are right Olaf about the zero sleep function..but it is a sleep function as for the calling to other...
  2. Replies
    14
    Views
    273

    Re: Slow graphics development!

    But how can anyone handle the refresh on forms, or slides better, in power point...?
  3. Replies
    5
    Views
    151

    Re: Simple Bingo Engine

    http://en.m.wikipedia.org/wiki/Bingo_(U.S.)
    So now we have to make a bitmap with 75 numbers and send it to each player and storing for verification of the bingo state...when the player found it....
  4. Replies
    14
    Views
    273

    Re: Slow graphics development!

    Sleep 0 or 1 has no big difference...for what we want. I remember some years before I made a com object with a form and a tree list that used for monitoring other programs activity...In each program...
  5. Replies
    5
    Views
    151

    Re: Simple Bingo Engine

    I run it but there is no instructions...and I never play bingo :)
  6. Replies
    14
    Views
    273

    Re: Slow graphics development!

    I have a question...HuskerWeaponry
    Did you setup the same drawing in power point with fake data, to see how fast can run without handling from vb?
  7. Replies
    14
    Views
    273

    Re: Slow graphics development!

    When you wait for the other program to complete it task you have to do a loop. In that loop you must have a sleep with a big value, try 100 or greater...so this loop get less cpu cycles..
    Also if...
  8. Replies
    0
    Views
    86

    Random number generator

    Here is a small program that demonstrate a random number generator. There are two buttons and a listbox. We can see the frequencies of each of 100 numbers (from 0 to 99). We produce 2000000 random...
  9. Re: Random number generator reset behaving incorrectly.

    Here is an example to do a comparison from the rnd as provided by vb and mine. For 2000000 random numbers we get equal picked numbers..with vb rnd from 0.985% to 1.015%. That isn't good always. Some...
  10. Re: Random number generator reset behaving incorrectly.

    We can make our generator...
    This is an example. We can see how many hits we can get if we compress the output to 100 values.

    need a listbox and a command button



    Dim a&(100)

    Function...
  11. Replies
    14
    Views
    273

    Re: Slow graphics development!

    A better example. Show speed and countings...and also I reduce the load by using timer value...

    Option Explicit
    Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    Dim c As...
  12. Replies
    14
    Views
    273

    Re: Slow graphics development!

    To demonstrate the use of sleep see this:
    Add two command buttons in a form and put this code
    now run the code and open the CPU usage Graph
    Now press command1
    You will see an increment of usage...
  13. Replies
    14
    Views
    273

    Re: Slow graphics development!

    Maybe sleep function from api you can help you. This function stop vb and give time to other tasks. The same happen when you move your mouse, you get time from vb program and point grab it.
  14. Replies
    19
    Views
    534

    Re: VB6 Dual-Pivot-QuickSort

    :)
    I am happy. My last inspiration was to throw the pivot choice when a duplicate item founded in the start and then I do a search in the first items for a non duplicate, and if i found then i know...
  15. Replies
    19
    Views
    534

    Re: VB6 Dual-Pivot-QuickSort

    @Tanner_H

    Can you test the NaiveQuickSortExtended from post #7
  16. Replies
    38
    Views
    961

    Re: How to display unicode on the screen

    Calc rect needed not to draw but to calculate the area needed for drawing. So if you have to place the drawing and you need the width and height based on font and data to be print....you can get the...
  17. Replies
    19
    Views
    534

    Re: VB6 Dual-Pivot-QuickSort

    It is obvious...He take the sequencer column as the last part of the key so...this is always unique (auto increment)
  18. Replies
    19
    Views
    534

    Re: VB6 Dual-Pivot-QuickSort

    If you have unique keys to sort then quick sort without extensions is very fast. For multiple part key, if you have the first part unique then the others have no meaning, so you need only the last...
  19. Replies
    45
    Views
    865

    Re: Microsoft Takes .NET Open Source

    I read it today...and this is something I expected (and I wrote some days before announcement). But I surprised for a step ahead, to make Net as a platform for all OS. I have a linux (although I use...
  20. Replies
    19
    Views
    534

    Re: VB6 Dual-Pivot-QuickSort

    This is the final code. I remove some old parts that isn't used any more and also I remove goto...It is faster than Dual-Pivot except in one test, Even Odd data, but is close to Dual-Pivot and not...
  21. Replies
    19
    Views
    534

    Re: VB6 Dual-Pivot-QuickSort

    Better, more optimizations...and I switch on the compiler optimizations...so now I get better numbers.


    @Jonney
    Take the Schmidt zip file and paste the NaiveQuickSortExtended in the bas file...
  22. Replies
    19
    Views
    534

    Re: VB6 Dual-Pivot-QuickSort

    I change the use of tmp so If we want we can change it to string without need for another var.


    Public Sub NaiveQuickSortExtended(Arr() As Long, ByVal LB As Long, ByVal UB As Long)
    Dim M1 As...
  23. Replies
    19
    Views
    534

    Re: VB6 Dual-Pivot-QuickSort

    I make the Native-Extended Quick sort...With better performance from in some situation from native quicksort.





    Public Sub NaiveQuickSortExtended(Arr() As Long, ByVal LB As Long, ByVal UB As...
  24. Re: Μ2000 Interpreter with Greek and English commands

    New version 7 is 98% completed
    https://www.dropbox.com/sh/o9t9vuxbu6hzm6m/AAC-yKud8Ow3WDB1d-j_rqKla?dl=0

    I post the code and some pictures to Dropbox. When I finished (some commands I have to...
  25. Re: How to Sort 2 Dimensional Array with 5 Columns

    Time to complete a sorting is n*n max, in quick sort, and n * log(n) for heapsort. So quick sort is quick but not always. Maybe a run first to compare and swap if needed, make the list more...
  26. Re: PRB: Wrong ReDim Preserve caused by a bug in OLE automation after recent updates

    This is the error that start 19 years...before???
    From my Acorn Electron in 1984...always I use base 0 arrays and never change lower bound...So as I understand the problem appear when we redim...
  27. Re: How to Sort 2 Dimensional Array with 5 Columns

    http://www.vbforums.com/showthread.php?231925-VB-Quick-Sort-algorithm-(very-fast-sorting-algorithm)&p=4740329&viewfull=1#post4740329

    As I state to the thread above, the quick sort from CVMichalel...
  28. Re: PRB: Wrong ReDim Preserve caused by a bug in OLE automation after recent updates

    In xp works as unpatched..
  29. Replies
    38
    Views
    961

    Re: How to display unicode on the screen

    http://support2.microsoft.com/kb/269383
    you face a strange problem and you need to do a lot.
  30. Replies
    38
    Views
    961

    Re: How to display unicode on the screen

    when this error happen? Is this on the computer where you use it to develop new programs?

    sorry I see #24..it is...
  31. Re: CommonControls (Replacement of the MS common controls)

    In post 533 I display that:
    ..........
    If PeekMessageW(Message, 0, WM_KEYFIRST, WM_KEYLAST, 0) Then
    GetLastKeyPressed = Message.wParam
    Else
    GetLastKeyPressed = -1
    End If...
  32. Re: CommonControls (Replacement of the MS common controls)

    Maybe I write for nothing..but...I have solve this problem. I can't work with the library of Krool because I found difficulties to run it in Xp.
    We can get the pressing keys as unicode string...
  33. Final

    The only missing is a right to left writing...
    But this can be done from someone else..
    120665
  34. Re: CommonControls (Replacement of the MS common controls)

    If someone press ' twice then the second time he has to get these ' two times.
  35. Re: CommonControls (Replacement of the MS common controls)

    To many lines to make it to work. With much of research I found that the use of GetLastKeyPressed is what we need to do the job right.
    These works for me...and I think that can be work for you...
  36. Re: CommonControls (Replacement of the MS common controls)

    120649

    In Xp those keys are blue...(here in red circles)
  37. Replies
    10
    Views
    250

    Re: Assert

    You have to set up the Break on...to the desired position first. Look the right menu, toggle...and set first to Break on All Errors
    Also don''t forget to place Option Explicit...You may clear some...
  38. Re: CommonControls (Replacement of the MS common controls)

    Join as we speak, but this is another unicode char.
  39. Replies
    29
    Views
    903

    Re: Unicode Textbox

    After DrUinicode write about the dead keys (that keys for marks on the letters)...I do a test to find what happen..because with greek letters I haven't see any fault. But after I insert an additional...
  40. Re: CommonControls (Replacement of the MS common controls)

    I found the solution again...
    The system return always unicode last pressed as 94, or 0x5E, for dead keys... as Reserved (look here...
Results 1 to 40 of 396
Page 1 of 10 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.