Search:

Type: Posts; User: hennyere

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: [VB6] - Module for working with multithreading.

    Hello The trick,

    Thank you very much for your project. It's helped a lot here ;)

    Now I need an anointing to stop the threads immediately without waiting for them to finish.

    I tried the code...
  2. Replies
    4
    Views
    833

    Re: Vb6 And Latest MySQL odbc driver

    Bugs Fixed
    Fixed a memory leak generated by reading data. (Bug #111036, Bug #35491247)

    https://dev.mysql.com/doc/relnotes/connector-odbc/en/news-8-1-0.html
  3. Replies
    4
    Views
    833

    Vb6 And Latest MySQL odbc driver

    Hello friends!

    Recently Oracle released the latest version of MySql, which called it 8.1.0 Innovation.

    Along with its release came the ODBC drivers that we normally use in applications built...
  4. Re: Retrieves the root window by walking the chain of parent windows.

    Hi SamOscarBrown,

    Thank you for your messages ;)

    here's what i need



    Public Sub SetForegroundWindowEx(F As VB.Form)
    Dim zHandle As Long
  5. Retrieves the root window by walking the chain of parent windows.

    Hello,

    My question is quite simple:

    I have two forms: Form1 and Form2

    I call Form2 from Form1 as follows:

    Form1 code
    Form2.Show, Me
  6. Replies
    14
    Views
    1,735

    [Compile] About Advanced Optimizations

    Hello,

    I'm here to ask about advanced optimization options. Is it safe to compile by checking all these options?

    186098

    Thank you!
  7. Thread: VB6 Dropper

    by hennyere
    Replies
    7
    Views
    863

    Re: VB6 Dropper

    Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Dim hdcSrc As Long, hOldob As Long
    hdcSrc = CreateCompatibleDC(Picture1.HDC)
    hOldob =...
  8. Thread: VB6 Dropper

    by hennyere
    Replies
    7
    Views
    863

    VB6 Dropper

    Hello,

    I hope everyone is okay.

    Any ideas how to get the color of an image based on mouse position? Something similar to photoshop dropper.

    Thanks
  9. Replies
    8
    Views
    1,036

    Re: CTrickSubclass by The trick

    As I created a class, I changed:

    #Const ImplSelfContained = True

    To

    #Const ImplSelfContained = False
  10. Replies
    8
    Views
    1,036

    Re: CTrickSubclass by The trick

    Everything seems to work fine!



    Option Explicit
    DefObj A-Z
    #Const ImplNoIdeProtection = (MST_NO_IDE_PROTECTION <> 0)
    #Const ImplSelfContained = True
    Private Const MEM_COMMIT As Long =...
  11. Replies
    8
    Views
    1,036

    Re: CTrickSubclass by The trick

    I've just tested your subclass () and am absurdly surprised by the result. Everything seems to work very well.

    I created a “ModernSubclassing.cls” class based on your module, because as I'm...
  12. Replies
    8
    Views
    1,036

    Re: CTrickSubclass by The trick

    Seems like Modern Subclassing Thunk works fine. Does anyone have a solution for CTrickSubclass ?
  13. Replies
    8
    Views
    1,036

    Re: CTrickSubclass by The trick

    I did this on purpose. when the error is generated it is impossible to see it, because the application closes!

    You will not be able to see this error when the exe is compiled. The application...
  14. Replies
    8
    Views
    1,036

    CTrickSubclass by The trick

    Before talking about the problem I wanted to thank and commend the excellent work of The trick.

    I have a set of components in an OCX project and I currently use a “cSelfSubHookCallback” class from...
  15. Re: Best practices to check if an array is empty

    Actually I just need to know if it was dimensioned or not. Example:

    Dim MyArray() As String
    Debug.Print iparseIsArrayEmpty(MyArray)
  16. [RESOLVED] Best practices to check if an array is empty

    Hi people, I hope everyone is well.

    Which of the two options below is safer to check if an array is empty?

    Option 1
    Public Function iparseIsArrayEmpty(FarPointer As Long) As Long
    ...
  17. Replies
    6
    Views
    1,762

    Re: copy files very quickly

    Looking at TeraCopy, I see that it achieves a much higher transfer rate.

    While I was having coffee, I imagined he was breaking the file into pieces and using multitreadings to copy the parts....
  18. Replies
    6
    Views
    1,762

    copy files very quickly

    Hello everyone!

    I need a function, API or DLL to copy files very quickly. It has to be something beyond what VB6 already does.

    I like TeraCopy (https://codesector.com/teracopy) but they don't...
  19. Replies
    12
    Views
    1,794

    GetFileSize - What is the best code?

    Hi,

    What is the best code?



    Public Function GetFileSizeEz(ByVal xFile As String) As Currency
    On Error Resume Next
    Dim xFSO As FileSystemObject, xDetails As Scripting.File
    Set...
  20. Replies
    1
    Views
    622

    Start VB with code window maximized

    Yes, the window is maximized. This is good!

    Is there any registration value to open vb in full screen?

    Regards!
  21. Re: [vb6] Getting AddressOf for VB Class/Object Modules

    Is this routine better than:



    Private Function zAddressOf(ByVal oCallback As Object, ByVal nOrdinal As Long) As Long
    ' Note: used both in subclassing and hooking routines
    Dim bSub As Byte...
  22. Replies
    25
    Views
    19,998

    Re: StreamReader in VB6?

    Hi,

    Can anyone improve this?



    Public Function FileAsStream(ByVal xFilePath As String) As stdole.IUnknown
    Dim A As Long, B As Long, C As Long, xFSO As Object, xTextStream As Object,...
  23. Replies
    4
    Views
    922

    Re: declaring variables and not using them

    I appreciate your response! Very kind of you.

    Could you describe a little more about this, showing some possible bad scenarios? For example: Slowness, crashes, etc.

    I'm sorry for my bad English
  24. Replies
    4
    Views
    922

    declaring variables and not using them

    HI,

    One of the most common mistakes a programmer makes is declaring variables and not using them. But what is the negative effect of this, besides lines of code not used?

    Reagrds!
  25. Replies
    25
    Views
    25,098

    Re: Pure VB6 TreeView Control

    Great job, but it looks like it doesn't have the checkbox property.
  26. Replies
    3
    Views
    1,072

    Re: TreeView With Custom Checkboxes

    Thank you for answering!

    Does not have a way to change the visual style of checkboxes?

    Regards!
  27. Replies
    3
    Views
    1,072

    TreeView With Custom Checkboxes

    Hey,

    Can someone explain to me why the code below works with Microsoft Windows Common Controls 5.0 (SP2) but does not work with Microsoft Windows Common Controls 6.0 (SP6)?



    Option Explicit...
  28. Replies
    2
    Views
    824

    Show form as Modal

    Hello,

    I have a basic question: What is the importance of OwnerForm on the Sub Show?

    For Example:

    Imagine that you want to call a certain function in a second form.

    In Form 1
  29. Replies
    8
    Views
    2,439

    Re: Vb6 compiler an OCX

    I needed that. Thank you!
  30. Replies
    8
    Views
    2,439

    Re: Vb6 compiler an OCX

    If I wanted answers from google I wouldn't have asked here. Please do not miss the opportunity to leave the answer to yourself the next time ;)
  31. Replies
    8
    Views
    2,439

    [RESOLVED] Vb6 compiler an OCX

    Hi people,

    When we are compiling an OCX created in visual basic, what is the diferrence between ThreadModel Single Threaded and Apartment Threaded?

    What is the recommended option when there are...
  32. Replies
    4
    Views
    1,190

    Re: Enable network discovery

    177972


    Additionally I would like to inform you that the code does not work when Windows needs to do this for the first time. Once network discovery and file sharing are enabled, the code is able...
  33. Replies
    4
    Views
    1,190

    Re: Enable network discovery

    of course:

    Set objFirewall = CreateObject("HNetCfg.FwMgr")
    Set objPolicy = objFirewall.LocalPolicy.CurrentProfile

    Set colServices = objPolicy.Services
    Set objService = colServices.Item(0)...
  34. Replies
    4
    Views
    1,190

    Enable network discovery

    Hi!

    How to enable network discovery by vb6?

    I tried https://www.activexperts.com/admin/vbscript-collection/networking/windowsfirewall/#EFPSTWF.htm

    But do not works!

    Regards!
  35. Replies
    4
    Views
    1,098

    Re: open a form with elevated privileges

    Thank you for your message!


    Sometimes we work with a scenario where there is limited access for users, so that a support team intervention is punctual. If you are working on a system, logging...
  36. Replies
    4
    Views
    1,098

    open a form with elevated privileges

    Good morning people!

    I have a project that has 2 forms. When I compile the executable I allow the end user to run my app without elevated privileges, so the app opens.

    It turns out that in...
  37. How can I determine if up IP or Hostname is local or remote?

    Hello,

    How can I determine if a IP or Hostname is local or remote?

    Thank you!
  38. Replies
    1
    Views
    690

    Standard PDF viewer

    Hello people!

    How do I detect the default PDF viewer in vb6?

    The adobe reader gets stuck in memory when using ShellExecute to open a PDF file. Has anyone experienced this same problem?

    Sorry...
  39. Replies
    6
    Views
    653

    Re: intelisense highlights

    Hi, Thank you for your help!

    Please see this video. I think now you will be able to understand me

    https://we.tl/t-GbUytYvWQI

    Regards
  40. Replies
    6
    Views
    653

    Re: intelisense highlights

    Hi! down arrow don't works :(
Results 1 to 40 of 60
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width