Search:

Type: Posts; User: jpbro

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Bien, merci. Moi aussi.



    Don't bother yourself with changing anything - I don't care about the phrases as much as the tone. Now that we're talking, I don't even care about the tone since we're...
  2. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Ignore my last message for now, I just see that you've responded in detail, so I will respond in kind.
  3. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    You misunderstand me Eduardo, I don't like troubles at all, I like solutions. I like exploring technical problems with people who are working on similar problems, with similar (admitedly ancient)...
  4. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    I'd like to read it - if there's something groundbreaking to learn from you about DoEvents, then that would be great. I'm skeptical until I see something though.




    That's not how I see it at...
  5. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    I neither think it's evil, nor that it shouldn't ever be used. However, I read many posts where DoEvents is clearly a contributing factor to a problem (including in this thread), and resolving those...
  6. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Bummer. You could wrap the OpenDb method with your own that tries to create a random table. On failure due to SQLITE_READONLY, you could retry for a while (in case of something transient like a...
  7. Replies
    48
    Views
    4,126

    Re: vbWidgets/RC5 UI Questions "Megathread"

    Olaf, I have some questions that have come up since I got back to work on this. No rush, but if you have some time to answer it would be appreciated:


    The new cCrypt FileHashProgress event is...
  8. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Oh good, it must have just been a bad dream I had then! ;)
  9. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    So Access probably performs some kind of write on connect, whereas RC6/Sqlite does not. You could try a quick write after you connect (maybe even trying to start a transaction would be enough?). If...
  10. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    BTW - you can have a responsive UI with a long-running process using a timer instead of DoEvents, and it won't be much slower than a tight-loop + DoEvents approach. I know you're trying to eke out...
  11. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    My guess is that WinRar has locked the file for read only access - RC6 won't know this until it tries to write to the DB, and that is why you get the error on write not on open/read.

    If WinRar...
  12. Replies
    48
    Views
    4,126

    Re: vbWidgets/RC5 UI Questions "Megathread"

    Alright, it's been a long time coming but I've finally got back to work on this. The latest version is below for anyone that's interested:

    Latest Source Code:

    185493

    Latest Changes:


    ...
  13. Replies
    1
    Views
    172

    Re: How do i fix this webview2 code

    rtb1.text = WV.ExecuteScript("document.cookie.split(';').forEach(function(c) { document.cookie = c.replace(/^ +/, '').replace(/=.*/, '=;expires=' + new Date().toUTCString() + ';path=/'); });")
  14. Replies
    196
    Views
    21,640

    Re: VB SQLite Library (COM-Wrapper)

    Ahh, yes, I didn't even consider disconnected recordsets, so it makes sense to have a full copy of the data in the cRecordset object instance.



    Good to know, thanks for clearing that up!
  15. Replies
    196
    Views
    21,640

    Re: VB SQLite Library (COM-Wrapper)

    I know, but there's a difference between holding all text data in memory as UTF-16 vs. holding it all in memory as UTF-8, and converting to UTF-16 as needed (for example, when getting a text value...
  16. Replies
    196
    Views
    21,640

    Re: VB SQLite Library (COM-Wrapper)

    Hmm, I'm not sure about that - perhaps that's implementation dependent? I admit that I haven't investigated Kr00l's or Olaf's code closely, but I would have thought that any implementation would...
  17. Replies
    196
    Views
    21,640

    Re: VB SQLite Library (COM-Wrapper)

    Yeah looks like I was off by an order of a magnitude on my math. I just tried and could get somewhere between 5 and 10 million records. AFAIK SQLite stores strings as UTF-8, so the 32-characters...
  18. Replies
    196
    Views
    21,640

    Re: VB SQLite Library (COM-Wrapper)

    If you select only the RowID and Path_Hash, then you should be able to SELECT quote a lot of records I think - I would guess in the high-tens to low-hundreds of millions perhaps? Do you expect to...
  19. Replies
    196
    Views
    21,640

    Re: VB SQLite Library (COM-Wrapper)

    I haven't tried Kr00l's wrapper, but I can confirm similar bad performance after converting your demo to RC6 code. I even tried swapping out all the .OpenRecordset calls for .FindFirst, and the...
  20. Replies
    26
    Views
    1,010

    Re: Generic type conversion function CType

    I was recently in a big debate about generics and reflection at the tB GitHub discussion board. Try as I might, I don't see generics & reflection as an improvement over the COM contractual approach....
  21. Thread: Stuff to watch

    by jpbro
    Replies
    211
    Views
    14,132

    Re: Stuff to watch

    https://www.youtube.com/watch?v=oV5LQcmuGg8
  22. Replies
    27
    Views
    897

    Re: How should I rewrite this to not use GoTo?

    Here's a couple of other ways you could do it:



    Sub Test()
    Dim skip As String
    Dim arr() As String
    Dim arrSkip() As String
    Dim i As Long
    Dim j As Long
  23. Replies
    48
    Views
    4,126

    Re: vbWidgets/RC5 UI Questions "Megathread"

    Great, once you have the time to release an update, I'll be happy to test in-depth and confirm that everything looks good on my end.



    I'm looking forward to a new release as there are a few...
  24. Replies
    48
    Views
    4,126

    Re: vbWidgets/RC5 UI Questions "Megathread"

    It's admittedly a bit weird to have both applied to a single UI element, but I find it useful for things like dialog windows that just have a single button. When doing a lot of data entry, I can get...
  25. Replies
    48
    Views
    4,126

    Re: vbWidgets/RC5 UI Questions "Megathread"

    Thanks for looking into this.



    That's great, thank you.




    Ahh, I see - I haven't played around with design mode yet.
  26. Replies
    48
    Views
    4,126

    Re: vbWidgets/RC5 UI Questions "Megathread"

    I finally figured out what is causing the weird "double-search window appearing on Enter press" problem. In Form_Activate, I try to set the focus to the search button:



    Private Sub...
  27. Replies
    48
    Views
    4,126

    Re: vbWidgets/RC5 UI Questions "Megathread"

    OK, it's been a long time since I tried working with RC6 forms/widgets, but I'm back at it. I've updated the first post with the latest version of the file finder utility I'm working on updated to...
  28. Thread: Stuff to watch

    by jpbro
    Replies
    211
    Views
    14,132

    Re: Stuff to watch

    https://www.youtube.com/watch?v=_DgdD565-eU
  29. Re: Cairo Wiget / Form setout question

    Those are great links, and my apologies for not including you in my list of RCx UI "pioneers" alongside reexre and ColinE66. I always forget you changed your name!
  30. Re: Cairo Wiget / Form setout question

    So here's an example of the kind of difficulties I'm facing when trying to put together a small demo.

    First thing I wanted to do is put a background image on a form, but there's no RC6 form...
  31. Re: Cairo Wiget / Form setout question

    I could be wrong about it not being possible to use an RC6 widget on a VB6 form. Hopefully Olaf will be able to provide an answer.

    There are a bunch of pre-written Widgets in the vbWidgets.dll...
  32. Re: Cairo Wiget / Form setout question

    First, I don't know if it's possible to show RC6 widgets on a normal VB6 form or not. It might be, but I suspect it will complicated, especially compare to using an RC6 form.

    Have you had a look...
  33. Replies
    13
    Views
    608

    Re: Timer faster than 1ms - Merri's SelfTimer

    https://docs.microsoft.com/en-us/windows/win32/multimedia/about-multimedia-timers
  34. Re: Cairo Wiget / Form setout question

    It's not just you, I've been using (and been a proponent of) Olaf's library for mostly non-UI stuff well over a decade, but there's something about the Widget engine that I struggle with to this day....
  35. Re: [VB6] Event Tracing for Windows - Monitoring File Activity with ETW

    I could be way off on the above, that's just what I would try on a first pass based on how I read the documentation you provided.
  36. Re: [VB6] Event Tracing for Windows - Monitoring File Activity with ETW

    That is some pretty awful wording on MSs part. Here's how I read it:

    The data is a binary blob that may contain a variable length SID.

    If the first 4 points of the data are non-zero then the...
  37. Thread: Hello Olaf

    by jpbro
    Replies
    11
    Views
    670

    Re: Hello Olaf

    I prefer to assume the client has no knowledge of where the server is saving the DB, and I would leave DBClient.Connect alone and handle the pathing on the server side. For example:



    Private...
  38. Thread: Hello Olaf

    by jpbro
    Replies
    11
    Views
    670

    Re: Hello Olaf

    I don't have/use the cDBAccess class myself, can you post the cDBAccess.cls file?
  39. Thread: Hello Olaf

    by jpbro
    Replies
    11
    Views
    670

    Re: Hello Olaf

    No, the database can be anywhere. In my RPC app, I have the RPCDlls folder in the application path, but my databases are in a C:\ProgramData\MyCompany\MyApp folder. There's no problem for the client...
  40. Thread: Hello Olaf

    by jpbro
    Replies
    11
    Views
    670

    Re: Hello Olaf

    When setting up the CRpcListener, you can choose any folder for to be the location for your RPC DLLs. For example:



    Option Explicit

    Private mo_RpcListener As cRPCListener

    Private Sub...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width