Search Results - VBForums

Search:

Type: Posts; User: Ben321

Page 1 of 13 1 2 3 4

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

  1. Replies
    0
    Views
    57

    Question about GetDibits

    When using GetDIBits (or SetDIBits), what does it use the hDC versus the hBitmap parameters for? Don't both of these things (Bitmaps, and Device Context) contain the ability to describe an image? And...
  2. Replies
    1
    Views
    91

    Re: Stdcall wrapper for libfftw3-3.dll

    By the way, here's something to note. The 1st, 2nd, and 3rd dimensions are not as you might expect them to be, in FFTW. In VB6, the first dimension of a multidimensional array is the one who's...
  3. Replies
    1
    Views
    91

    Stdcall wrapper for libfftw3-3.dll

    FFTW is the most popular FFT (fast fourier transform) component out there, but the problem is its DLL file libfftw3-3.dll uses the CDECL calling convention, while VB6 only can handle the STDCALL...
  4. Re: [VB6] TrickSound - class for working with audio.

    There's one other thing I noticed in your TrickSound class. It is this line of code

    mSmpCount = BufferSampleCount - (BufferSampleCount Mod mFormat.nBlockAlign)
    This line appears in both the...
  5. Re: [VB6] TrickSound - class for working with audio.

    Cool VB class, but it has a bug. Everything works, except one key part. And that is your StopProcess function, which is SUPPOSED TO stop sound input buffer getting or sound output buffer setting,...
  6. Replies
    20
    Views
    3,593

    Re: [VB6] Direct3D9.

    Or how about create a single complete typelib for DX9, that has sound and graphics related interfaces? It appears your typelib is really all about graphics (maybe that's all you care about, but it's...
  7. Replies
    20
    Views
    3,593

    Re: [VB6] Direct3D9.

    Your typelib has no sound based interfaces. How do I use dx9 to output and input audio?
  8. Re: How do I install DirectX 8 SDK on Windows 10?

    Ok, I managed to install it manually. Here's how I did it.
    I went into the ZIP file, which you can download at...
  9. Re: How do I install DirectX 8 SDK on Windows 10?

    Actually, I don't remember how I managed to do it, but I installed it on my previous laptop (which ran Win7) a long time ago. It seemed to already have the required DirectX 7 and 8 support built in,...
  10. Replies
    5
    Views
    225

    Why can't I post here

    I just tried posting some code here, and got this error message.
  11. How do I install DirectX 8 SDK on Windows 10?

    I just got a new laptop, and it has Windows 10, so I've decided to move my software development to this latest computer of mine (it's faster, and better in every way than any other PC I have). I...
  12. Replies
    8
    Views
    430

    Re: API based random number generator for VB6

    Thanks for noticing that. The new code is now:

    Private Declare Function CryptAcquireContext Lib "advapi32.dll" Alias "CryptAcquireContextA" (ByRef phProv As Long, ByVal pszContainer As String,...
  13. Replies
    8
    Views
    430

    Re: API based random number generator for VB6

    Ok, so I fixed the constant's name now. Here's the complete code of the module, including the fix.

    Private Declare Function CryptAcquireContext Lib "advapi32.dll" Alias "CryptAcquireContextA"...
  14. Replies
    8
    Views
    430

    API based random number generator for VB6

    The built-in one in VB6 isn't all that good at creating highly random numbers (at least for cryptographic purposes). The crypto API is much better at this. Below is some sample code that you can put...
  15. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    Actually, X is the private key and Y is the public key. Therefore when you do set 0 as the X value via CryptSetKeyParam, in order to force it to create a new random X value (and new Y value, which is...
  16. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    Ok, well I tried your idea. I now have it so that B regenerates its private-public key pair after setting its P and G values to the same as A's P and G values, but still, the end result is that the...
  17. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    I did not do that. An X value is supposed to be generated automatically when you call CryptGenKey to start with. Regenerating X using CryptSetKeyParam is (I believe) only necessary when you want to...
  18. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    Maybe @Schmidt or @dilettante could look over my class's code. They are both VB6 experts.
  19. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    The fact of the matter is that with Diffie Hellman, you don't need to export private key. The only things that need to get shared are the P and G values (if they haven't already been hard-coded on...
  20. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    You should know, that with Diffie Hellman, you can have 2 COMPLETELY unrelated instances of it, each with a completely different private key, and that (as long as they have the same P and G) when you...
  21. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    I tried both techniques. I tried using PLAINTEXTKEYBLOB after converting it to CALC_3DES and also CALC_RC4. I then tried using OPAQUEKEYBLOB with each conversion, and with neither (the actual shared...
  22. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    That will get me the key in plain text. That would be great for sharing it by copy-paste, or other similar means, but in this case, since it is a shared SECRET key (it's only "shared" in the sense...
  23. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    That article doesn't help me. You see, unfortunately, using the shared secret key in-place (within the Microsoft Crypto API), after calculating it from the public and private keys, is not acceptable...
  24. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    nevermind, looks like somebody else posted just as I was posting.
  25. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    Ok, I've got everything right now, up to the point of setting the common values of P and G for both instances of the class, importing a's public key into b, and b's public key into a, and now am just...
  26. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    Wow! Thank you! I never noticed that I had made that mistake.
  27. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    Ok, I've decideed to take what I've learned in my experimenting phase (experimenting just to get familiar with how Crypto API works), and actually do something with it, starting with creating a...
  28. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    I'm using Windows XP. I assumed that PUBLICKEYBLOB Or PLAINTEXTKEYBLOB would do the same thing as PUBLICKEYBLOB, but encode it in base64 so that it could be handled as regular text, whereas...
  29. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    Ok, so now I have another problem. This line of code to export the public key works, as is evidenced by it printing a "1" to the form after execution.

    Print CryptExportKey(hKey, 0, PUBLICKEYBLOB,...
  30. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    I used the definition of CryptGenKey that was provided by the Api Viewer 2004 software. That definition is

    Private Declare Function CryptGenKey Lib "advapi32.dll" (ByRef hProv As Long, ByRef Algid...
  31. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    I do not want to use CNG. I want to use crypto api. CNG is not available in Windows XP and my target audience is XP and newer, not 7 and newer. Enough people still use XP to make it worthwhile...
  32. Re: How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    Here's what I have so far in my testing code, but it fails with the CryptGenKey function. Please explain why this isn't working. I believe I already understood how to do this, via reading the MS...
  33. How do I use Crypto API functionality in VB6, without CAPICOM ActiveX control?

    I heard you can access the RSA crypto functionality of Crypto API, without using CAPICOM, and more importantly without saving the RSA private or public keys to the harddrive (keeping them only in...
  34. Replies
    5
    Views
    320

    Re: Question about Diffie Hellman algorithm

    If you are working with huge numbers though, lets say p=49827634786238946287346827368463782178234687 (don't know if this is prime, but lets say it is just for this example), then that means that you...
  35. Replies
    8
    Views
    383

    Re: Here's my LargeNumbers module's code

    While crypto may not use Divide, it would still be very useful for other tasks involving large numbers. Besides, the Mod function will REQUIRE the use of division, as the very definition of Mod is...
  36. Replies
    5
    Views
    320

    Re: Question about Diffie Hellman algorithm

    What I mean I is any given prime number guarantied to be a primitive root of any other prime number?. If I set p to 7 for example, and I set g to 3, can I be sure that g is a primitive root of p? I...
  37. Re: Suggested improvement for GenPrime function in VB Rich Client DLL

    Maybe the UtilityBank Components section of this forum http://www.vbforums.com/forumdisplay.php?59-UtilityBank-Components would be more appropriate for discussing an ActiveX component, such as VB...
  38. Re: Suggested improvement for GenPrime function in VB Rich Client DLL

    Ok, I tried the new version of VBRC5, and found that most of my suggestions appear to be implemented in the latest version. However, the problem with the prime number generator remains. The function...
  39. Replies
    8
    Views
    383

    Here's my LargeNumbers module's code

    I've created this so I can start working with absolutely large numbers. Though not yet completed, when it is, I'll be able to start experimenting with RSA and Diffie Hellman, two of the most common...
  40. Re: Suggested improvement for GenPrime function in VB Rich Client DLL

    Even ZLib has documentation (though not a dedicated "help file") , in the form of a .h (C header) file that you can read through (even if you aren't using C) which has a TON of comments next to the...
Results 1 to 40 of 499
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.