Search Results - VBForums

Search:

Type: Posts; User: Merri

Page 1 of 13 1 2 3 4

Search: Search took 0.10 seconds.

  1. Re: VB6: Sorting algorithms (sort array, sorting arrays)

    I don't visit here much at all anymore, but I have to drop in to say that statement above is far too ignorant. You'll run out of normal text input immediately when you start dealing with stuff like...
  2. Replies
    44
    Views
    44,165

    Re: VB6 UniControls Summer Release [2008-06-19]

    Sorry, I no longer develop for VB6. Mostly PHP and JS these days, later on probably BlitzMax or C++ if I have the time.
  3. Replies
    416
    Views
    94,561

    Re: Contest 6 - Sudoku solver - Discussion

    As ridiculous reply an additional half a year later!

    I also remember this contest every now and then. A shame there wasn't other as successful ones.
    I still don't code for a living.
    But I'm...
  4. Replies
    7
    Views
    903

    Re: Optimizing code for speed

    A general point to be made: if you want to write fast code, you have to take off the safe guards that protect against errors. Convenience is always lost and extra attention & skill needs to be put...
  5. Replies
    7
    Views
    903

    Re: Optimizing code for speed

    Check them. It'll vastly improve compiled code performance, because it reduces extra code which validates for errors, and is included by the compiler.

    Removing them, however, makes this code work:...
  6. Replies
    7
    Views
    903

    Re: Optimizing code for speed

    Make sure you have in Compile tab, behind Advanced optimizations button:
    Remove array boundary check
    Remove integer overflow check
    Remove floating point check

    Having these ticked will...
  7. Replies
    5
    Views
    1,037

    Re: px or em in your css?

    I use px each time the size of the element must be related to a background image. This avoids having a broken layout. Things may change with multiple background images, haven't played around with...
  8. Replies
    10
    Views
    1,544

    Re: Do you use RESET CSS files

    There are different meanings behind all this stuff...

    * { margin: 0; padding: 0; }
    Hard reset, or what you call "zero style".

    Reset stylesheet:
    A stylesheet that aims to make default browser...
  9. Replies
    10
    Views
    1,544

    Re: Do you use RESET CSS files

    I dislike reset stylesheets greatly. I think of them more as a CSS learning convenience, not something to use as a base for each and every case. I don't want to redefine all styles each time, for...
  10. Replies
    15
    Views
    4,793

    Re: How to get String from Pointer in VB

    Vbstr: no, in itself doesn't, but VB does when you give String datatype to an API declaration, and in this case the end result is ANSI to Unicode for the output string.
  11. Replies
    15
    Views
    4,793

    Re: How to get String from Pointer in VB

    LaVolpe:

    ANSI byte array (I haven't tested it, but should beat S = StrConv(ByteArray, vbUnicode) easily)

    Private Declare Function SysAllocStringByteLen Lib "oleaut32" (ByVal Ptr As Long, ByVal...
  12. Replies
    15
    Views
    4,793

    Re: How to get String from Pointer in VB

    True; I only provided it as a shorter, cleaner & faster working solution :)


    A rarity considering my codes often are the longest suggestions :D
  13. Replies
    15
    Views
    4,793

    Re: How to get String from Pointer in VB

    If it is of any value, you can create a new BSTR with ANSI to Unicode conversion using a single API call:

    Declare Function SysAllocStringByteLen Lib "oleaut32" (ByVal Ptr As Long, ByVal Length As...
  14. Replies
    9
    Views
    1,104

    Re: How much longer have I got...

    You may find this interesting: upgrade path from Windows 1.0 to Windows 7

    Theoretically Windows 7 supports VB6 runtime to the end of it's life. This means some 8 years more of official support...
  15. Replies
    3
    Views
    2,000

    Re: Help! StringToByteArray (StrConv Replaecment)

    Write your code to work with Unicode data and you have no problem. You should use StrConv only if you know you're dealing with ANSI data of user's locale. Using it for anything else is prone to...
  16. Replies
    7
    Views
    944

    Re: [HTML] Forums Integration

    My experience goes only as far as phpBB2 goes, I'm still running one heavily modded one and it runs a custom template using an external file. This is only easily possible by using eXtreme Styles MOD...
  17. Replies
    7
    Views
    2,806

    Re: IE9 Webbrowser Control and VB6?

    Then I simply suggest throwing a bug report and hope that they'll react. After RC hits final you aren't going to get much changes.
  18. Replies
    7
    Views
    2,806

    Re: IE9 Webbrowser Control and VB6?

    If possible, what happen if you write Scroll and Style in lowercase as these should be declared lowercase in DOM?

    Although Scroll is IE-only feature, so it may be hidden behind another feature.
  19. Replies
    1
    Views
    545

    Re: Store Unicode in String type

    VB6 strings are Unicode as they are. There are several problems though:

    1) native VB6 controls do not support Unicode. They convert to ANSI.

    2) file manipulation is not Unicode aware: converts...
  20. Replies
    7
    Views
    944

    Re: [HTML] Forums Integration

    MyBB is a good forum software. It is somewhat easier to modify than phpBB3 or SMF.

    In general though there is no easy road. You just have to go ahead and get your hands dirty on themes and hope...
  21. Replies
    13
    Views
    1,425

    Re: Implementing a Inc() function in VB6

    I'd throw a guess these days processors are already pretty intelligent beasts as well and have some capabilities for self optimization. From what I've heard is that some of the latest "fast" VB6 code...
  22. Replies
    14
    Views
    1,230

    Re: working with very long numbers !!!

    Double can't hold 31 digits:
    Debug.Print Format$(CDbl("1010101011131007593840000272444"), "0")
    1010101011131010000000000000000

    Floating point datatype simply drops anything it can't hold, but...
  23. Replies
    9
    Views
    2,276

    Re: User-Defined type may not be passed ByVal

    Change mmioOpen from:

    Declare Function mmioOpen Lib "winmm.dll" Alias "mmioOpenA" (ByVal szFileName As String, lpmmioinfo As mmioinfo, ByVal dwOpenFlags As Long) As Long

    to:

    Declare Function...
  24. Replies
    3
    Views
    367

    Re: Copying contents of a Type

    I made some benchmarking on what Magic Ink said. I made a simple generic function that replicates the given data to all members of an UDT array. I got some surprising results.

    First, this one is...
  25. Replies
    5
    Views
    774

    Re: removing entries from listbox on the fly

    I'll make you hit your head on your desk, assuming both listboxes have identical amount of items:

    var lid1 = document.getElementById(id1);
    var lid2 = document.getElementById(id2);
    /* just...
  26. Replies
    5
    Views
    774

    Re: removing entries from listbox on the fly

    Can you post your current code for removing item in a single listbox so we can see where you are at the moment with it?
  27. Replies
    9
    Views
    852

    Re: Forums are so slow.

    Depends on what you can call "ok". If I don't do anything to the site, my regular front page load has 99 requests and it takes me over 10 seconds to get it all loaded! And I don't have that slow of a...
  28. Replies
    6
    Views
    825

    Re: Some questions about CSS

    2) no, you do not have to use HTML comments (<!-- -->). They were used back in the day to hide CSS from browsers that didn't know what CSS is. Today finding such a browser is a big task, so you don't...
  29. Re: Converting Large String To HEX More Quick Any Help Please

    One more addition: if you don't want to preserve Unicode data then you can use StrConv to convert from/to ANSI.

    strTest = StringToHexString(StrConv("ABC", vbFromUnicode))
    ' strTest = "41 42 43"
    ...
  30. Replies
    3
    Views
    401

    Re: vb variable types

    They don't belong to VB6 as they are, instead both Workspace & Database are objects that come outside VB6. To use these they require that a specific reference (DLL, TLB, OLB) or control (OCX or DLL)...
  31. Re: Converting Large String To HEX More Quick Any Help Please

    Converted my byte array versions to string versions in 10 minutes or so. Writing this post took me longer than making the changes...

    HexStringToString

    Input: any string containing any hex pairs...
  32. Replies
    4
    Views
    601

    Re: hiding element

    Change the display to none and back to block.

    Also read about the differences of visibility and display from CSS Property Index
  33. Replies
    34
    Views
    87,543

    Re: Find a string in a text file Fast....

    Aaron02: now that I had time to download the sample I noticed that the referred code is jmacp's original code and you get "subscript out of range" error if the file is not there. My code has a check...
  34. Replies
    7
    Views
    7,640

    Re: [VB6] Escer, Hexer Classes and EscBuddy Tool

    I edited my post just the same time with your newest post, but my current best shots are # or _. Nobody really uses neither of them in code a whole lot so it wouldn't be a major problem to use one of...
  35. Replies
    7
    Views
    7,640

    Re: [VB6] Escer, Hexer Classes and EscBuddy Tool

    I guess I'm going to be a pain in the beep, but...

    ^ character is troublesome, because if I type Shift + ^ key + u, I get &#251;.

    I have to type Shift + ^ key + space to get a ^ character and then...
  36. Replies
    34
    Views
    87,543

    Re: Find a string in a text file Fast....

    What is the size of the tested file? If it is 0 bytes then the code fails as it does not check if the length is valid.

    In the other hand I can't recall whether the code created a file or not, if...
  37. Replies
    12
    Views
    1,012

    Re: Helo with a simple 'color code' thingy in vb6.

    There is an alternative method into this: instead of using SelColor etc. you can instead manipulate TextRTF & SelTextRTF. RTF is a syntax of it's own for marking up text color. However, going this...
  38. Replies
    5
    Views
    460

    Re: Replace Characters

    akhileshbc's solution doesn't prevent pasting text with spaces from the clipboard. For that the hard thing is that text can be pasted using both mouse & keyboard, there is no general event for...
  39. Replies
    5
    Views
    460

    Re: Replace Characters

    In real time? Otherwise, just use Replace(Text1.Text, " ", "_")
  40. Replies
    5
    Views
    590

    Re: Please help me for search in big array.

    Still better:
    ' ByRef instead of ByVal: no new string created
    ' lngPos: Long instead of Byte, Long is faster
    Private Function CountMembersContentChar(ByRef strChar As String, ByVal lngPos As Long)...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.