Search:

Type: Posts; User: 2kaud

Page 1 of 13 1 2 3 4

Search: Search took 0.34 seconds.

  1. Replies
    6
    Views
    239

    Re: VB6+Win32 - Menus

    no pain - no gain! :D
  2. Replies
    6
    Views
    484

    Re: how optimizate the programming?

    There are two distinct optimisations - algorithm optimisations which are covered in good/advanced algorithm books and program optimisations which are covered in good/advanced language specific books....
  3. Replies
    6
    Views
    484

    Re: how optimizate the programming?

    The authoritative source re algorithms is Donald Knuth's 'Art of Computer Programming'
    https://www.amazon.co.uk/Computer-Programming-Volumes-1-4B-Boxed/dp/0137935102/ref=sr_1_1
  4. Thread: Very slow access

    by 2kaud
    Replies
    24
    Views
    1,705

    Re: Very slow access

    Who said I hadn't... :p
  5. Thread: Very slow access

    by 2kaud
    Replies
    24
    Views
    1,705

    Re: Very slow access

    yes - I get the same.

    I also like this from Zvoni's post




    Time travel anyone?
  6. Re: Unresolved external for localtime - Microsoft C 5.10 for MS-DOS

    localtime() isn't one of the documented functions for quickc. See Appendix B of:
    https://www.pcjs.org/documents/books/mspl13/c/mspqc/
  7. Thread: Very slow access

    by 2kaud
    Replies
    24
    Views
    1,705

    Re: Very slow access

    Same here. Had a couple of timeouts.
  8. Re: Weird "bug" with Dim? Does everyone know that Dim ignores logic?

    Yep, Pascal doesn't allow this type of code. You'd either have to have vars say AL and AS defined at the beginning of the block or possibly a variant type.
    Pascal allows variable definitions at the...
  9. Re: [RESOLVED] Converting ASCII Byte Array to Single or Double ... Fast

    They require a null-terminated array of ASCII chars (bytes) (the same format that atof() requires as a param). Is this a byte-array in VB? I don't use VB.
  10. Re: [RESOLVED] Converting ASCII Byte Array to Single or Double ... Fast

    For split a byte array can VB6 use the c function strtok? This returns a pointer to the next string delimited by a char(s). The found delimiter is replaced by NULL - giving you null-terminated...
  11. Replies
    17
    Views
    988

    Re: Quicksort issue

    With Quick Sort you need to choose a 'viable' pivot. In the worst-case scenario, which occurs when the smallest or largest element is chosen as the pivot, Quick Sort shows a time complexity of O(n^2)...
  12. Thread: Post Race!

    by 2kaud
    Replies
    68,852
    Views
    17,957,193

    Re: Post Race!

    Well for 68754 the sum of its digits is 30. It has a total of 4 prime factors and 16 positive divisors....
  13. Thread: Very slow access

    by 2kaud
    Replies
    24
    Views
    1,705

    Re: Very slow access

    Why not on each one provide a ribbon of links to all the others?
  14. Thread: Very slow access

    by 2kaud
    Replies
    24
    Views
    1,705

    Re: Very slow access

    Yes, response is much improved.
  15. Thread: Very slow access

    by 2kaud
    Replies
    24
    Views
    1,705

    Very slow access

    I'm getting a very slow response from this site. Between 20 and 30 seconds to access anything on the site with occasional 504 Gateway timeouts. Ping reports a round-trip time of 15ms.

    Is this...
  16. Re: Feeling nostalgic I fired up QuickBASIC and wrote a Brain***** interpreter!

    Re ISAM. The beauty of ISAM is that you can create a file with multiple indexes and use these indexes to quickly locate required record(s). So from the TYPE in post #61 you might have an ISAM file...
  17. Re: [RESOLVED] Need help with crazy C++ pointer macro

    When I have to deal with multiple pointer dereferences (which I agree can be an absolute pain in the ****) I tend to draw diagrams representing memory and pointers and give value(s) to memory (such...
  18. Re: [RESOLVED] Need help with crazy C++ pointer macro

    When adding a number (n) to a pointer, c/c++ always treats n as the number of 'items' to be added - where 'item' is the type pointed to by the pointer. So if T is a pointer to int then T + 3 will add...
  19. Re: Responding to an existing thread doesn't work

    What's with the partial swastika?
  20. Replies
    16
    Views
    1,176

    Re: Python under "Other Languages"

    Do VBForums have enough Python 'expert's to be able to answer Python questions?
  21. Replies
    16
    Views
    1,176

    Re: Python under "Other Languages"

    This was also asked for before here:
    https://www.vbforums.com/showthread.php?902190-2024-Suggestions&highlight=python
  22. Error on reporting a thread - And Other Site Issues

    I wanted to report a thread to ask the mods to move it but I get this error
  23. Replies
    3
    Views
    1,111

    Re: IEEE 754 floating point conversion

    Well we contracted that well known programming company Acme Corporation to produce the code. They put their best 3 programmers on it (Daffy Duck, Goofy and Porky Pig) and produced this below. It...
  24. Replies
    3
    Views
    1,111

    Re: IEEE 754 floating point conversion

    I thought General PC was the most appropriate - but feel free to move as there's been no replies :cry::cry:
  25. Re: Feeling nostalgic I fired up QuickBASIC and wrote a Brain***** interpreter!

    Is it ISAM you don't understand or using ISAM within QB? If it's ISAM there's plenty of info on the Internet.
  26. Replies
    97
    Views
    4,753

    Re: Why did Microsoft abandon ,killed VB6?

    Bring back pascal/Delphi! You can specify the bounds of arrays as a type:



    TYPE SUIT = (CLUB, DIAMOND, HEART, SPADE);
    VALUE = (ACE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN,...
  27. Replies
    3
    Views
    1,111

    IEEE 754 floating point conversion

    I have 32 bit floating point numbers stored as (little endian):
    (first 16 bits)
    1 bit Mantissa sign (bit 15)
    15 bit High Mantissa
    (second 16 bits)
    8 bit Low Mantissa
    7 bit Exponent
    1 bit...
  28. Replies
    97
    Views
    4,753

    Re: Why did Microsoft abandon ,killed VB6?

    [rant on]
    Originally MS wanted 'to control' (ie. own) Java so that they could 'adapt' it to how they wanted it. That failed so MS came up with .net as the competitor to Java. c# was to be MS's Java....
  29. Re: I beg of you PLEASE consider offering perpetual licenses.

    There is possibly another method I don't think has been mentioned. If you don't want subscription then you get what you pay for and only what you pay for. No free updates, no free fixes etc. If you...
  30. Re: I beg of you PLEASE consider offering perpetual licenses.

    See dday's post #10 re escrow.

    However unless I've missed something (quite possible...) then what happens if Wayne is able to continue working on it but just doesn't for some reason. Does it then...
  31. Re: I'm getting mad wit this overflow...

    Post #5

    ??? In c/c++ the type of Operands in an expression are 'promoted' to the higher type (unsigned is higher than signed, 32 bit is higher than 16, double higher than int etc). This...
  32. Re: I beg of you PLEASE consider offering perpetual licenses.

    The only time we used subscriptions was for the old MSDN where we got the new DVD's every month by post. To pay continuously to just use software which stops working if you don't pay, then NO. For a...
  33. Re: Let's prepare for the BASIC 60th anniversary, coming in 1st May

    Resurrect and update the ANSI Basic standard x3.113 (and as incorporated as ISO/IEC 10279:1991). This was last updated 1987!
    https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub68-2-Jan1987.pdf...
  34. VS 2019 Re: Use X number of threads to perform Y number of tasks

    OK. What size are the files? I'm talking about multi-hundred megabyte files. Could be quite different experience for smallish files.
  35. VS 2019 Re: Use X number of threads to perform Y number of tasks

    Well if this is going to be a recurring operation, then I'd suggest trying it with different number of threads (1 - 40?) and find where the 'sweet point' is. At some point you should be seeing...
  36. VS 2019 Re: Use X number of threads to perform Y number of tasks

    Not in practice in my experience. Multiple local file reads - yes, I've had improvements with threads for that. Same for multiple threads for reading a very large file in chunks. But simultaneous...
  37. Re: Feeling nostalgic I fired up QuickBASIC and wrote a Brain***** interpreter!

    :check:
  38. VS 2019 Re: Use X number of threads to perform Y number of tasks

    For cpu-bound tasks, the number of threads shouldn't exceed the number of processing cores available - otherwise at least one task is idle at any one time waiting to be scheduled core time by the...
  39. Re: Feeling nostalgic I fired up QuickBASIC and wrote a Brain***** interpreter!

    Before moving into PC programming, I developed applications for mini-computers (Wang, Dec, DG, Systime and Pick) in various Basic dialects (and Fortran/Assembler for Dec). But when we moved to PC we...
  40. Re: Feeling nostalgic I fired up QuickBASIC and wrote a Brain***** interpreter!

    We had an original IBM PC with monochrome display and just one floppy drive (no hard drive - that came with the XT) and it used PC-dos 2.0 and not ms-dos.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width