Search Results - VBForums

Search:

Type: Posts; User: dilettante

Page 1 of 13 1 2 3 4

Search: Search took 0.16 seconds.

  1. Replies
    12
    Views
    276

    Re: CreateThread Problem

    I was thinking of the "ActiveX Pack1" library here: http://www.newobjects.com/
  2. Replies
    12
    Views
    276

    Re: CreateThread Problem

    I was thinking of an entirely different library.
  3. Replies
    12
    Views
    276

    Re: CreateThread Problem

    It is quite possible to use CreateThread() calls in VB6 to create viable worker threads, but there are numerous limitations including all of those already described.

    If you find working VB6 code...
  4. Replies
    7
    Views
    144

    Re: What is Search Engine Optimization?

    And to the detriment of of other sites.

    I consider it more than just a little bit immoral. Mostly because in most real world usage the term really means applying strategies to mislead search...
  5. Replies
    5
    Views
    136

    Re: How to display unicode on the screen

    Windows has also included an InkEdit control from Vista onward. This works fine in VB6 programs as an enhanced RichTextBox that can handle Unicode, in addition to its optional ability to accept...
  6. Re: User Control Radio (Option) Button

    I've added a simple "focus rectangle" and keyboard selection as well. Seems pretty simple if you ask me.

    Trivial matter to draw a nice circle, add a Caption, etc. to flesh things out.


    120227
  7. Re: User Control Radio (Option) Button

    It is a trivial matter to add another property (call it "GroupID") that gets tested within the exclusion loop.


    Option Explicit

    'Simple mutual-exclusion UserControl. True shows as a black...
  8. Re: User Control Radio (Option) Button

    I suspect that the intrinsic control implements mutual exclusion by finding all of the other instances located on its container (Parent). Example:


    Option Explicit

    'Simple mutual-exclusion...
  9. Replies
    11
    Views
    290

    Re: UTF-8 question

    You can do what Notepad does, call the IsTextUnicode function with a block of the first n bytes of data.

    Also see The Notepad file encoding problem, redux but I'm pretty sure I gave you that link...
  10. Replies
    16
    Views
    306

    Re: WaitForSingleObject

    Of course that hangs your application, which is exactly how not to use the function.
  11. Replies
    16
    Views
    306

    Re: WaitForSingleObject

    The first application could go on and do other things, no reason it has to "freeze." It could just do something like change the mouse pointer to vbHourglass but leave a Cancel button enabled to let...
  12. Replies
    16
    Views
    306

    Re: WaitForSingleObject

    In the UI thread code of a VB6 program (basically this means all of the code you can write in VB) you really don't want to hang on something like one of the Win32 Wait functions. Otherwise you get...
  13. Replies
    16
    Views
    306

    Re: WaitForSingleObject

    The docs pretty much spell it out for you, see WaitForSingleObject function.

    What doesn't that answer?
  14. Replies
    9
    Views
    220

    Re: vsprintf in VB

    You have my sympathy.

    Many days I fight a messed up biological clock. Lately most of my Windows contract work has gone to India, and I can only get contracts as mentor - which means far too much...
  15. Replies
    9
    Views
    220

    Re: vsprintf in VB

    Simple variation.

    This one accepts () as subformat delimiters. Using () means to call CStr(), and using (xxx) means to call Format$() instead, passing xxx as the formatting string. Escape a "("...
  16. Re: how do you delete a thread on this forum?

    I agree. Considering the "posterity" angle the ability to correct typos and snafus in general result in a cleaner, clearer "reference thread" than looking 27 posts down for corrections to mangled...
  17. Replies
    9
    Views
    220

    Re: vsprintf in VB

    Well, since almost the day VB6 came out we've been using string builder logic to optimize away much of the cost of simple concatenation. You can easily find articles online yet dating back at least...
  18. Replies
    9
    Views
    220

    Re: vsprintf in VB

    What are you trying to do?

    If you want a way to create formatted output there are probably far easier approaches. Doing this using a String Builder class may well result in something with better...
  19. Re: how do you delete a thread on this forum?

    Food for thought.

    I have often started reading a thread and seen individual posts that make me think the author (a.) posted in the wrong thread, (b.) was trolling, (c.) was drunk, etc.

    Now I...
  20. Re: how to filter numeric data in data grid

    Something like:



    Dim TargetValue As Currency

    'Convert from localized text to Currency:
    TargetValue = CCur(txtTarget.Text)
    'Convert from Currency to invariant-locale text by using Str$()...
  21. Re: How to identify a specific disk, media or flash memory

    Using "C:\\" is a silly but non-fatal error. Only one "\" is used, e.g. "C:\" here.

    I'd guess some cargo-cult coder was copying an example written in C, where a "\" is escaped as "\\" in a string...
  22. Re: CLSID in registry for 32 bit dlls are not getting created in WIN 2008 R2

    It is easy to end up with a weird mix of "actual" and "virtual" component registrations though, that vary from user to user on a given machine.

    While Joe Home VB Plinker may not notice it much,...
  23. Re: CLSID in registry for 32 bit dlls are not getting created in WIN 2008 R2

    Create a proper deployment package, even those made using the PDW work fine.

    Just slapping DLLs, even those you write yourself, "next to" the EXE and hoping the VB6 runtime registers them behind...
  24. Re: CSV files and a big problem with notes field!

    That isn't "using ADO" as such since ADO is merely used as the connector technology. The work is being done by the Text Driver, a creaky old ODBC Desktop Driver that ADO can only use by thunking...
  25. Replies
    6
    Views
    307

    Re: Surface Pro 3

    Tablet tablet technology has pushed into laptop design in recent years.

    If you shop around you might be able to find a decent lightweight laptop now in the same price range or lower, one with a...
  26. Replies
    3
    Views
    178

    Re: Using a COM Advise Sink

    If I had to guess I'd think these are trouble:


    [in] LPCWSTR pszNewName

    You may need to pass these as something like:


    [in] LONG pszNewName
  27. Replies
    59
    Views
    942

    Re: If you like your Ebola, you can keep it

    Fans of Faux News and its negative agenda like to parrot things they've heard but do not actually understand:



    Thus such things don't necessarily undermine an argument at all.
  28. Re: How do I make a constant string array

    The only important thing is to realize it is there and account for it when creating Strings as "buffers" and passing/consuming "length" counts. But it isn't the same thing as String values being...
  29. Re: How do I make a constant string array

    Interestingly it is defined as a Unicode NUL (i.e. "two NUL characters" i.e. 16 bits of 0s) even when the String contains ANSI data instead of Unicode data.

    See BSTR
  30. Re: How do I make a constant string array

    No, the NUL is not a terminator but a "guard character" added outside the value of the String.

    It is not included in the size returned by Len(), as opposed to C operators such as sizeof().
  31. Replies
    6
    Views
    307

    Re: Surface Pro 3

    No reason to think it can't do this. The question is, "How well?"

    The main issues will be the tiny screen, tiny keyboard, mouse substitute, and the small size and short life in general of SSDs...
  32. Re: What is the latest Service Release for VB6

    Then you are doomed to numerous subtle problems.

    SP6, SP6A, and SP6B were all VB6 Service Packs. The "B" never had anything to do with "Basic."


    Be very careful about installing anything...
  33. Re: How do I make a constant string array

    Variable length String variable values are not "null terminated" at all, but do have an out-of-band NUL character just past the value of the String. The distinction is important, since failing to...
  34. Re: Just thinking about the VBForums Rep

    Note that it can be an iffy thing though. There are people I'd add reputation for but until enough others come along who are "deserving" I can't add any more.

    No idea how much must be "spread...
  35. Re: MDB Relationships "Showing" After Added through VB6 with the DAO

    If you actually have relationships then they will be shown here. Perhaps you didn't create any?

    In SQL DDL (e.g. CREATE TABLE) you'd use a CONSTRAINT... REFERENCES clause.
  36. Replies
    3
    Views
    178

    Re: Using a COM Advise Sink

    As far as I can tell from a quick look at IFileOperation and friends there are limitations.

    IFileOperationProgressSink appears to be an interface that your program must implement, so what you...
  37. Re: Implementing "LAN-wide Variables" with a broadcast? Other approches?

    Even a simple counter is impractical in P2P. It only works if the data is "fuzzy" and doesn't require precision.
  38. Replies
    59
    Views
    942

    Re: If you like your Ebola, you can keep it

    Reminds me of some trailheads here with signage about not looking a bear in the eyes, trying to outrun one, etc. They never mentioned the "socks defense."

    For good or ill the only bears we have...
  39. Re: How to detect when a device/cable is plugged or unplugged when using MSCOMM contr

    Actually true/on/1 is a low (negative) voltage, high (positive) voltages are false/off/0. ;)
  40. Replies
    5
    Views
    199

    Re: UDT within UDT

    Or better yet just use classes instead unless you need them to stand in for a "struct" used with an API call.

    The fact that each relatively small value-only class has its own module is a small...
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.