Search Results - VBForums

Search:

Type: Posts; User: Ben321

Page 1 of 12 1 2 3 4

Search: Search took 0.03 seconds; generated 11 minute(s) ago.

  1. 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.
    ...
  2. Replies
    23
    Views
    3,081

    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) -...
  3. Replies
    2
    Views
    1,397

    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...
  4. Replies
    2
    Views
    530

    Re: Having trouble with Property Get and Let

    Thanks.
  5. Replies
    2
    Views
    530

    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...
  6. Replies
    23
    Views
    3,081

    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...
  7. Replies
    23
    Views
    3,081

    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...
  8. 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.
  9. 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...
  10. Replies
    1
    Views
    717

    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...
  11. Replies
    23
    Views
    3,081

    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...
  12. Replies
    23
    Views
    3,081

    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...
  13. Replies
    23
    Views
    3,081

    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...
  14. 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....
  15. Replies
    23
    Views
    3,081

    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 =...
  16. Re: Why do programs sometimes keep running after closing?

    I think I figured a way to fix it. I'm not sure what the problem was exactly, but I've added a couple more things to the code that make sure there are fewer things that can go wrong.
  17. Re: Why do programs sometimes keep running after closing?

    Already tried that with the breakpoint. As I said, it is unpredictable behavior. It only happens the wrong way about 10% of the time, so there is no consistency about it. I'm wondering if the very...
  18. Why do programs sometimes keep running after closing?

    I'm working with a video processing program I wrote that takes video streamed over a network, and processes it frame-by-frame. Each Time the winsock control's data buffer has enough info to...
  19. Replies
    3
    Views
    187

    Re: IPicture SaveAsFile question

    Theoretically though, it should not be able to tell what type of object that is a pointer to. So when I give MyArray(0) as the pointer, it should write the entire structure that comprises an IStream...
  20. Re: What is the internal structure of StdPicture and IPictureDisp?

    So just how are Objects stored in memory? I vaguely remember reading that at the beginning they contain an array of pointers that point to the various parts of the object in memory, but I don't...
  21. Replies
    3
    Views
    187

    IPicture SaveAsFile question

    Why isn't this code working? (generates Automation Error, Unspecified Error)


    Dim Pic As IPicture
    Dim b() As Byte
    Dim BytesSaved As Long

    Private Sub Form_Load()
    ReDim b(4096& * 4096 - 1) 'I...
  22. Re: What is the internal structure of StdPicture and IPictureDisp?

    Thanks. Now can you explain to me the actual internal structure of these objects. When I use ObjPtr I get an actual memory address of the start of the object. So what is actually present in these...
  23. What is the internal structure of StdPicture and IPictureDisp?

    When I use ObjPtr and get the pointer to one of these objects, where is the actual image data stored? What is the internal structure of these objects as they reside in memory?
  24. Replies
    2
    Views
    5,413

    How do I use SendMessage and GetMessage?

    I want to be able to send data from one program to another with SendMessage and GetMessage (in the user message range from &h0400 to &h7fff). The problem is on the receiving end, GetMessage "blocks"...
  25. Replies
    4
    Views
    1,471

    Re: Simplest way to read a joystick in VB6

    I think it would. Fundamentally there's nothing different between a joystick and a game-pad. It's just a different shaped controller.

    Update: I just tried it with the Microsoft Sidewinder Pro...
  26. Replies
    4
    Views
    1,471

    Simplest way to read a joystick in VB6

    This uses the Windows API.

    Below is the code. Place this code your form (Form1), and place a timer control (Timer1) and picturebox control (Picture1) in on the form. Set the timer interval...
  27. Re: What is the best way to implement a trial timer?

    Unfortunately that requires connection to the internet to run the program. Ideally you would want to be able to try your software without needing to be online. It would be nice if there was some way...
  28. What is the best way to implement a trial timer?

    If I write software and want to offer a trial version, what is the best way to do this? The problem with a trial timer is that it can be defeated by a person changing their computer's clock back to...
  29. Replies
    11
    Views
    474

    Re: How do I handle ZIP files in VB6?

    I'm sorry but that does NOT do what I wanted. It does not write it into a ZIP file. It writes it into a ZLIB compressed file. While ZLIB is the algorithm used in ZIP files, ZIP files has a specific...
  30. Replies
    11
    Views
    474

    Re: How do I handle ZIP files in VB6?

    EXACTLY! Do you happen to know of any FREE OCX control or DLL I can get that will do this? I think there are some commercial ones out there, but I want a freeware one.

    What is the one that is used...
  31. Replies
    11
    Views
    474

    How do I handle ZIP files in VB6?

    With so many programs nowdays using ZIP files (often renamed with a different file extension) as the file format for storing output data (Java uses ZIP files called JAR files to hold the executable...
  32. Replies
    0
    Views
    5,742

    How do I embed activex control in html?

    Ok, I made a simple HelloWorld type control in VB6, and just left it with the default name Project1.ocx. I would like to know how to embed my control in a webpage. Does the OCX file have to be in the...
  33. Re: How do I add dependency info to my OCX file?

    So am I supposed to create the dependency file using the P&DW, and then after that use the P&DW to create the install file, and package the dependency file with the install package? How do I do this?...
  34. How do I add dependency info to my OCX file?

    I've created an ActiveX control and compiled an OCX file, and made an installer with the Package And Deployment Wizard. However, my OCX file depends on a DLL file. My OCX file doesn't have any...
  35. Replies
    4
    Views
    927

    Re: Is FlushFileBuffer absolutely needed?

    Interestingly, I've noticed that I get output to a file even if I don't flush the buffer. Is it just "improper" to do this, or can it lead to actual problems? If it can lead to problems, what kind of...
  36. Replies
    4
    Views
    927

    Is FlushFileBuffer absolutely needed?

    If I open a file with CreateFile, write to it with WriteFile, and then close it with CloseHandle, doesn't this automatically cause the data to get written to the file? Or is there some possibility...
  37. Replies
    5
    Views
    720

    Re: RGB, XYZ, and Lab conversions

    Thanks for sharing that. I haven't tried it yet though.
    By the way, you are missing the inverse transformations. Also, is this actually faster than the techniques I used in my program, when used to...
  38. Replies
    14
    Views
    12,310

    Re: physical disk raw access

    Why do you use "\\?\PhysicalDrive2" with the question mark like that? It's supposed to have a period like "\\.\PhysicalDrive2".
  39. Replies
    5
    Views
    720

    RGB, XYZ, and Lab conversions

    This program converts images between RGB, XYZ, and Lab formats. It's quite a large program (due to the 2 huge lookup tables for RGB/Lab conversion), so instead of posting it as an attachment, I've...
  40. Replies
    28
    Views
    1,044

    Re: Visual Basic 6.0 - Time to move on ?

    With the right DLL and OCX files (including the API DLLs that come with windows, as well as 3rd party files), VB6 is an extremely powerful programming language. I tried the .net based versions of VB,...
Results 1 to 40 of 461
Page 1 of 12 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.