Search Results - VBForums

Search:

Type: Posts; User: Ben321

Page 1 of 11 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    19
    Views
    418

    Re: Why do I keep getting this error?

    What is the trick to getting it to work using a Variant in a UDT? You say it's not easy, but that means you must know how to do it. Please let me in on the secret that you seem to know.
  2. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    After Googling around a bit for it, I found this download link. It's a copy of WIA 2.0's DLL file (wiaaut.dll) and associated help files (having all the documentation needed for using it in VB6) that...
  3. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    How do I add WIA reference to my project?
  4. Replies
    19
    Views
    418

    Re: Why do I keep getting this error?

    A variant SHOULD be able to be set to ANYTHING, including a UDT, so having a UDT with a Variant field, should allow you to at runtime stick a variable of even the same UDT type in there. But it...
  5. Replies
    19
    Views
    418

    Why do I keep getting this error?

    I'm trying to recursively use a user defined type.
    My first attempt was

    Private Type testtype
    t As testtype
    b As Byte
    End Type
    but that didn't work because you can't use something's...
  6. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    How does it determine how big to make the output buffer of a decompression operation, if it's not supplied? The inflate algorithm (decompressing data that has been compressed with the deflate...
  7. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    As for getting LibPNG to work, it's WAY more complicated than ZLib. It requires handling of something called a PNG Stream. I think streams are a .Net structure, and thus streams aren't even supported...
  8. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    How so? I don't get any crashes in my program. The output of decompressing the the compressed data is identical to the input that gets compressed. It seems to be working flawlessly. If the...
  9. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    Actually I realized my inefficient code even before you pointed it out. I created a new project now that is much more efficient. Rather than having the return value of every WinAPI call from...
  10. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    I've put my source code in a zip file attached to this post. Also included in the zip file is zlib1.dll version 1.2.8 (the latest ZLib DLL version at the time of me writing this).
    If you want to...
  11. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    I DID IT! I finally got it to work. I tested it (as before) on zlib1.dll
  12. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    One more problem. I put together all of what I've learned here, and have tested it with that latest version of zlib1.dll. This program should compress the text "This is a test." and then display the...
  13. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    When I'm done with using a DLL file, how do I unload it? There's not corresponding "UnloadLibrary" API command. Also what do I do with the first argument of the DispCallFunc API command? You know,...
  14. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    How do you use the DispCallFunc API for calling a CDECL DLL file? How do I find the offset to the function, the number of parameters, the datatypes of the parameters, and the data type of the return...
  15. Re: What kind of floatingpoint ops should give QNaN versus SNaN as the result?

    When I use a byte array in VB6 and then use it and CopyMemory to explicitly assign an SNaN to a Single type variable, I find that the Print statement displays QNaN, rather than SNaN. And if I assign...
  16. What kind of floatingpoint ops should give QNaN versus SNaN as the result?

    According to http://steve.hollasch.net/cgindex/coding/ieeefloat.html

    What is the difference between an "indeterminate" operation and an "invalid" operation? For example, is 0/0 considered...
  17. Replies
    27
    Views
    657

    Re: Where can I get a copy of LibPNG for VB6?

    Are you personally familiar enough with C compiling that you could compile me a copy of libpng.dll that uses the STDCALL standard for Windows DLL files?
  18. Replies
    27
    Views
    657

    Where can I get a copy of LibPNG for VB6?

    I want to be able to handle PNG image in VB6. Unfortunately the normal form of the LibPNG DLL file is a CDECL type DLL file, which works in C, but not VB. VB expects all DLL files to be of the...
  19. Replies
    78
    Views
    6,066

    Re: ZIP Compression Using Pure Visual Basic

    Zip uses an algorithm called Deflate to do compression. It does the compression in two steps. The first part (LZ77) should be fairly simple. As it goes along it checks for previous copies of the...
  20. Replies
    14
    Views
    708

    Re: LocalAlloc verus GlobalAlloc?

    Ok fixed that. Changed the declaration to ByVal.
  21. Replies
    1
    Views
    499

    How do I assign an array to a DIB?

    I know that to create a DIB I use CreateDIBSection
    I know that to create a DC for the DIB I use CreateCompatibleDC
    Then to select the DIB for use in the DC I use SelectObject
    At this point I can...
  22. Replies
    1
    Views
    166

    Re: What's wrong with this code?

    Never mind. I just saw what was wrong.
    This line:

    GetPix() = Pix()
    should have instead said:

    GetPix = Pix()
  23. Replies
    1
    Views
    166

    [RESOLVED] What's wrong with this code?

    The code works fine when I have this code in the form that is using it.

    Private Function GetPix() As Byte()
    CopyMemory Pix(0, 0, 0), ByVal BitsPtr, 4 * PicW * PicH
    GetPix() = Pix()
    End Function...
  24. Re: How do I remove dropdown menu on Open File common dialog?

    That removes only the read-only entry from that dropdown menu in Win7 Common Dialog Open boxes. It does not remove that dropdown menu (in WinXP it removes the one and only Checkbox that says...
  25. How do I remove dropdown menu on Open File common dialog?

    I notice that in Win7 there is a small drop down menu beside the open button (indicated by a small down-arrow on the Open button) in a Common Dialog Open dialog box. See image at...
  26. Replies
    15
    Views
    414

    Re: I need RSA encryption in VB6

    Also what is the purpose of the property DiffieHellmanSharedSecret if the method DiffieHellmanCreateSharedSecret already exists to output a shared secret?
  27. Replies
    15
    Views
    414

    Re: I need RSA encryption in VB6

    Don't P and G both have to be prime numbers, not just any random number? Furthermore, don't they have to be huge random primes, like the keys? Likewise, don't the keys have to be prime? For example...
  28. Replies
    15
    Views
    414

    Re: I need RSA encryption in VB6

    So you are the guy with the website http://vbrichclient.com/ then ? That's your project? If so, where can I get complete documentation on all the functions, subs, events, etc that it includes? The...
  29. Replies
    15
    Views
    414

    Re: I need RSA encryption in VB6

    What if I want to protect my clients comms, and someone gains physical access to my machine? I would like to be able to have a way of quickly finding and removing the private key, the moment someone...
  30. Replies
    14
    Views
    708

    Re: LocalAlloc verus GlobalAlloc?

    Ok. Nevermind. I've figured out what I did wrong. I didn't use the correct constant when defining permissions on the Client side. Below is the final code I have for my sample Server and Client using...
  31. Replies
    14
    Views
    708

    Re: LocalAlloc verus GlobalAlloc?

    What happens if you do it in the wrong order, and use OpenFileMapping before CreateFileMapping? Do you just get an error? Or do you get a big crash?
  32. Replies
    15
    Views
    414

    Re: I need RSA encryption in VB6

    It would also be useful for creating a secure communications setup with others. I could make something where someone could send me messages. They use the public key, and I use my private key. If an...
  33. Replies
    14
    Views
    708

    Re: LocalAlloc verus GlobalAlloc?

    Ok, I've now fixed the code in my sending application so that it incorporates the changes in your bulleted points (including removing the unneeded word "Global\" at the beginning of the name of the...
  34. Replies
    14
    Views
    708

    Re: LocalAlloc verus GlobalAlloc?

    Thanks for the help.

    Just curious about that UnmapViewOfFile call. Is it really needed? Doesn't closing the handle destroy everything associated with the handle? If not, do I also need to use the...
  35. Replies
    2
    Views
    161

    Re: What is a NULL in WinAPI?

    Thanks for the explanation. In that case then, the solution to the latter problem is to change the "ByRef lpRect As RECT" to a "ByVal lpRect As Long" and then pass it a 0&. Actually technically if it...
  36. Replies
    15
    Views
    414

    Re: I need RSA encryption in VB6

    I would like to be able to write software with copyprotection. I want to be able to write an activation server, and then write some software that will need to be activated. I want to protect the...
  37. Replies
    14
    Views
    708

    Re: LocalAlloc verus GlobalAlloc?

    Ok so I tried this, not with two programs, but just one program, sending and receiving in the same program to make sure I figured out how it works. Problem is, it isn't working. And by not working, I...
  38. Replies
    2
    Views
    161

    What is a NULL in WinAPI?

    Often in API functions there are arguments that can be filled with a data type (like RECT, for graphics areas) or can be passed a NULL to use a default (such as the whole screen, for graphics areas)....
  39. Replies
    15
    Views
    414

    I need RSA encryption in VB6

    I'm looking for a way to use RSA (asymmetric encryption) in VB6. I know CAPICOM can do this in VB6, but this stores the public and private keys in a folder associated with Windows, not in the...
  40. Replies
    14
    Views
    708

    Re: LocalAlloc verus GlobalAlloc?

    That still leaves this question unanswered.
    What then would be a way to created a shared memory space accessible by multiple programs (for sharing data, for example direct sharing of image pixel...
Results 1 to 40 of 419
Page 1 of 11 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.