dcsimg

Search:

Type: Posts; User: jj2007

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: The 1001 questions about vbRichClient5 (2020-01-12)

    Is this thread still about RichEdit problems? If so, I can offer one more bug that seems to be present in all DLL versions: EM_STREAMIN is very, very slow when replacing an existing long text with a...
  2. Replies
    8
    Views
    769

    Re: VB6 reading registry 32bit and 64bit

    It's a bit tricky to access the 64-bit registry from VB6 but not too diffult. Check this link to get more hints.
  3. Replies
    34
    Views
    1,188

    Re: Double to String performance issue

    It will be slow if your UDT contains pointers to strings. If they are fixed size strings embedded in the type, it should be fast, though.
  4. Replies
    34
    Views
    1,188

    Re: Double to String performance issue

    That is correct, Olaf, but the timings with wStr$() are identical. The bottleneck is really number to string, a conversion from Ansi to Utf-16 costs very little in comparison.
  5. Replies
    34
    Views
    1,188

    Re: Double to String performance issue

    Storing an array of 16*200000=3.2 Million doubles to disk costs about 150ms on my Core i5, but that depends on the harddisk. In any case it's a factor 12...15 faster than converting. Note, though,...
  6. Replies
    34
    Views
    1,188

    Re: Double to String performance issue

    Googling faster convert sprintf double to string puts a SOF article on top where somebody writes "You should use sprintf() as it is the fastest". I made a quick test and nope, sprintf() is sloooow,...
  7. Replies
    43
    Views
    1,541

    Re: Excel File to Resource File

    I noticed that. With another programming language, I can display Russian perfectly in my Italian language console. Windows consoles support UTF8, Debug.Print doesn't...
  8. Replies
    43
    Views
    1,541

    Re: Excel File to Resource File

    Well, kind of. What it really does, apparently, is: it takes UTF16 text and cripples it to 7-bit ANSI. Which means it accepts Unicode but has no idea what to do with it (which is not so surprising...
  9. Replies
    43
    Views
    1,541

    Re: Excel File to Resource File

    Thanks!



    On my Win7-64 machine, Debug.Print has no problems with a plain ANSI text file. If I feed it with a Unicode text file, however, and use strLines = Split(StrConv(LoadResData(99, 10),...
  10. Replies
    43
    Views
    1,541

    Re: Excel File to Resource File

    Using tab as a delimiter is pretty safe - who would want to use a tab inside a cell of a spreadsheet? In contrast, csv is a nightmare. There are files from very official statistical sources that...
  11. Replies
    43
    Views
    1,541

    Re: Excel File to Resource File

    It can be a little bit simpler:
    Sub Main()
    Dim j As Integer
    Dim strLines() As String
    strLines = Split(LoadResData(101, 10), vbNewLine) ' 10=RCDATA
    For j = 0 To UBound(strLines)
    ...
  12. Replies
    43
    Views
    1,541

    Re: Excel File to Resource File

    RCDATA is your friend. And LoadResource gives you a direct pointer to the start of your text in memory, so that you don't have to save anything to disk. I use it all the time ;-)
  13. Replies
    43
    Views
    1,541

    Re: Excel File to Resource File

    CSV is a lousy format. Consider using tab-delimited format (exported by Excel as *.tab or *.txt).

    You can add any file, even binary data, as a RCDATA resource. Then check FindResource,...
  14. Replies
    54
    Views
    8,564

    Re: VB6-compiled apps being flagged as virus

    P.S.: My browser (SlimJet, a Chrome spinoff) has a very valuable function where I can see the passwords of all sites that ever required a password - roughly 100. So if I forget a password, which is...
  15. Replies
    54
    Views
    8,564

    Re: VB6-compiled apps being flagged as virus

    Elroy, your post is spot on - and many others here have written good comments, too. I am programming more in assembly than in other languages, and there the problem is much more accentuated; we even...
  16. Thread: U-umlaut

    by jj2007
    Replies
    4
    Views
    377

    Re: U-umlaut

    GdipDrawString takes Unicode args. Google told me also that the topic has been treated here already.
  17. Re: [RESOLVED] How to save a xls file as csv via ADO ?

    Why don't you use tab-delimited instead? It's much easier to handle than csv. Of course, in theory a user could insert a tab character in a field, but that could be substituted with a space before...
  18. Re: [RESOLVED] How to save a xls file as csv via ADO ?

    That's a gross one! Fortunately, I don't have to use Outlook ;-)
  19. Re: [RESOLVED] How to save a xls file as csv via ADO ?

    Thanks, very interesting ;-)
  20. Re: How to save a xls file as csv via ADO ?

    Yes and no: CrLf should simply be treated as a new row; technically you could wrap it in quotes, but I doubt you would find something like that in the wild.

    However, you can find embedded...
  21. Re: Your first BASIC computer? Has your software survived?

    Casio FX-502P (yes, it has a kind of BASIC), then ZX Spectrum, Atari ST with GfaBasic, then Windows with 16-bit GfaBasic. Atari and Windows software have survived, below a screenshot from my word...
  22. Re: VB6 - QUESTION - Is it possible to add tooltiptext to individual items in a treev

    Check the TTN_NEEDTEXT notification.
  23. Replies
    18
    Views
    927

    Re: Case or If...End If

    Who is "generally"?
  24. Replies
    18
    Views
    927

    Re: Case or If...End If

    A sane programmer will not use Select ... Case in a tight loop.
  25. Replies
    18
    Views
    927

    Re: Case or If...End If

    Exactly. It depends what's working under the hood. We have tested this ad nauseam here; a properly coded Select/Cases/Endselect block takes something like 0.2 seconds - for a Million tests. If there...
  26. Replies
    6
    Views
    454

    Re: GDI+ Vertical Text

    I was tempted to point you to ordinary TextOut, CreateFontIndirect and the LOGFONT structure. However, on my Win7 box, escapement works fine but orientation doesn't. Bad luck...

    What about...
  27. Re: Jump to a bookmark in an html page from a VB6 form

    Fyi: Jumping to bookmarks works fine for local files with Firefox and WWW_OpenURL
  28. Re: Displaying an excel file or a pdf file in vb6 form

    If Office is not installed on the user's PC, the old Microsoft Excel Viewer is still available in many places (e.g. https://microsoft-excel-viewer.en.softonic.com/) - but not at Microsoft. With the...
  29. Re: Best way to communicate between two known vb6 apps?

    In order of preference:

    1. WM_COPYDATA is fast and simple.
    2. Using a shared DLL is another interesting option, perhaps even faster than WM_COPYDATA, see Inter-Process communication with shared...
  30. Re: what is the history of the # symbol in file handling?

    For me, the Do Until EOF() looks like a non-rejecting loop, which could be a problem if you read from a zero-length file.
    In contrast, While Not EOF() should be a rejecting loop. And there is...
  31. Re: How to implement "bits-map" for massive grid cell data?

    Yes, that's correct. The point is that you can put, say, 10 Million records with 80 bytes each into
    1. a linear 800 Million byte array or
    2. some unknown data format used internally by a listview...
  32. Re: How to implement "bits-map" for massive grid cell data?

    The trick is to have the data in memory, in one big linear array; thus you can do efficient analysis of your data. BUT the control "sees" only as much data as is necessary for the display. This is...
  33. Re: How to implement "bits-map" for massive grid cell data?

    Exactly. Search for LVS_OWNERDATA.
  34. Replies
    7
    Views
    609

    Re: Zip Folders: Not to be automated

    I liked Fafalone's Create a ZIP file without any DLL depends using IStorage and IDropTarget project. No external DLLs, and a remarkably high compression ratio.
  35. Replies
    7
    Views
    673

    Re: Is MS Word running?

    There are various methods to check that, inter alia CreateToolhelp32Snapshot and FindWindow.
  36. Replies
    7
    Views
    665

    Re: Console output to text file

    Don't forget there is UTF-8, too.
  37. Re: [RESOLVED] How to obtain "Version" number of Windows 10?

    My code doesn't use the version number, but the build number is correctly found as 16299
    The Windows specs say Win10 home, version 1709 (whatever that means), build 16299.371

    Note that you can...
  38. Re: [RESOLVED] WM_GETTEXT losing Unicode despite normal retrieval method

    You are perfectly right, it's SendMessageW, not WM_GETTEXTW. I even tested it and had the right code in front of me. Let's blame old age :blush:
  39. Re: [RESOLVED] WM_GETTEXT losing Unicode despite normal retrieval method

    Whether you use SendMessage or SendMessageW, WM_GETTEXTLENGTH returns always chars, not bytes. In contrast, WM_GETTEXT retrieves an Ansi string, WM_GETTEXTW a Unicode string.

    Your buffer is...
  40. Replies
    80
    Views
    4,498

    Re: Windows department disappears from Microsoft.

    <sigh/> Really! VC++ 2010 Express takes about 15 seconds to load itself, VS 2015 Community takes something between one (if in the cache) and three minutes, on a Core i5 with 4GB of RAM. Bloat Without...
Results 1 to 40 of 123
Page 1 of 4 1 2 3 4



Featured


Click Here to Expand Forum to Full Width