Search Results - VBForums

Search:

Type: Posts; User: Ben321

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    25
    Views
    1,501

    Re: I need RSA encryption in VB6

    A bit of a problem I found with that. When I run CreateRandomKeys, and then check each of the outputs, I see that these things have been correctly generated:
    P
    Q
    Modulus
    Secret Exponent (part of...
  2. Re: Crypto API giving me unexplained problems.

    Nevermind. The resource I was using to find the API declarations (API Viewer 2004) has a couple errors in its declaration. It's a 3rd party product that has a lot more functions listed than the...
  3. Crypto API giving me unexplained problems.

    Ok, so I have this program, just to test my ability to get the Crypto API started, and closed properly. And I'm already having troubles.

    Here's my test code.

    Private Declare Function...
  4. Re: Do you need to use GlobalUnlock before using GlobalFree?

    What if it is freed (so that the system thinks it's no longer being used), but left in a locked state, which prevents other applications from using it? If I understand the mechanisms here correctly,...
  5. Some code to calculate the Greatest Common Divisor

    This code sample calculates the GCD of numbers A and B, using the Euclidean algorithm (as described at...
  6. Replies
    7
    Views
    299

    Re: WIA Loader and Saver class

    Unfortunately I didn't download this while it was up on the MS website. I was looking for it one time, and this guy on a forum linked to the MS site, but following the link got me to a page that said...
  7. Replies
    7
    Views
    299

    Re: WIA Loader and Saver class

    I know that some people still have Windows XP, and likely some people writing VB6 programs still are doing so on Windows XP, so I want to make sure they have the opportunity to use my code (which...
  8. Replies
    7
    Views
    299

    WIA Loader and Saver class

    This class allows you to load and save all kinds of image files, including PNG and TIF. It is requires WIA 2.0 which is a Microsoft created DLL file called wiaaut.dll. A complete description of the...
  9. Re: Problem with getting raw image bytes from WIA

    Actually what you mentioned takes the entire file data (meaning the headers and everything that would be present in the file, not just the image data, and any data that is present in there will not...
  10. Problem with getting raw image bytes from WIA

    Ok, so I'm trying to extract the raw RGB data from a known good BMP file that I'm loading through WIA. I've gotten the code like this so far.


    Dim TempImageFile As ImageFile
    dim PixelBytes() as...
  11. Re: Video-Decompression with the VCM (ICM-Win32-API)

    vbRichClient5 is the best addon for VB6 that I've ever seen. Moderators, I don't know what you are thinking removing that link. It is extremely well known DLL file addon for VB6 that much of the...
  12. I need a good way to access DirectShow in VB6, for Webcam use. (DLL creation requst)

    I first tried VFW as that had ways to call up the video format menu, device select menu, etc. What it could not call up is the webcam driver's settings menu (where I can set the exposure, gain,...
  13. Re: Do you need to use GlobalUnlock before using GlobalFree?

    But when using it like that, does it properly decrement the lock-counter (for number of locks on that memory block), or does it leave the lock counter stuck with a now invalid value?
  14. Do you need to use GlobalUnlock before using GlobalFree?

    In the MSDN page describing ICImageCompress I see this mentioned:


    Nowhere does it mention the use of GlobalUnlock. Is it required to use GlobalUnlock before using GlobalFree? Or is this not...
  15. Replies
    25
    Views
    1,501

    Re: I need RSA encryption in VB6

    I may be mistaken, but I believe that this is just an alternate way to use CAPICOM, which gets me back to the same problem I was having before, with it storing info about various keys in appdata...
  16. Re: Video-Decompression with the VCM (ICM-Win32-API)

    @Schmidt How about also an IMCEncoding, as it is needed for the other half of my project.

    And how about adding both IMCEncoding and IMCDecoding as classes in the next released version your...
  17. Replies
    25
    Views
    1,501

    Re: I need RSA encryption in VB6

    That's because the private key is stored in an appdata folder by the system, instead of the program's own folder, and entries are created in the registry, which leaves a lot of stuff behind, which...
  18. Re: Video-Decompression with the VCM (ICM-Win32-API)

    @Schmidt I decided to test this out, so I created a rawRGB test image by converting a standard Windows7 sample image (Tulips.jpg) to rawRGB using Gimp (it can output raw image byte array with no...
  19. What which codec FourCCs does ICOpen recognize by default?

    Without installing any additional codecs what codecs come with windows, and what are their correct FourCCs? I need to know, because ICOpen (as needed for the ICImageCompress function) seems to not...
  20. Re: How do I do a fast YUV to RGB (and reverse) conversion?

    I have saved two raw webcam frames. One of them is the Planar YUV420 as I mentioned in my opening post, and the other is Interleaved YUV422 (YUYV).

    The image size is 640x480. These are raw files...
  21. Replies
    3
    Views
    191

    Re: VFW callback function question.

    Not necessarily. It could be as I stated, that Microsoft removed that specific info on purpose, so that while other companies could use it, they would not know the correct return value, and thus any...
  22. Replies
    3
    Views
    191

    VFW callback function question.

    I am experimenting with VFW in VB6 for controlling Webcams. To access the actual bytes of video stream data, I need to define a callback function according to the specs at...
  23. How do I do a fast YUV to RGB (and reverse) conversion?

    I'm processing video 640x480 from a webcam at 30FPS, and the webcam's raw pixel data is in Planar YUV420 format (as extracted from the webcam driver via Windows API calls). Basically this consists a...
  24. Replies
    4
    Views
    192

    Re: Bug with Forms 2.0 TextBox control?

    The Forms 2.0 text box control behaves in the manner which I would like. I have no interest in using it for Unicode, so that is not my reason for choosing this control for my current application. I...
  25. Replies
    4
    Views
    192

    Bug with Forms 2.0 TextBox control?

    It seems there is a bug with the Microsoft Forms 2.0 Controls version of the TextBox control. Specifically it has to do with the mouse pointer. When moving your mouse pointer over the control, it...
  26. I keep getting an error when trying to create a DHCP server.

    I'm trying to create a simple DHCP server, which will log the DHCP requests of the computers on my network. For this I have used Winsock and set it to UDP mode and used this code to try to bind it.
    ...
  27. Replies
    23
    Views
    3,847

    Re: MJPEG Webcam Receiver

    Is this the right kind of code then for conversions?


    Public Function StrToAry(ByVal Text As String) As Byte()
    Dim Bytes() As Byte
    Dim Bytes2() As Byte
    Bytes() = Text
    ReDim Bytes2(Len(Text) -...
  28. Replies
    2
    Views
    1,728

    How do I use OleCreatePictureIndirect?

    I've heard that it can create an StdPicture or IPictureDisp object, when given the handle to a Bitmap. Unfortunately I don't have the slightest clue how to use this API call. It sounds like it could...
  29. Replies
    2
    Views
    647

    Re: Having trouble with Property Get and Let

    Thanks.
  30. Replies
    2
    Views
    647

    Having trouble with Property Get and Let

    I have a class, and when I try to retrieve a byte array using Property Get, it fires off the corresponding Property Let. And instead of the Property Get sending the property's value (a byte array) to...
  31. Replies
    23
    Views
    3,847

    Re: MJPEG Webcam Receiver

    There's still one other problem. Even if I search for a byte array in a byte array, using InStrB, there is still the issue of getting the string that you want to search for, into the form of a byte...
  32. Replies
    23
    Views
    3,847

    Re: MJPEG Webcam Receiver

    I am not turning down your advice. When you say that something should be different, I simply am explaining why I did it the way I did. Maybe it would have an effect on the advice you will give on the...
  33. Re: How do I parse HTML formated data with MSHTML objects?

    That's C code. I don't know how to convert C code to VB6 code. Also that Write method always give some stupid "function or interface marked as restricted" crap when I try to use it.
  34. How do I parse HTML formated data with MSHTML objects?

    I've added a reference to MSHTML in my VB6 project. I have a full HTML file (starting with the HTML tag and ending with the /HTML tag) on my computer, and I want to parse all the HTML data in the...
  35. Replies
    1
    Views
    968

    Questions about BitmapInfoHeader

    On the MS webpage http://msdn.microsoft.com/en-us/library/windows/desktop/dd183376%28v=vs.85%29.aspx it says that the biSizeImage field can remain unused (left equal to 0) if the compression type is...
  36. Replies
    23
    Views
    3,847

    Re: MJPEG Webcam Receiver

    Actually InStrB works on strings. Notice it isn't called InByteArray. What happens here is behind the scenes it performs a ByteArray-to-String conversion (just no ASCII-to-Unicode conversion), then...
  37. Replies
    23
    Views
    3,847

    Re: MJPEG Webcam Receiver

    Indeed it is nonstandard. I made it myself. It encapsulates a couple API calls and UDTs required by said API calls, as well as several useful functions and properties that use these API calls, so...
  38. Replies
    23
    Views
    3,847

    Re: MJPEG Webcam Receiver

    Each piece of code I used for a very specific reason.

    DoEvents is needed in the image processing sub (not the actual data arrival event itself), so that any later DataArrival events that might...
  39. Re: Why do programs sometimes keep running after closing?

    I've gotten it working without anymore problems it seems. I just now posted the complete source code in the codebank section....
  40. Replies
    23
    Views
    3,847

    MJPEG Webcam Receiver

    Attached to this message is the complete source code for this program. It is designed to receive webcam video, but will work for any video source that has these specifications:
    Server Location =...
Results 1 to 40 of 488
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.