Search:

Type: Posts; User: Merri

Page 1 of 13 1 2 3 4

Search: Search took 0.11 seconds.

  1. Replies
    42
    Views
    29,452

    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.
  2. Replies
    416
    Views
    45,234

    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...
  3. Replies
    7
    Views
    706

    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...
  4. Replies
    7
    Views
    706

    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:...
  5. Replies
    7
    Views
    706

    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...
  6. Replies
    5
    Views
    886

    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...
  7. Replies
    10
    Views
    1,165

    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...
  8. Replies
    10
    Views
    1,165

    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...
  9. Replies
    15
    Views
    2,777

    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.
  10. Replies
    15
    Views
    2,777

    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...
  11. Replies
    15
    Views
    2,777

    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
  12. Replies
    15
    Views
    2,777

    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...
  13. Replies
    9
    Views
    914

    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...
  14. Replies
    3
    Views
    1,056

    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...
  15. Replies
    7
    Views
    726

    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...
  16. Replies
    7
    Views
    2,020

    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.
  17. Replies
    7
    Views
    2,020

    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.
  18. Replies
    1
    Views
    420

    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...
  19. Replies
    7
    Views
    726

    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...
  20. 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...
  21. 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...
  22. Replies
    9
    Views
    1,442

    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...
  23. Replies
    3
    Views
    251

    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...
  24. Replies
    5
    Views
    605

    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...
  25. Replies
    5
    Views
    605

    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?
  26. Replies
    9
    Views
    591

    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...
  27. Replies
    6
    Views
    693

    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...
  28. 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"
    ...
  29. Replies
    3
    Views
    258

    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)...
  30. 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...
  31. Replies
    4
    Views
    484

    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
  32. Replies
    34
    Views
    79,775

    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...
  33. Replies
    7
    Views
    4,009

    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...
  34. Replies
    7
    Views
    4,009

    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...
  35. Replies
    34
    Views
    79,775

    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...
  36. 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...
  37. Replies
    5
    Views
    318

    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...
  38. Replies
    5
    Views
    318

    Re: Replace Characters

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

    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)...
  40. Replies
    9
    Views
    1,388

    Re: [RESOLVED] Unresolved threads

    I found this site: http://boardreader.com/

    It seems to index everything from VBForums and is able to give search results much faster than this forum's own search. It is also able to tell that I'm...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4