dcsimg

Search:

Type: Posts; User: jpbro

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds; generated 22 minute(s) ago.

  1. Re: (String search algorithm) Skip the contents of the quotes to find a substring

    Agreed - my approach was only intended as a response to the original question for an InStr replacement that ignores text within various "quotes". Even then it was only posted as a nudge in a possible...
  2. Re: Your first BASIC computer? Has your software survived?

    Now that's just plain cruel! At a crusty old VB6 forum no less! :p
  3. Re: [RESOLVED] (String search algorithm) Skip the contents of the quotes to find a su

    There is one potential issue in my code that you will need to be aware of, and may need to fix/change the behaviour. It has to do with setting the Start parameter to a value inside a quoted run of...
  4. Re: (String search algorithm) Skip the contents of the quotes to find a substring

    Yikes! Instr with TextCompare is really slow. Check out VBSpeed for an Instr replacement that beats the pants off the native implementation: http://www.xbeat.net/vbspeed/c_InStr.htm
  5. Re: (String search algorithm) Skip the contents of the quotes to find a substring

    Here's my kick at it...there are almost definitely bugs since I haven't tested it too thoroughly, but it might get you started (or give you a comparison approach for benchmarking against other...
  6. Re: Help with improving my SQL query (SQLite)

    Hi everyone, thanks a lot for all the feedback there's some great stuff here.

    I haven't used CTEs before, but I've been doing some studying up on them, so thanks for pointing them out techgnome...
  7. Re: Help with improving my SQL query (SQLite)

    Thanks for the response. Yeah, there are separate tables because each stage has some other fields that are only relevant to the individual stages. Maybe I should punt the relevant bits out to a...
  8. [RESOLVED] Help with improving my SQL query (SQLite)

    Hi,

    I have an SQL query that works now and is reasonably fast, but I have a feeling there must be a better way to write it and I am hoping for some feedback.

    First some background -

    I have...
  9. Re: Use Regular Expressions to replace strings

    Did you set the "Default" procedure ID for the Replacer function?

    168793
  10. Re: Use Regular Expressions to replace strings

    On way you can do it is to turn of the Global search and roll your own replace loop. Something like this:



    Public Sub Test()
    Dim RE As VBScript_RegExp_55.RegExp
    Dim M As...
  11. Re: The 1001 questions about vbRichClient5 (2019-05-09)

    Unfortunately that change did not seem to help in IDE mode - not a big deal if it's fixed in RC5 already for the next update though.
  12. Re: The 1001 questions about vbRichClient5 (2019-05-09)

    Olaf - thank you very much for the clarifications re: cThreadHandler, very informative.

    I just tried your threaded cActiveScript approach on Windows 10.1809 and it worked flawlessly when compiled,...
  13. Thread: Problem - How to

    by jpbro
    Replies
    16
    Views
    371

    Re: Problem - How to

    What about something like this:



    Option Explicit

    Private m_DragBoxIndex As Long

    Private m_DragX As Single
    Private m_DragY As Single
  14. Re: The 1001 questions about vbRichClient5 (2019-05-09)

    Olaf will can add more details/correct me on any errors, but here's my understanding of your questions:



    In my code I'm waiting for an empty job queue before setting the thread object to...
  15. Replies
    25
    Views
    671

    Re: [RESOLVED] Looking for advice on 64-Bit COM

    Looks like there is one entry missing from Olaf's manifest and qvb6's registry file - probably something introduced in a more recent version than Olaf had available (Redemption.SafeExplorer). Here it...
  16. Replies
    25
    Views
    671

    Re: Looking for advice on 64-Bit COM

    Hi @qvb6 - nice work :) I think the CLSCTX_ACTIVATE_64_BIT_SERVER flag might have been the trick because I was getting errors with a same/similar REG file that I put together, and now with your...
  17. Replies
    25
    Views
    671

    Re: Looking for advice on 64-Bit COM

    Thanks VB6Programming - I've been considering contacting Dmitry (Redemption Dev) as I have a support license, but I wanted to collect some more information/run some more tests before doing so. But I...
  18. Replies
    25
    Views
    671

    Re: Looking for advice on 64-Bit COM

    Yes I think we will be seeing more of 64-Bit Office unfortunately - especially now that Microsoft appears to be endorsing it over 32-bit, which is a change from their previous stance. It used to be...
  19. Replies
    25
    Views
    671

    Re: Looking for advice on 64-Bit COM

    Just a quick update.

    I've been trying qvb6's approach re: AppId on a fresh system with Outlook 64-bit installed, and so far I haven't been able to get it to work (whereas it seemed to work on my...
  20. Replies
    25
    Views
    671

    Re: Looking for advice on 64-Bit COM

    Hi Olaf, that looks like a great approach too. I especially like the fact that it can run regfree (which was one of points on my "ideal" list). I suppose a potential drawback is that some sites may...
  21. Replies
    25
    Views
    671

    Re: Looking for advice on 64-Bit COM

    Thanks for the VisualStudio licensing clarifications everyone!

    Looks like Redemption64.dll doesn't have an AppId when you register it, but as per this StackOverflow thread it looks like you can...
  22. Replies
    25
    Views
    671

    Re: Looking for advice on 64-Bit COM

    Ahh I see, thanks for the clarification! I'll give it a shot, appreciate the help :)
  23. Replies
    25
    Views
    671

    Re: Looking for advice on 64-Bit COM

    Hi qvb6, thanks a lot, this looks very promising!

    One question I have about the App.Id - at install time do I create an registry entry for my Executable file name, e.g.


    ...
  24. Replies
    25
    Views
    671

    Re: Looking for advice on 64-Bit COM

    One other thing that just came to mind about .Net/VisualStudio - can you use the "community/express/whatever they are calling it these days" edition for commercial projects, or do you have to...
  25. Replies
    25
    Views
    671

    Re: Looking for advice on 64-Bit COM

    .Net is not a necessarily a deal breaker, just not my ideal choice. My reasons being (and these may be misguided, my .Net experience is minimal):


    The helper app will launched fairly frequently...
  26. Replies
    25
    Views
    671

    [RESOLVED] Looking for advice on 64-Bit COM

    I have a small application coded in VB6 that sits alongside my main application that acts as a bridge between my app & Microsoft Outlook. I execute the small app with some command-line parameters and...
  27. Replies
    2,281
    Views
    516,428

    Re: CommonControls (Replacement of the MS common controls)

    I didn't see that purpose stated the documentation ;)

    I think the purpose of the demo was to showcase the available controls, and the purpose of the project in general is to provide Unicode...
  28. Replies
    2,281
    Views
    516,428

    Re: CommonControls (Replacement of the MS common controls)

    It is mentioned in the GitHUb readme: "In order to use that type library, it is necessary to load the OLEGuids.tlb in the IDE. (Project -> References... -> Browse -> select file OLEGuids.tlb -> check...
  29. Replies
    2,281
    Views
    516,428

    Re: CommonControls (Replacement of the MS common controls)

    Did you register the TLB?
  30. Replies
    33
    Views
    529

    Re: Empty String

    Something like this should work to find "empty" strings (fixed-length or otherwise). You may want to change the what you consider "empty" characters though (see note in comments):



    Public...
  31. Re: The 1001 questions about vbRichClient5 (2019-05-09)

    I tried your code and it seems to work for me (at least when I change the ArrayList variable type to vbObject instead of vbDataObject, which I had to do because I don't have a vbDataObject class type...
  32. Re: Fast get the ascii code of a character in a string?

    Elroy, I think you are right about mapping a String to an Integer array being faster than Asc(Mid$())). Here's an example of the technique by Bonnie West:
    ...
  33. Re: Fast get the ascii code of a character in a string?

    Using Mid$() instead of Mid() should be a bit faster since Asc() and AscW() take a String parameter and the Mid$() returns a String, whereas Mid() returns a Variant.
  34. Replies
    9
    Views
    478

    Re: Code Bookmarks Add-In ???

    Thinking out loud a bit re: storing the bookmarks in the VBP file - I know it's not that common for projects to be shared amongst multiple programmers, but some projects are. If the bookmarks are...
  35. Replies
    10
    Views
    224

    Re: move cursor to beginning of line in textbox

    I don't see any handling of character code 10 in your code. You'll need to test for Chr$(10) and then you can bump down to the beginning of the next line using EM_LINEFROMCHAR with Text1.SelStart,...
  36. Replies
    10
    Views
    224

    Re: move cursor to beginning of line in textbox

    The code at the link was just to give you a nudge in the right direction, it's not the exact solution you are looking for.

    I had a look at the code at the link I provided, and it looks like the...
  37. Replies
    10
    Views
    224

    Re: move cursor to beginning of line in textbox

    They're messages that can be send to the underlying Win32 Edit window of the VB6 TextBox control. You will need to use the SendMessage API (there should be lots of examples around if you search for...
  38. Replies
    10
    Views
    224

    Re: move cursor to beginning of line in textbox

    You can send the EM_LINEFROMCHAR (to get the current line #) and EM_LINEINDEX (to get the character index of the start of the current line) messages to the TextBox to accomplish your goal.
  39. Re: [VB6] Simple SPH (smoothed particles hydrodynamics)

    Wow that's beautiful work! Mesmerizing :)
  40. Re: Use VB6 to implement optional properties(interfaces) like TypeScript Interfaces?

    In VB6, any class that implements another class must implement all of the public methods of the implemented class, so I don't think there's any way to have optional properties.

    You could however...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width