Search Results - VBForums

Search:

Type: Posts; User: Ben321

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: What exactly does RegisterWindowMessage do?

    So your session is as long as the program that registered the window "message" is running? Or does it refer to your Windows session (requiring you to reboot your computer to clear the registered...
  2. What exactly does RegisterWindowMessage do?

    Does it add the string that's the input parameter to some entry in the Windows Registry (as hinted at by the fact it is called REGISTER window message, instead of STORE window message or SAVE window...
  3. Re: Questions about cleanups of DCs and Bitmaps

    After I replace my own bitmap, with the original default bitmap that came with the DC I created, I then destroy that DC. Does this also destroy the original bitmap? Or do I also need to use a...
  4. Replies
    5
    Views
    1,190

    Re: API Registry HKEY_USERS

    The key for the current user is going to be one of the keys listed in HKEY_USERS, but there's no way to determine which one (it's in an encoded number that looks like...
  5. Replies
    7
    Views
    292

    Re: Question about mouse_event

    I'm not looking to send window messages. I'm looking for a way to tell Windows "the mouse down event just fired at screen coordinates x=100 and y=150" (such that Windows can handle the proper...
  6. Questions about cleanups of DCs and Bitmaps

    So Lets say I create a DC with CreateCompatibleDC, and then create a Bitmap with one of these 3 functions:
    DDB from CreateCompatibleBitmap
    DDB from CreateBitmap
    DIB from CreateDibSection

    Then I...
  7. Replies
    2
    Views
    169

    Simple "Clone Stamp Tool" Demo

    Put 2 PictureBoxes on your form. Make sure they both have these properties:
    Appearance = Flat
    AutoRedraw = True
    Border Style = None
    Picture = a picture that is small enough to fit in a picture...
  8. Re: How do I properly use Toolhelp32ReadProcessMemory?

    I finally realized what's wrong. The declaration

    Private Declare Function Toolhelp32ReadProcessMemory Lib "KERNEL32.dll" (ByVal th32ProcessID As Long, ByRef lpBaseAddress As Any, ByRef lpBuffer As...
  9. Replies
    3
    Views
    192

    Re: Questions about GetDC and GetWindowDC

    But that could be because 1 is the default return, unless it specifically failed. If there is an hWnd to release the DC from it will return 1 or 0. But if an actual hWnd isn't being used as a...
  10. How do I properly use Toolhelp32ReadProcessMemory?

    I've added a reference to Windows Script Host Object Model, and here's the code I use with it for starting the Windows calculator, and getting an object representing the running program too.

    Dim a...
  11. How do I convert ProcID into the name of the EXE file associated with that process?

    I have enumed the processIDs using EnumProcesses. I now want to find the name of the EXE file associated with each processID. How do I do this? I was thinking of GetProcessImageFileName at first,...
  12. Replies
    7
    Views
    292

    Re: Question about mouse_event

    It was my understanding that when a mouse is clicked at a specific point, the mouse sends a signal to the operating system that a pixel at the cursor's x,y coordinates has just been clicked, and then...
  13. Replies
    7
    Views
    292

    Question about mouse_event

    Is there any way to cause this API function (or another similar function) do create a click event at a location where the cursor is not? Lets say my cursor is in the upper right corner of the screen,...
  14. Replies
    4
    Views
    795

    Re: CreateBitmap API

    Sorry to bump such an old thread, but this is the only thread that already exists on these forums, that has any information about the CreateBitmap API function. And I figured it was better to bump an...
  15. Replies
    3
    Views
    192

    Questions about GetDC and GetWindowDC

    When using these for a screencap, you can use the shortcut GetDC(0) or GetWindowDC(0), instead of first calling GetDesktopWinow and then passing the hWnd returned from that to GetDC or GetWindowDC....
  16. Replies
    9
    Views
    303

    Re: Keep getting this error using UDP

    And that would indicate a bug in Winsock. As UDP doesn't use "connections" as such, there should be NO ERROR involving connections, when using UDP. If Winsock THINKS that there's some connection,...
  17. Replies
    3
    Views
    278

    Re: Questions about SOCKS4 proxy

    From my understanding, when a server closes after sending a reply, rhe proper behavior of the client is to treat it as the end of the data from the server (just like in HTTP/1.0), and not to try to...
  18. Replies
    9
    Views
    303

    Re: Keep getting this error using UDP

    Not sure why this works, or if Microsoft intended that it require this to be done, but it does require this additional to be done to guaranty that program B it can "see" the new binding being used by...
  19. Replies
    9
    Views
    303

    Re: Keep getting this error using UDP

    Except it was listening on the port that was being sent to.

    I think the computer just likes to generate this error message.

    When A binds, and then sends to B, B learns the port of A. When A...
  20. Replies
    9
    Views
    303

    Keep getting this error using UDP

    Connection is reset by the remote side.

    Since UDP doesn't even have a connection, this makes no sense at all. It's not TCP.
    Basically, my programs work like this.

    Program A binds to port 8081,...
  21. Replies
    3
    Views
    278

    Questions about SOCKS4 proxy

    I'm trying to make one, but I need to know about how one is expected to behave under different conditions.

    A general description of what I currently understand
    After the handshake communications...
  22. Re: Random number generator reset behaving incorrectly.

    Rnd -1 is supposed to reset it, but it doesn't quite. In theory:


    Private Sub Command1_Click()
    Rnd -1
    Randomize 2

    Debug.Print Int(Rnd * 10)
    Debug.Print Int(Rnd * 10)
    ...
  23. Re: Random number generator reset behaving incorrectly.

    I'm trying to create a repeatable pseudo-random number set (useful for computer game level generation, so that the same random locations for the enemies appear each time I start a new game, but not...
  24. Random number generator reset behaving incorrectly.

    I set the seed to 2 with

    Randomize 2

    Then I print 3 numbers (each between 0 and 9 with this

    Print Int(Rnd * 10)
    Print Int(Rnd * 10)
    Print Int(Rnd * 10)
  25. Passing -1 to hFile parameter in CreateFileMapping?

    According to http://vb.mvps.org/hardcore/html/sharedmemorythroughmemory-mappedfiles.htm if you pass -1 to the hFile parameter in the CreateFileMapping API function, you will "create a file mapping...
  26. Replies
    5
    Views
    514

    Re: How do I find time differences with API?

    Update:
    I just figured it out. Currency uses more than 4 bytes to store data when the number goes negative, so I just had to copy the 4 bytes I needed back to one of the original variables. And it...
  27. Replies
    5
    Views
    514

    How do I find time differences with API?

    I want to create a time difference measurement system, and I'm thinking GetTickCount or timeGetTime would be good for this. A simple technique would be like:


    Dim A as Long
    Dim B as Long

    ...
  28. Re: Is there a fast way to navigate a Collection of objects?

    From my understanding, when you put a number, any number, into the To slot in a For To Next loop, it automatically stores that number for the duration of the running of the loop (automatically...
  29. Re: Is there a fast way to navigate a Collection of objects?

    Is a For Each loop faster than using a For Next loop? If so, why? Doesn't a For Each loop simply use an internal counting variable behind the scenes (so really it's a For Next loop in disguise)?
  30. Is there a fast way to navigate a Collection of objects?

    Ok I have a large Collection of objects (instances of a class called Particle), each representing a particle. Each particle is to follow certain rules, and be updated in each frame. Then it is...
  31. Dark frame subtraction not working quite right.

    Ok so I did an experiment. I recorded an AVI file from my webcam with my hand covering it. I then did the same with it pointed at a periodic-table poster I have on my wall.

    I wrote a VB program...
  32. Replies
    0
    Views
    183

    What is a good palette finding algorithm?

    I want to be able to create a 256 (or 16) color palette based on an image, so that when I convert it to indexed color, it will actually be using colors from the image (not a preset palette like the...
  33. Replies
    20
    Views
    1,083

    Re: WIA Loader and Saver class

    Should I remove the link to the MVPS copy of the zip file from this thread? Or is it ok to leave that link in this thread?
  34. Replies
    20
    Views
    1,083

    Re: WIA Loader and Saver class

    If it is in fact illegal to post here on VBForums, isn't it also illegal for it to be posted on MVPS? And if it is not illegal to post on MVPS, then why is it not legal to post it on VBForums?

    I'm...
  35. Replies
    20
    Views
    1,083

    Re: WIA Loader and Saver class

    If I take the Wia 2.0SDK DLL file out of my Windows System32 (or SysWow64) folder on my Windows 7 computer (on all versions of Windows after XP it just came with the system), and package it with a...
  36. Replies
    20
    Views
    1,083

    Re: WIA Loader and Saver class

    My understanding is that that rule is only for 3rd party EXE and DLL files. Files which are 1st party (created by Microsoft) are not forbidden, and if they are required for a particular VB6 project...
  37. Replies
    20
    Views
    1,083

    Re: WIA Loader and Saver class

    I don't think it is larger than the original. The DLL I have in this zip file with my VB6 class, is the same DLL file that was in the zip file that I originally found it in, which was from another...
  38. Replies
    32
    Views
    2,551

    Re: I need RSA encryption in VB6

    Because it uses the same public exponent, that makes it extremely insecure it says. That means if I want to send the same message to 10 different recipients, each using a different private exponent...
  39. Replies
    32
    Views
    2,551

    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...
  40. Replies
    2
    Views
    215

    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...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.