Search:

Type: Posts; User: Dragokas

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: [VB6] Using IShellWindows to register for SHOpenFolderAndSelectItems

    Example: "How to select item in already opened folder (and deselect others)"



    Dim k As Long
    Dim nCount As Long
    Dim shItem As IShellItem2

    'get number of elements
    Call...
  2. Re: [VB6] Get extended details about Explorer windows by getting their IFolderView

    Thanks a much for delicious examples!

    Just a little remark, please, do sText = "" somewhere to prevent recurse fill column #4:
  3. Re: [VB6] Modern Shell Interface Type Library - oleexp.tlb

    hi, what am I doing wrong with Shell init? I assumed it's analogue.


    'this works
    Dim objShell As Object
    Set objShell = CreateObject("Shell.Application")

    'this returning...
  4. Re: [RESOLVED] I need SHA256 hashing code (not WinAPI based)

    Cool! Thank you!
  5. Replies
    9
    Views
    856

    Re: Method '~' of object '~' failed

    Arnoutdv, P.S. I also noticed problems using native runtime's Clipboard functions.
    After switching to own WinAPI-wrappers to Clipboard Get / Set methods, such issues are no longer the case.
    ...
  6. Replies
    9
    Views
    856

    Re: Method '~' of object '~' failed

    wqweto, thank you. But, not helped.

    Arnoutdv, I open only single.

    Solved by unchecking "Visual Component Manager 6.0" Add-In from loading.
  7. Replies
    9
    Views
    856

    Re: Method '~' of object '~' failed

    Can you remind me pls, which registry entries are missing?

    This error happens randomly when I open any project (with default settings and default add-ins).
  8. Replies
    5
    Views
    5,285

    Re: [VB6] Virtual File Drag Drop

    Thanks a much, fafalone!
  9. Replies
    3
    Views
    967

    Re: How to retrieve OS Language

    That is a common practice to change language for non-unicode controls only when other two language settings remain untouched.
    Such a way a program with ANSI controls designed in e.g. for Japan /...
  10. Replies
    3
    Views
    967

    Re: How to retrieve OS Language

    That is wrong.
    GetUserDefaultLangID returns a language set to use with controls not supporting the unicode. It is not OS installation language and not a display language.

    See the correct sample...
  11. Replies
    6
    Views
    1,586

    Re: Managing Firewall Rules via INetFwPolicy2

    cidtek, use the code in the post #3.

    And filter what you need by checking .ApplicationName property.

    You can find other properties via IntelliSense or F2 of NetFwRule object.

    Port and...
  12. Re: [VB6] - Class for subclassing windows and classes.

    Cool! Thanks.
  13. Replies
    19
    Views
    12,869

    Re: OS Version information class

    Updated to v1.13



    Added detection of:
    - Windows 11
    - Windows Server 2019
    - Windows Server 2022
    New properties added:
    - IsWin32
  14. Replies
    6
    Views
    1,586

    Re: Managing Firewall Rules via INetFwPolicy2

    Private Sub Form_Load()
    'Lists all firewall rules, excepting disabled
    Firewall_ListRules
    End Sub

    Public Sub Firewall_ListRules()

    On Error GoTo ErrH

    Dim pFwNetFwPolicy2 As...
  15. Replies
    6
    Views
    1,586

    Managing Firewall Rules via INetFwPolicy2

    Below provided several examples how to work with INetFwPolicy2 interface to setup Windows Firewall for your application.

    You'll have to connect type library via Project - References - NetFW.TLB
    ...
  16. How to Copy & Get binary data from Clipboard

    Hi,

    I need to store binary data in the clipboard, and retrieve it later.

    Copy data work OK, but I cannot get it due to IDataObject::GetData returns DV_E_FORMATETC (Invalid FORMATETC structure)...
  17. Replies
    5
    Views
    5,285

    Re: [VB6] Virtual File Drag Drop

    Thanks a much for your work!
    Is any of above methods able to prepare "virtual" file in clipboard in a way allowing to paste it via Context menu -> "Paste" operation manually instead of "Drag & Drop"?
  18. Re: CodeHelp: Multi-Tab/Mousewheel/FullScreen/TabIndex/AutoComplete Addin for VB6

    Normally opens here.
  19. Re: Krools Common Controls - Documentation and an Update/Compile Utility

    I'll split answer in 2 use cases:
    1) Run IDE.
    Personally, I see the only reason when one needs to run IDE non-elevated - to be able debug code in the same (or very close) environment as it will be...
  20. Re: VB6 IDE run as admin no longer remembers its maximized state in Windows 10 ver. 1

    xxdoc, I think I know, what whas the problem. For some reason, project had a reference to office library.

    Updated.
  21. Re: CodeHelp: Multi-Tab/Mousewheel/FullScreen/TabIndex/AutoComplete Addin for VB6

    Are there an updated download link?
  22. Re: Krools Common Controls - Documentation and an Update/Compile Utility

    Looks promisingly. Looking forward to test your software =)
    BTW, I'd suggest to overlook a helper code for missing Wow64RevertWow64FsRedirection, because there are some scenarios, e.g. in ShellW,...
  23. Re: Krools Common Controls - Documentation and an Update/Compile Utility

    Hi, and thanks for the detailed explanation.
    No, I'm using folders with full access for current user.
    My issue was: I just overlooked a button "Save & Exit". Now, settings are saved OK.


    Well,...
  24. Re: Krools Common Controls - Documentation and an Update/Compile Utility

    Thanks, MountainMan for this fantastic tool and docs!
    And thanks to Krool for continue maintaining this huge project.

    MountainMan, can I ask you please ability to auto-save OCX2StdExe options on...
  25. Re: VB6 IDE run as admin no longer remembers its maximized state in Windows 10 ver. 1

    xxdoc, no idea. Can you check "Add-ins" -> "Add-In Manager" -> is item exist at all: "IDE Window Fix" ?
    If yes, select "Loaded/Unloded" and press OK, IDE should instantly maximize in 1 sec.
  26. Re: VB6 IDE run as admin no longer remembers its maximized state in Windows 10 ver. 1

    Ok, I modified Add-In by Victor Bravo VI version with a timer by The Trick.
    Now, it works fine.

    Using:
    1. Compile Add-In
    2. Run _Register.cmd as Admin.

    I removed most code related to save...
  27. Re: VB6 IDE run as admin no longer remembers its maximized state in Windows 10 ver. 1

    This solution (for MDI) is helped me:


    Source: http://vbnet.mvps.org/index.html?code/faq/faqqa.htm

    ==
    Edit. Well, it was only one time. Not working again. Starts as maximized and instantly...
  28. Replies
    9
    Views
    1,243

    Re: MySQL & ADO queries speed

    Zvoni, thanks for an explanation!

    dilettante, thanks for code, I'll try MySQL connection string for ADOX a bit later and report.

    OldClock, I'm sure localhost will be much faster, but I need it...
  29. Replies
    9
    Views
    1,243

    Re: MySQL & ADO queries speed

    Arnoutdv, thank you for the examples!

    How that "batch" works? Is that similar to the transaction, but without a rollback feature and not breaking at first failed commit?
  30. Replies
    9
    Views
    1,243

    MySQL & ADO queries speed

    Hi,

    why the speed is so low ~ 12 queries per sec.?

    I'm uploading ~ 5000 records doing sequential calls of ADODB.Command's Execute from this snippet.

    Yes, I'm re-using the existing connection...
  31. Re: [VBA/VB6/ADO] How to escape strings in MySQL query?

    Olaf, nice!
    Especially, type detection.

    =))) I just also made a similar working approach, using Zvoni's tip.
    The problem was in this line:


    .NamedParameters = True

    :D - that's used only...
  32. Re: [VBA/VB6/ADO] How to escape strings in MySQL query?

    I've no idea what can I do more.

    Recordset said:

    - adVarWChar with 255 bytes - for TINYTEXT
    - adInteger with 4 bytes for int(11), actually it's same as INTEGER
    - adLongVarWChar with 65535...
  33. Re: [VBA/VB6/ADO] How to escape strings in MySQL query?

    Arnoutdv, thanks for sample. Much clear.

    dilettante, sorry, for MySQL I didn't used anything except ADO before, so I don't know much about another component you are talking.
    I just need the...
  34. Re: [VBA/VB6/ADO] How to escape strings in MySQL query?

    I saw some examples somewhere. But I dunno how it is actually working.
    How it should look in my case for INSERT INTO?
  35. [RESOLVED] [VBA/VB6/ADO] How to escape strings in MySQL query?

    Hi!

    Does anybody have a complete function for escaping special characters before making a write query to MySQL DB?

    Something like:
    https://stackoverflow.com/a/6478616/10205274...
  36. Replies
    19
    Views
    12,869

    Re: OS Version information class

    Please, don't quote the whole post. You are confusing me. I thought that quoted part was your specification.
    Which one is real? Those can happen due to hijacked info in the registry or due to some...
  37. Re: [VB6] StringBuilder - Fast string concatenation

    Black_Storm, it would be better you describe your entire use case. Some code from you can explain.
    Also, are you sure that you provide a substring in the same utf8 format?
    Generally, the class is...
  38. Replies
    10
    Views
    1,032

    Re: Trying to identify the *.BAS file

    For usual software, it is usually enough to check with "Exeinfo PE".
    Often, devs use "UPX". So to decompress, use:


    upx -d your.exe -d output.exe
  39. Replies
    21
    Views
    2,695

    Re: Accessing a class/obj from another .exe

    Malware-writers long time ago don't use all those cheap "stuff" you guys wrote in this topic ^)
  40. Replies
    10
    Views
    1,032

    Re: Trying to identify the *.BAS file

    Mark_N, use any VB decompiler, e.g. this, and see the modules name.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width