Search Results - VBForums

Search:

Type: Posts; User: Ben321

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    0
    Views
    102

    HSV and RGB conversion

    Here's some code I wrote that you can place in a Module and use in any graphics program that needs to convert RGB to HSV or HSV to RGB.


    Public Sub RGBtoHSV(ByVal R As Byte, ByVal G As Byte,...
  2. Replies
    3
    Views
    182

    Re: User defined type messing up file reading

    Turns out my problem was not that at all. That padding issue has happened before when I have used CopyMemory to put or get a UDT directly into memory, but I was using a file this time with the actual...
  3. Replies
    3
    Views
    182

    User defined type messing up file reading

    So I define this UDT for reading a wav file.

    Private Type WAVEFORMATEX
    wFormatTag As Integer
    nChannels As Integer
    nSamplesPerSec As Long
    nAvgBytesPerSec As Long
    ...
  4. Re: How to add a System Tray icon to your program

    Those functionalities of detecting clicks require creating custom window functions, and then using SetWindowLong to tell the icon in the System Tray to use this custom function, but for that to work...
  5. Replies
    9
    Views
    1,112

    Re: How do I hide the destination of a shortcut?

    How do I make an MSI package? Doesn't that cost money to buy Microsoft's official MSI package maker?
  6. Replies
    9
    Views
    1,112

    Re: How do I hide the destination of a shortcut?

    How do I designate a "product code", "feature key", and "component code" for my program's EXE file? Do I have to do this in the program's code?
  7. Re: What are the values of the DrawDib constants

    Ok, here's the full list. I finally found it by looking in the INCLUDE folder of my VC++6.0 installation, in a file called VFW.H

    #define DDF_UPDATE 0x0002 /* re-draw the last DIB...
  8. Re: How to add a System Tray icon to your program

    What I did was pick the largest (most recent version) structure size, and then indicate to the API call which fields it should use (versus fields the API call will just pretend weren't even there, in...
  9. What are the values of the DrawDib constants

    When using API functions DrawDibDraw and DrawDibBegin, there is this flags parameter that wants these constants (such as DDF_BUFFER or DDF_ANIMATE). But while the MSDN has written very plainly the...
  10. How to add a System Tray icon to your program

    This won't let you click (or double click) on the system tray (aka notification area) icon to restore your program from a minimized state. It won't let you right click on it to bring up a context...
  11. Replies
    9
    Views
    1,112

    Re: How do I hide the destination of a shortcut?

    I'm trying to figure out how it works so I can create my own installer for my own programs, that will create the necessary shortcuts with hidden links. The strange part is that these MS Office...
  12. Re: How do I correctly remove forms from a Collection?

    Actually the form is unloaded at the instant I press the X button in the upper-right of the window on the created form (instances of Form2). So at that point, it SHOULD be safe to remove it from the...
  13. Replies
    4
    Views
    209

    Problem with vbRichClient5 ActiveX DLL

    Its cSubClass class allows me to easilly (without using any API) create my own window proc for handling window messages. It basically automates the creation of the window proc function in a VB module...
  14. How do I correctly remove forms from a Collection?

    Ok, so if I have multiple forms, and am managing them by adding them to a collection, and then I removed them all with the Remove method for the collection, it still doesn't clear all references to...
  15. Re: How do I make a STATIC type window not ignore the mouse?

    I don't think it's ThunderRT6Main, because I tried:

    CreateWindowEx 0, "ThunderRT6Main", "test", &H10000000, 0, 0, 200, 200, Form1.hWnd, 0, 0, 0&
    and it didn't work.
  16. Re: How do I make a STATIC type window not ignore the mouse?

    Is there a Window class name that corresponds to a VB form type window? Can I just use the string "Form" in the parameter for window class, in the CreateWindowEx function? If not, is there some other...
  17. Re: How do I make a STATIC type window not ignore the mouse?

    I'd still think that if it is configured using the style parameter, to have a titlebar (which is a draggable part of most windows), that it should make the static window dragable. How do I make it...
  18. Re: How do I make a STATIC type window not ignore the mouse?

    Thanks for the info. That SS_NOTIFY, now causes it to take mouse clicks, so that I can actually click it, and not have the mouse click go right through it and affect a window below it. But I still...
  19. How do I make a STATIC type window not ignore the mouse?

    I used CreateWindowEX, and for the Class Parameter, I put in "STATIC". This creates a window with nothing in it, but the label containing the text for that window ("Test Window" in this case). Now...
  20. Replies
    9
    Views
    1,112

    How do I hide the destination of a shortcut?

    Lets say I created a program in VB6, and then wanted to create a shortcut to it, but hide the actual location of the exe file (so rightclicking on the shortcut and going to "properties" doesn't...
  21. 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...
  22. 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...
  23. 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...
  24. Replies
    5
    Views
    1,349

    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...
  25. Replies
    7
    Views
    469

    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...
  26. 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...
  27. Replies
    2
    Views
    313

    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...
  28. 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...
  29. Replies
    3
    Views
    312

    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...
  30. 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...
  31. 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,...
  32. Replies
    7
    Views
    469

    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...
  33. Replies
    7
    Views
    469

    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,...
  34. Replies
    4
    Views
    892

    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...
  35. Replies
    3
    Views
    312

    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....
  36. Replies
    9
    Views
    353

    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,...
  37. Replies
    3
    Views
    356

    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...
  38. Replies
    9
    Views
    353

    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...
  39. Replies
    9
    Views
    353

    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...
  40. Replies
    9
    Views
    353

    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,...
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.