Search:

Type: Posts; User: couttsj

Page 1 of 13 1 2 3 4

Search: Search took 0.25 seconds.

  1. Thread: Send Picture

    by couttsj
    Replies
    0
    Views
    126

    Send Picture

    Attached is a Remote Picture Viewer. It is designed to allow you to post pictures to a remote computer. The Receiver is essentially the Picture Viewer here:...
  2. Re: Word-based Spell Check hosed by Windows 10 update

    Assuming that you are using a TextBox, I stopped using MS Word for spell checking long ago. The spell checking that comes with the InkEdit control works much smoother. There are other problems...
  3. Thread: Image Viewer

    by couttsj
    Replies
    2
    Views
    239

    Re: Image Viewer

    Works like a charm.


    Set oPic = LoadPictureBytes(ByteBuffer)

    replaced with

    With New WIA.Vector
    .BinaryData = ByteBuffer
    Set oPic = .Picture
  4. Thread: Image Viewer

    by couttsj
    Replies
    2
    Views
    239

    Image Viewer

    Attached is a Picture Viewer. It does not have a bunch of fancy features, because the intent was to use as much of the screen as possible for the image itself. Inspiration for this program came from...
  5. Re: High and Low WORD and BYTE of a value --- Code Issue

    I really don't understand what you are trying to do. VB does not support unsigned numbers. Any variable with the highest order bit set will be interpreted as a negative number.
    &H7FFFFFFF =...
  6. Re: High and Low WORD and BYTE of a value --- Code Issue

    Not sure what you are trying to do, but it seems like an awful lot of work for a relatively simple task.


    Option Explicit

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory"...
  7. Re: Need Help! Failed to Encode an Image to Base64

    Excellent example! We can now see what the OP was trying to do.

    What is the reason that the Sender program does not work in the IDE?

    J.A. Coutts
  8. Re: Need Help! Failed to Encode an Image to Base64

    The DispByte routine in post #7 was used primarily for trouble shooting. It was never intended to be used for large binary files, and it was also inconvenient as it was tied to the Text Box in the...
  9. Replies
    6
    Views
    258

    Re: Almost found another UTF-8 codec

    Why not just ignore every second byte?


    Private Function ToHex(ByRef Raw As String) As String
    Const HexDigits As String = "0123456789ABCDEF"
    Dim HexText As String
    Dim I As Long
    ...
  10. Replies
    12
    Views
    530

    Re: Convert c to vb6

    I have no idea what you are attempting to accomplish with this, but here goes:


    Private Sub Command1_Click()
    Dim S As SYSTEMTIME
    Dim Lo As Long
    Dim Tmp As Long
    Dim Hi As Long...
  11. Re: Need Help! Failed to Encode an Image to Base64

    I am not sure I understand your issue. As used in JACMail:


    Bas64.Base64Buf = (Mid$(arrx(5), Pt2, Pt3 - Pt2))
    Call Bas64.Base64Decode
    bTmp = Bas64.bBuffer
    Put #NumFile%, ,...
  12. Re: Need Help! Failed to Encode an Image to Base64

    The limit is only on the displaying of byte data. I have always restored the byte array returned as a file. Because the data is decoded and sent to the file system as it is received, I have never...
  13. Re: Need Help! Failed to Encode an Image to Base64

    We are displaying each byte as a hex character separated by a space with a CrLf at the end (16 x 3 + 2 = 50). The purpose in displaying this information is to provide a methodology to confirm that...
  14. Re: Need Help! Failed to Encode an Image to Base64

    I cleaned up the download in post #7 a little. It displays the jpeg byte data in the text box when the file is recovered. Clicking the "Encode" button overwrites the display with the Base64 string...
  15. Re: Need Help! Failed to Encode an Image to Base64

    Base64.cls is available on a number of my posts. One of the latest is:
    https://www.vbforums.com/showthread.php?889710-JACMail4-with-TLS-1-3

    J.A. Coutts

    My apologies. Base64.cls is normally...
  16. Re: Need Help! Failed to Encode an Image to Base64

    I think your problem is trying to deal with the jpeg as a string. Some ANSI values greater then &H7F will get converted to Unicode values in the background without your knowledge. You should read the...
  17. Replies
    10
    Views
    12,204

    Re: Get Windows Version

    In a more understandable mode:


    Option Explicit

    Dim Major As String
    Dim Minor As String
    Dim Build As String

    Private Type OSVERSIONINFOW
  18. Replies
    1
    Views
    237

    HTTP/3 c/w QUIC

    wqweto;

    I may have been a little premature in my reaction to your comments about QUIC. It wasn't until I examined the response from Google that I realized that it was already in use on some Google...
  19. Replies
    2
    Views
    404

    Re: SimpleSock User Control

    NewSocket was based on CSocketMaster by Emiliano Scavuzzo, and CSocket by Oleg Gdalevich. The subclassing was based on WinSubHook2 by Paul Caton. The orginal CSocket & cSocket2 were designed to...
  20. Replies
    2
    Views
    404

    SimpleSock User Control

    Attached is a User Control for SimpleSock. On the surface, a User Control is easier to use and more compact, but that is not the full story. I have hesitated to produce this control, because it makes...
  21. Replies
    6
    Views
    417

    Re: copy files very quickly

    The file system is a cached system. The operating system hands off the data to the file system, which operates separately in the background. The actual writing of the data to disk cannot be made to...
  22. Replies
    106
    Views
    13,069

    Re: Simulate TLS 1.3

    Sorry for the question, but it looks like I already handled it in the server program. The client program is capable of handling any record size up to 65,536 bytes, but the server only dishes out...
  23. Replies
    106
    Views
    13,069

    Re: Simulate TLS 1.3

    wqweto;

    How did you handle maximum record size (2^14)? I think this may be part of my problem.

    J.A. Coutts
  24. Re: [RESOLVED] User Control byte array problem

    The first step in resolving this issue was to revert back to the SimpleSock class and it's associated module. This scenario worked well and verified all the associated code that I had changed. Next I...
  25. Replies
    1
    Views
    218

    Re: Optimization bug in vb6

    Change to "a = &H8000&", and you will get an overflow in the IDE as well.

    J.A. Coutts
  26. Thread: Vb6 - hkdf

    by couttsj
    Replies
    8
    Views
    3,243

    Re: Vb6 - hkdf

    The code you posted doesn't look like "C" code, and as wqweto has said, HKDF doesn't have anything to do with the decryption process itself. It is used in calculating the keys themselves. To...
  27. Replies
    10
    Views
    592

    Re: why loop_2 is faster more than loop_1?

    If you are going to compare two code examples, you must make them equal, as creating the variables and displaying the form takes time. Also, you have dimensioned "tt" as a variant, when it is...
  28. Re: [RESOLVED] User Control byte array problem

    The problem appears to start at the first packet. When testing against OpenSSL, the client reports sending the Client Finished record, but OpenSSL reports a header of "FFFFFFFFFF". Without the...
  29. Re: [RESOLVED] User Control byte array problem

    After fixing the original problem, I ran into another problem with the same routine.

    In a subroutine, this code runs fine:


    bSend = HKDF.Finished
    Crypt.InBuffer = bSend
    ...
  30. Re: VB6 QUESTION: Detecting when PC comes back from sleep mode

    You are on the right track. When a system goes to sleep, one of the things that stops working is the network. If there are any network connections being maintained, they will be interrupted. That...
  31. Re: User Control byte array problem

    Well, you have done it again. I was aware of an issue of transferring a byte array ByRef to a function and using it in further calculations, but this particular situation did not seem to fit that...
  32. [RESOLVED] User Control byte array problem

    I am in the process of converting SimpleSock into a User Control, and I have run into a problem transferring a byte array.

    The User Control contains SimpleSock.cls and modSocket.bas, but we cannot...
  33. Replies
    13
    Views
    2,906

    Re: Colored Command Button

    Sorry, but transparency doesn't interest me at all. As a matter of fact, I wish I could disable it for places like the task bar.

    J.A. Coutts
  34. Re: how to Draw rounded rectangle by vb6 GDI++?Draw a triangle

    See if this helps:
    https://www.vbforums.com/showthread.php?880827-Colored-Command-Button&p=5435607#post5435607

    It may be more than you need.

    J.A. Coutts
  35. Replies
    106
    Views
    13,069

    Re: Simulate TLS 1.3

    wqweto; FYI

    Based on your latest info, I loaded a more complex page:


    Connect: 1 on port: 56094 79219.48
    22:00:19 127.0.0.1 /pages/clouds.htm
    22:00:19 127.0.0.1 /pages/clouds.css
    22:00:19...
  36. Replies
    106
    Views
    13,069

    Re: Simulate TLS 1.3

    Unfortunately, Firefox does not limit the connections, and my research indicates that both Firefox and Chrome were early adopters of 0-RTT. The page that I tested needed 6 connections because Firefox...
  37. Replies
    106
    Views
    13,069

    Re: Simulate TLS 1.3

    Correct me if I am wrong, but multiple connections sounds exactly like what 0-RTT was designed to handle. Even OpenSSL passes 2 New Session Tickets. Having different keys for each element of a Web...
  38. Replies
    106
    Views
    13,069

    Re: Simulate TLS 1.3

    Unbeknownst to me, the browser uses a different port for each element that it requests within a single page, which results in a new connection for each element. Then it closes the last connection,...
  39. Replies
    106
    Views
    13,069

    Re: Simulate TLS 1.3

    The only thing I have to test with is Firefox v86 running on Win 10. My own Web browser does not support TLS 1.3. I downloaded simple Web pages, numerous jpegs, and several pngs. The only problem I...
  40. Replies
    106
    Views
    13,069

    Re: Simulate TLS 1.3

    AESClient and AESServer have been updated on post #12. They no longer simulate RFC 8448 data, but still act as a working pair, as well as functional independents capable of interfacing with the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width