Search:

Type: Posts; User: Ben321

Page 1 of 7 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: PlaySound API + SND_MEMORY + VB6 don't work well together?

    This works for some reason, but there are a couple problems I see, things that will need to be changed to be technically correct.

    1. Your PlaySound declare statement uses ByVal for hModule, and...
  2. Replies
    21
    Views
    571

    Re: Question about Winsock OCX

    What's OLELIB.TLB, and where can I download a copy?
  3. Replies
    21
    Views
    571

    Re: Question about Winsock OCX

    While it may supposedly trigger a "sendcomplete" event even before the send is complete, I've never had this happen. In fact in various software I've made before, my experimental protocols depend on...
  4. Replies
    21
    Views
    571

    Re: Question about Winsock OCX

    I'm not trying to create a new protocol in the sense of TCP vs UDP, but rather a high level protocol that uses TCP as its basis.
  5. Replies
    21
    Views
    571

    Re: Question about Winsock OCX

    I'm considering making my own streaming video protocol for experimental purposes. And I want each video frame to be guarentied to be sent as a separate packet, so that the recieving application can...
  6. Replies
    21
    Views
    571

    Re: Question about Winsock OCX

    Not sure if it's just a "hack", or if it's the official way to separate SendData calls, but I've heard that if you use DoEvents between any two successive SendData calls, they will be sent separately.
  7. Replies
    21
    Views
    571

    Re: Question about Winsock OCX

    I want to disable Winsock's combining of TCPIP packets. When I send data from my client with 2 successive send operations I want it to send 2 distinct packets, such that on the receiving end, it will...
  8. Replies
    21
    Views
    571

    Question about Winsock OCX

    Can I use the API funcition "setsockopt" in conjunction with the Winsock OCX? Or will I have to go all-API for my Winsock implementation, if I choose to use the "setsockopt" API call?
  9. How do I write recursive structure to file? HELP

    I've created a class module with name clsABCD and it contains the below code.

    public Data1 as string
    public Data2 as string
    public Data3 as string
    public Data4 as string
    public NodeA as...
  10. How do I load a private-key file in CAPICOM in VB6?

    Using makecert I have now created key pair test.pvk and test.cer
    The command line for this was:

    makecert -r -n "CN=test1" -sky exchange -sv test.pvk test.cer

    And I already know how to load in...
  11. Re: How do I use CAPICOM to CREATE a certificate?

    Ok, I figured how to make Makecert.exe spit out a private key along with the public key (the Certificate). So now I have 2 files, a private key and a certificate.

    Now I know how to load the...
  12. Re: How do I use CAPICOM to CREATE a certificate?

    Makecert.exe generated a certificate. This is the public key, and it will let me encrypt messages. However I need a private key to decrypt them.

    How do I get the corresponding private key? I need...
  13. How do I use CAPICOM to CREATE a certificate?

    I have capicom.dll on my computer and added a reference to it in VB6 and I successfully got it working with things like HashedData and EncryptedData (works with symmetric encryption only). But to do...
  14. Problem Passing Byte-Array to a Class's Property

    The property is defined in the class with this code:

    Public Property Let PrivateKey(ByRef Prk() As Byte)

    The code in a command button defines an array to pass with this code:

    Dim PrKey(39)...
  15. Replies
    0
    Views
    417

    Simple "Mass on Spring" Simulation

    This code simulates oscillation of mass on a spring and graphs that motion. To use this code, just start a new project, place a picture box on the form, paste the code into the form's Load event, and...
  16. Re: How do I use VB6 to do Asymmetric Encryption?

    I've looked at the RSA encryption algorithm, and some of it requires doing math on 1024 bit integers! VB6 is only capable of doing math on up to 32 bit integers. So a straight forward implementation...
  17. How do I use VB6 to do Asymmetric Encryption?

    RSA or other similar algorithm that has a different encryption key than the encryption key then the decryption key, is known as Asymmetric Encryption. Has anyone created an OCX or DLL or BAS or CLS...
  18. Re: Equivalent of RSACryptoServiceProvider in Visual Basic 6.0

    I can't fine mscorlib.dll in ANY folder on my computer. Please help.
    The OS I'm using is Windows 7 Home Premium x64 with SP1.
  19. I would like to write a HTTP proxy in VB6 using winsock.

    When I go to the advanced settings in Firefox I find a place for configuring it to communicate through proxy server. I thought it would be a simple straight forward thing to write a program for this....
  20. Replies
    11
    Views
    7,911

    Re: physical disk raw access

    Still doesn't work in Windows 7.

    My program is written in VB6. If I try to raw-write to any sector on my USB Jumpdrive that is other than sector-0, it refuses to do so. This means if the sector...
  21. Re: SetFilePointer doesn't work with ReadFile for physical drive reading

    And now I have a new problem. I can read from ANYWHERE on my removable drive (USB thumb flash drive). But I can only WRITE to the first sector Trying to write ANYWHERE ELSE causes the API function to...
  22. SetFilePointer doesn't work with ReadFile for physical drive reading

    Nevermind I figured out what to change.
  23. Re: How do I transfer in-memory data from one program to another easilly?

    I decided to use named pipes. So I created this test program to make sure my understanding of how it works is sound. Unfortunately it doesn't work as expected. See the code below:

    Private Declare...
  24. How do I transfer in-memory data from one program to another easilly?

    I've created these two test programs. Basic operation is this.

    One defines a Long type variable "a" and assigns it a value.
    Then the second one is run and it establishes a TCP connection to the...
  25. Replies
    6
    Views
    1,435

    Re: How do I do a memory dump with API calls?

    It used to be possible with Peek and Poke in classic BASIC for DOS. I'm surprised you can't still do that. Maybe you could have it run some kind of assembly language with a Thunder ASM plugin, and...
  26. Re: Planning on writing an emal server software, but need some help how it all works

    I'm interested in sending mail to the destination via an SMTP server hosted on my own computer. Why route it to ANOTHER SMTP server, when I'm running one on my own computer.

    Also though any mail...
  27. Re: Planning on writing an emal server software, but need some help how it all works

    I want to skip GMail etc and be my OWN EMAIL PROVIDER with my OWN SERVER. But I still want to be able to send messages NOT JUST WITHIN MY LAN! I want to be able to send them to others, who are using...
  28. Re: Planning on writing an emal server software, but need some help how it all works

    No I'm writing an email server and I am using the Winsock control.

    Look at the diagrams (especially the second one, as I am trying to be "service provider 2" in that diagram). I have linked images...
  29. Planning on writing an emal server software, but need some help how it all works

    Ok I understand a VERY BASIC system with SMTP for sending and POP3 for receiving, when the situation is that everyone is using the same service provider (said provider provides the SMTP and POP3 for...
  30. PlaySound API + SND_MEMORY + VB6 don't work well together?

    Ok, so I've loaded the entire contents of a WAV file (headers and EVERYTHING) into a byte array and am now trying to get the PlaySound API calle to play it, and I'm using the SND_MEMORY flag as I...
  31. Re: CopyMemory doesn't work with destination as Array of Fixed Length Strings?

    A userdefined type won't work for me. My input is a variable number of fixed length strings based on what file I'm loading. The number of fixed length strings will vary but the length of each string...
  32. CopyMemory doesn't work with destination as Array of Fixed Length Strings?

    I have a byte array called mybytearray with the ascii (1 byte per character) characters "ABCD1234" and would like to split it into 2 equal parts of 4 characters each so I have an array of fixed...
  33. Replies
    1
    Views
    276

    Trouble parsing JPEG tags

    I'm working on a project to be able to automatically detect JPEG files embedded in other files (such as game resources). In the absence of knowledge of the resource file format, but with knowledge...
  34. Replies
    5
    Views
    820

    Re: Simple PSD File Generator

    And yes the official PSD specification if VERY EXTENSIVE! It can save just about any type of data that can be in an image in Photoshop (layers, masks, alpha channels, thumbnails, slices, text boxes,...
  35. Replies
    5
    Views
    820

    Re: Simple PSD File Generator

    And now I've finished my more complete implementation of the program. It converts Little-Endian numbers to the required Bit-Endian numbers at runtime. This particular sample program generates a...
  36. Replies
    5
    Views
    820

    Re: Simple PSD File Generator

    And I just now finished writing the two needed endian conversion functions, which utilize the CopyMemory API call. Below is the code needed for this.


    Private Declare Sub CopyMemory Lib...
  37. Replies
    5
    Views
    820

    Re: Simple PSD File Generator

    Actually those variables are all part of different structures. For example, NullLen is used 3 times because there are 3 optional structures, who's only mandatory part is the length field. To indicate...
  38. Replies
    1
    Views
    261

    Re: How do I write PSD with MINIMAL CODE

    Nevermind. I figured it out. See the below linked thread.
    http://www.vbforums.com/showthread.php?702677-Simple-PSD-File-Generator
  39. Replies
    5
    Views
    820

    Simple PSD File Generator

    I finally figured out how to do this. It generates a native Photoshop PSD file, 3 channels, 8bits per pixel, 256x256 size image. I set all the header stuff as constants basically (though I didn't use...
  40. Replies
    1
    Views
    261

    How do I write PSD with MINIMAL CODE

    For reading PSD (photoshop native image) files, one's parser should be able to handle every possible type of PSD (be it 8bpp 1bpp 24bpp, whether it has no layers other than "background" or whether it...
Results 1 to 40 of 275
Page 1 of 7 1 2 3 4