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...
Type: Posts; User: Ben321
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...
What's OLELIB.TLB, and where can I download a copy?
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...
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.
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...
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.
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...
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?
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...
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...
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...
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...
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...
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)...
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...
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...
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...
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.
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....
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...
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...
Nevermind I figured out what to change.
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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,...
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...
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...
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...
Nevermind. I figured it out. See the below linked thread.
http://www.vbforums.com/showthread.php?702677-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...
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...