Search:

Type: Posts; User: neotechni

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    1,145

    Re: How to use Rectangle API function

    I need the ability to draw a rectangle onto an HDC

    What are the normal options for a pen to just be a solid color?
  2. Trying to decode the szRegKey and szOEMVxD of JoyCaps

    So using the joyGetDevCaps API I'm polling data of a game controller, but I'm getting garbage data

    Controller: Saitek Pro Flight Quadrant
    szRegKey: DINPUT.DLL ~q ~qp(D
    szOEMVxD: ...
  3. Replies
    3
    Views
    1,859

    Re: joystick object

    Could you please post the DirectInput code?
  4. Re: [RESOLVED] Memory usage information about my application

    I'm having a problem with PdhVbGetOneCounterPath, it always returns zero and m_sCounterPath is always filled with char(0) instead of what I selected. (I'm using Windows 10)

    I tried...
  5. Replies
    25
    Views
    14,831

    Re: Cpu Utilization in vb6

    Interesting,

    I managed to get the popup to show with the list, but no matter what I click the function that's supposed to return the number of characters returns 0 so the path is always empty.
    ...
  6. Replies
    25
    Views
    14,831

    Re: Cpu Utilization in vb6

    That seems to be code to get the RAM usage of a specific process, this thread is about total CPU usage though
  7. Replies
    25
    Views
    14,831

    Re: Cpu Utilization in vb6

    I don't like WMI either, it takes like a full second to get CPU stats and that's just terrible for real time applications...

    There's gotta be proper API for this, Task Manager probably doesn't use...
  8. Replies
    25
    Views
    14,831

    Re: Cpu Utilization in vb6

    Whoops




    Public Function Append(ByVal Text As String, ByVal TextToAppend As String, Optional Delimeter As String = "|") As String
    Text = TrimS(Text, Delimeter)
    TextToAppend =...
  9. Replies
    25
    Views
    14,831

    Re: Cpu Utilization in vb6

    I took Doogle's code and made it so you can query a specific property



    Private WMI As Object

    'CPU or Core: -1=total of all CPU/Core values, 0 or above=that specific CPU/core value (value =...
  10. Replies
    24
    Views
    9,489

    Re: [VB6] Parse Font Name from TTF File/Data

    The function pvSetResourcePosition is missing from both the text file and this thread.
  11. Replies
    10
    Views
    18,785

    Re: VB6 - Base64 Encoding

    I rewrote this into easier-to-reuse code that can be copy/pasted into a module


    Private Declare Function CryptBinaryToString Lib "Crypt32.dll" Alias "CryptBinaryToStringW" (ByRef pbBinary As...
  12. Re: [VB6] Creation of GIF-animation with the transparent background.

    I love how small the code is. Do you know how to load an image from an stdpicture or hWnd, and save to a byte array instead of a file?
  13. Replies
    33
    Views
    19,605

    Re: [VB6, Vista+] Core Audio Basics

    How do I set it to raise events on volume changes?

    I tried the caudiosessionevents class, but IAudioSessionEvents_OnSimpleVolumeChanged doesn't get raised when I change my volume
  14. Replies
    21
    Views
    9,771

    Re: VB6 with TLS 1.2 support

    I've run into the same problem. I need VB6 to connect via HTTPS and the code works for google, but nothing else...
  15. Re: How do I extract data from .NET programs via their hWnd?

    Properties for window 0x000605B2
    Item Value
    Class Name WindowsForms10.Window.8.app.0.3a9f0c_r16_ad1
    Text
    Rectangle 2351, 172, 3489, 1015
    Size 1138, 843
    Client Rectangle 0, 0, 1138, 843...
  16. Re: How do I extract data from .NET programs via their hWnd?

    Will do. I just have to wait till an admin is in to authorize the program... (Trying to automate something for work)
  17. Re: How do I extract data from .NET programs via their hWnd?

    I've removed personal info, hence the blank spaces.

    171791

    EDIT: I don't know why it's so small...
  18. Replies
    20
    Views
    2,248

    Re: Calling winPcap from vb6

    Don't suppose there was ever a working example?
  19. How do I extract data from .NET programs via their hWnd?

    The app in question has a listview-like control. I say like cause the API to extract data from standard listviews has no effect on it. I'd like to extract all the text.

    I can't even seem to get...
  20. Replies
    109
    Views
    114,841

    Re: [VB6] GDI+ Usage & Samples

    Turns out I was wrong anyway. ParallelBlt worked just fine. Thank you though.
  21. Replies
    109
    Views
    114,841

    Re: [VB6] GDI+ Usage & Samples

    PolygonBlt isn't actually drawing a proper polygon, but a parallelogram. How would I draw an image as a polygon using an array of 4 POINTAPIs to set each corner's coordinate (like DrawPolygon, but...
  22. Re: [VB6, Vista+] Core Audio - Change the system default audio device

    Option Explicit

    Private pPolicyCfg As PolicyConfigClient

    Public Sub var_dump(Text() As String)
    Dim temp As Long
    Debug.Print "var_dump"
    For temp = 0 To UBound(Text)
    ...
  23. Re: Problem with Public UDT: 'Only public user defined types......

    How do you do do #2? I see no class instancing property for a class. Did you mean usercontrol not class?

    I just want to make 2 functions for adding and removing items for a UDT array, so I don't...
  24. Re: [RESOLVED] Waiting for WebBrowser.Busy to be False

    I disagree with all of your points
    making a second topic is spaming
    and i was trying to reach the guy who resolved the issue
    i seriously doubt ppl are so lazy to not help cause of the 2 previous...
  25. Re: [RESOLVED] Waiting for WebBrowser.Busy to be False

    That seems like a waste of space/time when I can just reply here. And the google links for the question already point here, so it potentially helps others
  26. Re: [RESOLVED] Waiting for WebBrowser.Busy to be False

    Dont be sorry for helping, thats what this forum is here for.
  27. Re: [RESOLVED] Waiting for WebBrowser.Busy to be False

    So how did you fix it?
  28. Replies
    6
    Views
    369

    Re: Help connecting to an SQL database

    I added it. But now it says server not found...
    Arg, I just want to connect to a local file
  29. Replies
    6
    Views
    369

    Help connecting to an SQL database

    I'm trying to make a module to handle loading of multiple databases, and multiple recordsets to each database. The redimensioning should work fine as I've used it in many other programs before
    ...
  30. Replies
    8
    Views
    675

    Re: Having some trouble with VB+DirectX8

    I found they are supposed to be the following macros:

    D3DCOLOR_XRGB
    D3DCOLOR_ARGB

    Which do nothing in vb...
  31. Replies
    8
    Views
    675

    Re: Having some trouble with VB+DirectX8

    arg, now it's ignoring my transparency color

    I'm sure the color I'm feeding into

    Set .Texture = D3DX.CreateTextureFromFileEx(D3DDevice, Filename, Width, Height, D3DX_DEFAULT, 0,...
  32. Replies
    8
    Views
    675

    Re: Having some trouble with VB+DirectX8

    I fixed it (we'll see if it stays fixed with different resolution textures) with some tweaking of the renderer srcx/y/width/height values

    1) I'd like to thank you, even though you didn't solve it,...
  33. Replies
    8
    Views
    675

    Re: Having some trouble with VB+DirectX8

    http://sites.google.com/site/neotechni/_/rsrc/1240171847958/Home/iamerror2.png
    The lower image is directx output

    You can notice an extra line of pixels on the left, and top. the bottom doormat...
  34. Replies
    8
    Views
    675

    Re: Having some trouble with VB+DirectX8

    I think it's an issue with DX_RenderTexture, since the same issue shows up when I draw the entire texture.

    I wish DX worked in pixels instead of % of the source...
  35. Replies
    8
    Views
    675

    Re: Having some trouble with VB+DirectX8

    Spritesize = 16
    TilesetList(Tile.TilesetID)
    .pHheight = 1 / the height of the texture
    .Height = 1 / (TextureList(TextureID).Height \ SpriteSize)
    (same goes for pWidth and Width)
    ...
  36. Replies
    8
    Views
    675

    Having some trouble with VB+DirectX8

    http://sites.google.com/site/neotechni/_/rsrc/1240164453045/Home/iamerror.png

    the 0,0 oriented part is the source material the stuff in the square is the output. vb seems to be destroying it...
Results 1 to 36 of 36



Click Here to Expand Forum to Full Width