Search:

Type: Posts; User: Zphere

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: [SOLVED] Can't delete a Folder with it's contents with the Shell command

    ...deleted
  2. Re: LIKE Operator speed-up without additional references

    Okay,

    most important for me is a search against pattern ranges ("[]") also.
    Reading the information from the provided link, this is not explicitly stated by MS.
  3. Re: LIKE Operator speed-up without additional references

    Nice find, thank you very much dilettante,

    I visited this ms-site so often but never recognised this api as interesting in the left scroll-down menu.
    However, according to your test results (I...
  4. Re: LIKE Operator speed-up without additional references

    Thanks OptionBase1,

    I cannot use Instr because it's not able to handle regex patterns as the like operator.
    I've to compare a specific array value against regular expression patterns from the...
  5. LIKE Operator speed-up without additional references

    Hello all,

    is there any faster way to compare multiple strings via regex-patterns than I did in the example code below?
    This code works very well, but becomes slow when executed multiple times in...
  6. Replies
    14
    Views
    2,163

    Re: [RESOLVED] Dir$ issue

    wqweto,

    PathFileExistsW does not distinguish between existance of a filename or a directory.
    As its name suggest, it simply checks for existance of a path.

    Zphere

    EDIT: Sorry, at second...
  7. Replies
    14
    Views
    2,163

    Re: [RESOLVED] Dir$ issue

    Perhaps belatedly, but still just another one that is unicode aware:



    Private Declare Function PathFileExistsW Lib "shlwapi" (ByVal pszPath As Long) As Boolean
    Private Declare Function...
  8. Re: Dynamic change of a structure length inside a function

    Elroy, I think I now understand your statement of going sure that destination should be the first parameter.
    Regarding your link: habitually, RTFM is the first thing I do. This was the first side I...
  9. Re: Dynamic change of a structure length inside a function

    Also, thanks for your warnings.
    Am I allowed to ask what "memory" one might try to copy is not memory?
    Could you/someone recommend a good reference about how CopyMemory works?

    DEXWERX, I think I...
  10. Re: Dynamic change of a structure length inside a function

    Elroy, thank you very much for "coaching" me here.

    "Secretely", methods of byte array handling was also what I'm looking for.
    I'm just changing my code regarding your suggestions and till now...
  11. Re: Dynamic change of a structure length inside a function

    Very, very interesting Victor Bravo VI.
    This is new to me, I will test this.

    I'm shifting away from my initial question I know,
    but at first I would like to refer to Elroys approach.
    Elroy,...
  12. Re: Dynamic change of a structure length inside a function

    At first, a big thanks to all of you
    (In hope my english is good enough...)


    Victor Bravo VI:
    Clear answer to my initial problem (as it was posted). Thanks also for the reference.

    To be...
  13. Dynamic change of a structure length inside a function

    Example declarations:

    Private Type SUB_STRUCTURE
    SubMember1(15) As Byte
    SubMember2 As LARGE_INTEGER
    SubMember3 As LARGE_INTEGER
    SubMember4 As Long
    End Type

    Private...
  14. Replies
    33
    Views
    12,271

    Re: [RESOLVED] Increase number of undos in VBIDE

    cwk2,

    very useful instructions - thanks much.
    Environment: VB6 Enterprise German with SP6 installed on Win10 (v.1709) and vba6.dll v.6.0.9782.

    I did a short, sucessful test and would like to...
  15. Re: Get PhysicalDrive number by Volume name

    ...I know :-)
    BTW, StorageGetDeviceNumber has it own disadvantages.
    For example, it fails for attached VHDs via ImDisk/True- and VeraCrypt where others do not.



    Also thanks for confirming...
  16. Re: Get PhysicalDrive number by Volume name

    Dragokas,
    I suggest not to use this IOCTL-ControlCode for your aim.
    As you (?), I prefer writing codes that work in a commandline window without explicit elevation.

    Use...
  17. Replies
    11
    Views
    1,751

    Re: [RESOLVED] Passing a UDT

    Elroy,
    believe it or not, but basically I'm aware of of that what you pointed out.
    The main difference I see between people who do coding on regular basis and/or
    earn money with it and people like...
  18. Replies
    11
    Views
    1,751

    Re: Passing a UDT

    Uhh, I was really close.
    It was simple enough -if there wasn't the really stupid mistake I made.
    Thank you Schmidt, I got it now.
    About your supplementary notes, I see what you mean.
    And you're...
  19. Replies
    11
    Views
    1,751

    Re: Passing a UDT

    LaVolpe and Elroy,
    here now is what I did more precisely regarding my original question.
    This code works (certainly), but is not what I want:

    Module1


    Option Explicit
    Public Type SubInfo
    ...
  20. Replies
    11
    Views
    1,751

    Re: Passing a UDT

    A big thanks to both of you,

    will try your suggestions and post results (or emerging questions) as soon as possible.
  21. Replies
    11
    Views
    1,751

    [RESOLVED] Passing a UDT

    My project so far is started via Sub Main in a module.
    It also contains a class that collects Information using an UDT.
    Below, contents of interest are shown.

    Class1


    Option Explicit
    ...
  22. Replies
    3,725
    Views
    1,855,810

    Re: CommonControls (Replacement of the MS common controls)

    I'm still on testing, but I would like to post a preliminary opinion here:
    In case the claimed performance boost affects loading only I would also say No, don't change anything.

    In general - does...
  23. Replies
    3,725
    Views
    1,855,810

    Re: CommonControls (Replacement of the MS common controls)

    In the meanwhile I did some tests with the previously attached project.
    Intent was to check if slowness might be related to the ListSubItems only or by defining several columns (data fields) or...
  24. Replies
    3,725
    Views
    1,855,810

    Re: CommonControls (Replacement of the MS common controls)

    Again, thank you Krool.
    I expected (and feared) this kind of answer.

    @Karl77,
    I'm also very interested in providing the thread link.
  25. Replies
    3,725
    Views
    1,855,810

    Re: CommonControls (Replacement of the MS common controls)

    Thanks Krool for having a look.
    I admire your patience and willingness to answer all requests in this thread.

    Attached is a project sample to address the issue mentioned in my previous post.
    I...
  26. Replies
    3,725
    Views
    1,855,810

    Re: CommonControls (Replacement of the MS common controls)

    At first, I don't know if my question is related to Krools controls in particular
    because of my missing knowledge here.
    So, please excuse if you think that I'm hijacking this thread.

    ListViewW...
  27. Replies
    13
    Views
    9,109

    Re: Multiple commands in CMD Prompt

    @erenagar
    Sorry for intruding, but the microsoft source provided is misleading.

    Inside console doubled ampersands (as well as doubled vertical pipes) are treated completely different.

    One...
  28. Replies
    6
    Views
    2,507

    Re: Can't get cmd.exe to execute properly in VB6

    sockey,

    if I may - your "code" is not very fool proofing.


    Your two commands open two independent command line windows.
    Although the first one changes to the target directory - the second...
  29. Replies
    3,725
    Views
    1,855,810

    Re: CommonControls (Replacement of the MS common controls)

    Thanks much for clarification.
    That's exactly what I wanted to know.
  30. Replies
    3,725
    Views
    1,855,810

    Re: CommonControls (Replacement of the MS common controls)

    @Krool,

    I started using your controls collection for displaying very long and unicode path/file names.
    It's the first time I'm using a ListView control so please excuse if the following question...
  31. Replies
    10
    Views
    1,367

    Re: Problems with batch file called through VB

    Independent from dilettantes much better solution LaVolpe is right with his assumption.
    %CD% in a batch always returns the directory from which a batch was called. I think this is not what you want....
  32. Replies
    27
    Views
    5,936

    Re: FindFirstFileW and filepaths > MAX_PATH

    Thank you very much Schmidt for this extensive clarification - I am interested and willing to dive into this.

    fafalone,
    to clarify my post I will describe an example from practice:
    German...
  33. Replies
    27
    Views
    5,936

    Re: FindFirstFileW and filepaths > MAX_PATH

    @ all,

    thanks for your plain words.
    Indeed, it seems that I was misleaded in a way Tanner_H described.
    Just now, I am growing angry about myself of being unable to distinguish
    between unicode...
  34. Replies
    27
    Views
    5,936

    Re: FindFirstFileW and filepaths > MAX_PATH

    In present, many people still use Windows XP.
    There, unicode is available only if foreign/asian language support is enabled in the regional and language options.
    I do not intent to open a...
  35. Replies
    27
    Views
    5,936

    Re: FindFirstFileW and filepaths > MAX_PATH

    I think you don't have to.

    Assuming you're looping through FindFirstFile until FindNextFile is "0"
    - the WFD.cFilename always returns the filename only.
    You've to add the source path (input...
  36. Thread: Max_path

    by Zphere
    Replies
    38
    Views
    7,782

    Re: Max_path

    ...nice to see confirmings from my initial post.

    Tanner_H,
    the "funny bug" in the PathIsUnc function surely relies on insufficient or bad msdn documentation for many APIs.
    This so called "bug"...
  37. Thread: Max_path

    by Zphere
    Replies
    38
    Views
    7,782

    Re: Max_path

    Regarding the intention of unicode awareness and full access to very long file pathes
    I would like to add that dealing with file functions APIs is not so easy as it seems
    at first glance.
    ...
  38. Thread: Max_path

    by Zphere
    Replies
    38
    Views
    7,782

    Re: Max_path

    Elroy,

    I'm not an expert as you and many others here in this forum
    but nevertheless, I would like to share my experience here.

    Working in a medical research area of a german university
    (with...
  39. Replies
    11
    Views
    5,234

    Re: "If" and "GoTo" in batch file command?

    Several possibilities exist in a batch file.
    Here're three of them that could be of interest:

    Possibility 1:


    @ECHO OFF
    SETLOCAL ENABLEEXTENSIONS
    cmdLine1
    if errorlevel 1 GOTO :_Skip
  40. Replies
    8
    Views
    1,313

    Re: Running my project using a BAT file

    The console output highly depends on the used commands itselves.
    Some commands produce an output, some not.
    Additionally in some cases its important if you use a batch with bat or cmd extension....
Results 1 to 40 of 47
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width