Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 11/06/20 in all areas

  1. Remy Lebeau

    remove part of string and compare

    Messages are used, yes (LB_ADDSTRING, etc). But not the message queue, no. The messages in question would be SENT directly to the ListBox's window procedure for immediate processing, not POSTED to the message queue of the thread that owns the ListBox awaiting dispatching to the ListBox's window procedure.
  2. Anders Melander

    Compile code on the fly...?

    Okay. I'll try with a simpler example (apologies to @Kas Ob. if he/she/they already covered it, but it's friday and TLDR). Byte code is just the instruction set for a specialized virtual CPU so in this case it's a virtual CPU that only knows how to search stuff. A byte code compiler is a compiler that transforms "something" (in this case search parameters) into the virtual CPU assembler. The implementation of the virtual CPU is called an interpreter if it executes the byte code instruction from scratch each time you execute the "byte code program". If it instead compiles the byte code into actual processor opcodes the first time and then execute those the first and subsequent times, then it's called just-in-time compiler. One of the first pascal implementation was UCSD Pascal which ran on the UCSD p-System - a byte code virtual machine. P.S. You really should try to read about and understand these old concepts. While they might not seem relevant to you now, understanding and knowing about them can only improve your skills.
  3. Anders Melander

    Compile code on the fly...?

    https://en.wikipedia.org/wiki/Interpreter_(computing)#Bytecode_interpreters
  4. @David Heffernan and me implemented one for Spring4D - you can already check it out in the develop branch
  5. Interesting. BTW I use always Merge Sort and Tim Sort.
  6. Remy Lebeau

    Batch Reading Emails from Windows Explorer

    No, it does not, only emails in RFC822 format, like .EML files.
  7. Anders Melander

    Batch Reading Emails from Windows Explorer

    I would guess that no other types use it. It's not a very friendly format. I can't speak authoritatively on the subject but if IMessage is a MAPI interface then in theory it should work with all MAPI providers. Unfortunately I don't think there's many applications left that support MAPI. I doubt it but it should be easy to determine since you have the source...
  8. Remy Lebeau

    Why do these 2 statments produce different results ?

    '#$02' (w/ quotes) is a string literal consisting of 4 distinct characters: '#', '$', '0', '2'. The string you are searching, 'bla,bla,#$02,bla', contains that 4-char substring in it, hence the result is > 0. #$02 (w/o quotes) is a single Char whose numeric value is 2. The string you are searching does not contain that character in it, hence the result is 0.
  9. I compiled the library myself (with some modification to support MSVC) and I run the benchmark with my own tests ... Here is some facts : - Unlike what was advertised, quadsort never beated qsort for generic order(I repeated the tests many time). - Stable/unstable test gave different/closest results. - For the rest of tests ... quadsort wins. - I didn't see any bug yet however the weird thing I saw : The author was validating the result using quadsort !!!
  10. Nice to read. But I am not sure indeed where it should be used in practice.
  11. Kryvich

    strange problem with psftp lib

    So instead of "DLL not found" you got "External Exception". This is about how important it is to name exceptions correctly and clearly.
×