Search:

Type: Posts; User: couttsj

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: VB6 exe

    by couttsj
    Replies
    7
    Views
    266

    Re: VB6 exe

    As Baka has said, there is probably a support file missing on the target machine. If you run the Package & Deployment Wizard, it will tell you what is needed. The ones you have listed are usually...
  2. Replies
    5
    Views
    283

    Re: GMail Using OAuth 2.0

    OAuth2 seems to be entirely oriented to browser usage. I do not want to engage a browser just to satisfy OAuth2. Is there a way around this problem?

    J.A. Coutts
  3. Re: FYI: Scrollbar Theme Fade-in-out (breath light) feature on Win11

    I personally find the disappearing arrows and shrinking scroll bars extremely annoying on Windows 11. I only wish I could disable them.

    J.A. Coutts
  4. Replies
    30
    Views
    751

    Re: Error Trapping in an Executable

    It is not an error trapping routine. PrintDebug only reports what you tell it to report. Assuming you use PrintDebug in the IDE to provide information as you progress through your program, that same...
  5. Replies
    30
    Views
    751

    Re: Error Trapping in an Executable

    That's the whole idea. You send all debug statements to the PrintDebug routine. Without the DbgFlg set, all Debug.Print statements function in the IDE as normal. In the executable, Debug.Print...
  6. Replies
    30
    Views
    751

    Re: Error Trapping in an Executable

    That will work. What I do is convert and Debug.Print lines to PrintDebug. Then it works in the IDE as well as the executable.

    J.A. Coutts
  7. Replies
    30
    Views
    751

    Re: Error Trapping in an Executable

    Forget that line. Comment it out and activate the Msgbox line above it. I copied that routine from a service program that does not permit any interaction with the screen.

    J.A. Coutts
  8. Replies
    30
    Views
    751

    Re: Error Trapping in an Executable

    OpenFile is a universal routine that I use to access files. It handles all the error checking, but can be replaced with:


    FileNum% = FreeFile
    Open FileName For Append Shared As FileNum%

    ...
  9. Replies
    30
    Views
    751

    Re: Error Trapping in an Executable

    What I do is use this routine to log the same debug messages that appear in the IDE when the executable runs. It is controlled by setting the DbgFlg when the executable is created, and should give...
  10. Replies
    5
    Views
    413

    Re: Hypothetical Question

    Because others may find it useful, I decided to post the sample routine I used to find this solution. I created the original "test.jpg" file by stepping through a larger file and terminating it after...
  11. Replies
    5
    Views
    413

    Re: Hypothetical Question

    You hit the nail on the head. By the time I read your response, I had discovered that all I had to do was let the sending routine error out, add a few lines to the error trapping routine to clear...
  12. Replies
    5
    Views
    413

    Re: Hypothetical Question

    The alternative is to add a secondary header, which in this particular application I want to avoid for reasons of efficiency and speed. The small chance of having a file size that is evenly divisible...
  13. Replies
    5
    Views
    413

    [RESOLVED] Hypothetical Question

    TLS has a record size limitation of 2^14 (16,384). Therefore, each record of a file transfer should be that size, except for the very last one. On a multi record transfer, the chances of that last...
  14. Replies
    17
    Views
    474

    Re: Ascii Ansi Chr()

    I can appreciate how confusing all this might seem, and I won't make any excuses for how MS has handled it. I have found that it is best to view characters in Hex. ASCII occupies &H00 to &H7F with...
  15. Re: Shell_NotifyIcon not working on Windows 11

    Thanks for the tip yokesee. It got me pointed in the right direction. When I looked into Settings, Notifications were turned off. So I turned it back on and disabled all the individual notifications,...
  16. [RESOLVED] Shell_NotifyIcon not working on Windows 11

    The following code works like a charm on Windows 8.1, displaying a nice balloon explaining what it is doing in the system tray.


    Private Declare Function Shell_NotifyIcon Lib "shell32" Alias...
  17. Re: Save and Restore a Form's Position When Project Closed and Restarted

    It is intended to not allow you to save a position below the taskbar, and is somewhat arbitrary. If you somehow save a position off screen, you will have to do some registry editing to get it back.
    ...
  18. Re: Save and Restore a Form's Position When Project Closed and Restarted

    Taken directly from my IPWhois program:


    Private Sub Form_Load()
    GetPos Me
    End Sub

    Private Sub Form_Unload(Cancel As Integer)
    SavePos Me
    End Sub
  19. Replies
    44
    Views
    1,636

    Re: The most lacking language feature in VB6

    You guys are very much missing the point. I did not say I wanted to handle byte arrays as strings, I said I wanted to handle them LIKE strings. Instead of me having to translate byte arrays back and...
  20. Replies
    44
    Views
    1,636

    Re: The most lacking language feature in VB6

    That basically changes the byte array to a 16 bit string. I need the 8 bit array to be treated like a string.


    Private Sub Command1_Click()
    Dim s As String
    Dim b() As Byte
    s =...
  21. Replies
    44
    Views
    1,636

    Re: The most lacking language feature in VB6

    What would be a real time saver would be byte arrays that could be handled like strings (data + length as a single printable variable).

    J.A. Coutts
  22. Replies
    6
    Views
    446

    Re: Decipher UDP message based on structure

    The best way to handle unknown data is approach it as byte data. That way you are not dependant on how the operating system might interpret the raw data.

    J.A. coutts
  23. Replies
    12
    Views
    566

    Re: Public Variables in a Class Module

    That is exactly my point. Since you have to identify each target class, what is the point of declaring a variable Public?
    J.A. Coutts
  24. Replies
    12
    Views
    566

    Re: Public Variables in a Class Module

    With a Class Module, there can be several instances of the class running. What would be the point of declaring a variable as Public if you have to identify the particular instance that it belongs to...
  25. Replies
    6
    Views
    446

    Re: Decipher UDP message based on structure

    Data comes in as packets, and packets are handled by Winsock. Winsock hands off the data portion to your program. The packets themselves are either streamed, or handled as a record by your program. A...
  26. Replies
    23
    Views
    1,219

    Re: VB6 Package and Deployment Wizard

    I am not sure where you get your numbers from, but on my machine Version 4.0.30319 of .NET Framework occupies 191,713,876 bytes of disk space. And there are 9 other versions of my machine. On modern...
  27. Replies
    23
    Views
    1,219

    Re: VB6 Package and Deployment Wizard

    What this tells us is that the wizard is trying to add VBA6.DLL to the installation setup, but is having trouble locating it. That is why I suggested copying it to the \Windows\System32\ directory....
  28. Re: VB6 QUESTION: How many here have rolled their own msgbox dialog boxes?

    The biggest problem I had with the MsgBox is that it halted execution until it was responded to. So I came up with a form that would show itself in the lower right corner of the screen. The user...
  29. Replies
    23
    Views
    1,219

    Re: VB6 Package and Deployment Wizard

    Dev101;

    The fact that VBA6.DLL exists in the VB98 directory suggests that VB6 uses it somehow. To test if it is necessary, I renamed it, and VB6 would not load. So it is necessary in it's default...
  30. Replies
    23
    Views
    1,219

    Re: VB6 Package and Deployment Wizard

    Sorry Niya, but I have to disagree with your visualization of VB.net as being smaller and more efficient. In order for VB.net code to work, the target system must have the correct version of .NET...
  31. Replies
    23
    Views
    1,219

    Re: VB6 Package and Deployment Wizard

    The only reason I questioned that was because VB6 is a 32 bit program, and on modern 64 bit systems, Program Files (x86) is used for 32 bit programs, and both these of these directories have...
  32. Replies
    6
    Views
    401

    Re: ntohs not working?

    Private Declare Function ntohs Lib "ws2_32.dll" (ByVal netshort As Long) As Integer


    J.A. Coutts
  33. Replies
    6
    Views
    401

    Re: ntohs not working?

    I got around the issue by declaring the following structures:


    'Basic IPv4 addressing structures.
    Private Type in_addr
    s_addr As Long
    End Type
    Private Type sockaddr_in
    sin_family ...
  34. Replies
    23
    Views
    1,219

    Re: VB6 Package and Deployment Wizard

    You need to supply a little more information. For example, what is the OS version and at what stage does the message appear? Installing VB6 in the "Program Files" directory is a bit odd, unless you...
  35. Replies
    6
    Views
    1,216

    Re: [RESOLVED] clsCrypt.cls

    The SimpleSock.zip download at:
    https://www.vbforums.com/showthread.php?838369-VB6-Simple-Sock
    contains the entire clsCrypt.cls class including the GetbSize routine.


    Public Function...
  36. Replies
    28
    Views
    15,565

    Re: VB6 - Text Editor

    The beautiful thing about writing your own text editor is that you can add whatever features you think you might need. I needed the ability to sort log files, so that is a feature I added for myself....
  37. Replies
    9
    Views
    5,403

    Re: VB6 - Chat Client/Server

    Although these programs use NewSocket, which was replaced by SimpleSock and SimpleServer, I see no reason that it should not still work. Howerver, I no longer support NewSocket so I cannot answer any...
  38. Replies
    16
    Views
    910

    Re: Using Word dictionary for spell check

    I also use an InkEdit Control, as demonstrated in this post:
    https://www.vbforums.com/showthread.php?861405-VB6-Ink-Editor

    J.A. Coutts
  39. Replies
    5
    Views
    416

    Re: vb6 get multiple ip ping speed?

    In the same way that ping has to be enabled on the receiving IP address, the receiver has to be listening on the port you have selected to attempt an abbreviated connection with. The most common are...
  40. Replies
    5
    Views
    416

    Re: vb6 get multiple ip ping speed?

    The time to respond provided by the traditional ping command does not necessarily provide a good value. This is because some (many) routers give ICMP packets a lower priority. This is fully explained...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width