Search:

Type: Posts; User: The trick

Page 1 of 13 1 2 3 4

Search: Search took 0.52 seconds; generated 38 minute(s) ago.

  1. Re: Injecting a DLL and then calling a class

    Why is this injector not suitable?
  2. Re: Injecting a DLL and then calling a class

    I don't know what you do (i don't see source code of the injector) so i can't tell you the issue exactly. Probably you don't initialize the project context of your DLL so it fails. You could see how...
  3. Re: Injecting a DLL and then calling a class

    How do you inject the DLL? What's your end goal?

    Check this repository.
  4. Re: how to call a vb6 standalone exe module function from c/c++ new thread-reg

    This is the last time i write - please read carefully the example. You just don't read the module description. When you'll have a trouble using the module description you can write here i'll help.
  5. Re: how to call a vb6 standalone exe module function from c/c++ new thread-reg

    InternetCallback is called from wininet.dll.
  6. Re: how to call a vb6 standalone exe module function from c/c++ new thread-reg

    Please read carefully. InternetStatusCallback is called from C/C++ dll in arbitrary thread.
  7. Re: Need help or documentation on vba6.dll functions, Eb api

    Private Declare Function TipCreateReloadableModule Lib "vba6" ( _
    ByVal cProj As IUnknown, _
    ByVal lType As Long, _
    ByVal...
  8. Re: how to call a vb6 standalone exe module function from c/c++ new thread-reg

    https://github.com/thetrik/VbTrickThreading/tree/master/Demos/InternetStatusCallback
    https://github.com/thetrik/VbTrickThreading/tree/master/Demos/Callback...
  9. Re: ReadProcessMem for addresses that exceed the maximum value of long?

    NtWow64ReadVirtualMemory64
  10. Replies
    26
    Views
    969

    Re: set font bold in listbox

    Don't need hook control creation because the Checkbox style already implemented using the ownerdraw technique. See the example.
  11. Replies
    16
    Views
    476

    Re: Create random value from string.

    HashData
  12. Re: Quick question about the Collection class.

    The collection class isn't a has table it's a RB-tree. The algorithm how does collection class work.
  13. Re: 'Class for waiting asynchronous kernel objects' and memory leak

    Hello. Yes there is a problem let me solve it and make it more convenient.
  14. Replies
    11
    Views
    593

    Re: What FRACTAL have you created in VB6?

    BTW this is a 3D-fir-tree generator.

    Ah, i see you already have seen this :blush:
  15. Replies
    11
    Views
    593

    Re: What FRACTAL have you created in VB6?

    https://www.vbforums.com/showthread.php?788213-VB6-Multithreading-is-an-example-of-a-fractal-Julia
  16. Re: Problem with LVM_GETITEM and 64-bit OS, please help

    You have 2 errors.


    PutMem4 tHDI.pszText, ByVal lngBuffer
    PutMem4 tLVI.pszText, ByVal lngBuffer

    ReadProcessMemory(lngProcess, lngBuffer, ByVal StrPtr(strColumns(lngCol)), tHDI.cchTextMax - 2,...
  17. Re: Problem with LVM_GETITEM and 64-bit OS, please help

    You need to use 64-bit structures instead 32-bit ones for a 64-bit process:


    Private Type HDITEM64
    Mask As Long
    cxy As Long
    pszText As Currency
    hbm As...
  18. Re: How to statically link a LIB or OBJ file in VB6!

    If you use exported functions you don't need a link replacement. You can use LinkSwitches option.
    I've already published two approaches (other variant) how to statically link OBJ files with VB6...
  19. Re: Here's how to execute any arbitrary x86 machine code from a VB6 program.

    Why wouldn't use DispCallFunc?
  20. Thread: l wonder

    by The trick
    Replies
    15
    Views
    872

    Re: l wonder

    FFT works only with complex signals. You can either zero one part or mix parts - the result always complex as well as the input. FFT decompose a signal to complex sinusoids.

    A real signal is a...
  21. Re: Need help or documentation on vba6.dll functions, Eb api

    If you use an IUnknown (or any object variable, for example ITypeLib) you don't need to call this function because VB6 releases such references.


    The return value is void so it's the Sub.
  22. Re: Need help or documentation on vba6.dll functions, Eb api

    Try to play with EbSetMode function. This is the example how to get callstack (it requires pause execution).

    Private Declare Function EbSetMode Lib "vba6" (ByVal Mode As Long) As Long
    Private...
  23. Thread: l wonder

    by The trick
    Replies
    15
    Views
    872

    Re: l wonder

    It's better to use several IIR-filters with an envelope detector for few frequency bands. It allows to overlap the frequency bands. Alternatvely you could use the Goertzel algorithm to exclude only...
  24. Thread: l wonder

    by The trick
    Replies
    15
    Views
    872

    Re: l wonder

    See the spectrum visualizer in my signature.
  25. Re: Need help or documentation on vba6.dll functions, Eb api

    No. The zero index is the type of return value.
  26. Re: Need help or documentation on vba6.dll functions, Eb api

    Option Explicit

    Private Declare Function EbGetExecutingProj Lib "vba6" ( _
    ByRef cProject As IUnknown) As Long
    Private Declare Function TipGetFunctionId Lib "vba6" ( _
    ...
  27. Re: How do ActiveX DLLs actually store their exported functions?

    Any VB6-AXDll has 4 functions - DllRegisterServer, DllUnregisterServer, DllGetClassObject, DllCanUnloadNow. When you create an object, a caller (typcially OLE) calls DllGetClassObject and passes the...
  28. Re: Can someone tell me about undocumented sections in VBP files?

    There is no LinkAfter option. This option can be added by my TrickAdvancedTools.


    Any Add-in can add arbitrary sections using WriteProperty method.


    This is a quite non-trivial task. I...
  29. Re: Can someone tell me about undocumented sections in VBP files?

    http://bbs.vbstreets.ru/viewtopic.php?f=9&t=43618



    To make a console application you need to add SUBSYSTEM:CONSOLE
  30. Replies
    7
    Views
    5,958

    Re: [VB6] - Library info.

    Private Sub mnuOpen_Click()
    Dim ofn As OPENFILENAME, Out As String, i As Long

    ofn.nMaxFile = 260
    Out = String(260, vbNullChar)

    ofn.hwndOwner = hWnd
    ...
  31. Replies
    43
    Views
    3,549

    Re: [RESOLVED] picturebox upsidedown-gradient

    This is just the HSL pallete. If you need to draw an arbitrary gradient i can suggest you such function:

    Option Explicit

    Private Sub Gradient( _
    ParamArray vColors() As Variant)
    ...
  32. Replies
    43
    Views
    3,549

    Re: [RESOLVED] picturebox upsidedown-gradient

    Option Explicit

    Private Declare Function ColorHLSToRGB Lib "shlwapi" ( _
    ByVal wHue As Integer, _
    ByVal wLuminance As Integer, _
    ...
  33. Replies
    43
    Views
    3,549

    Re: [RESOLVED] picturebox upsidedown-gradient

    Option Explicit

    Private Declare Function ColorHLSToRGB Lib "shlwapi" ( _
    ByVal wHue As Integer, _
    ByVal wLuminance As Integer, _
    ...
  34. Re: Getting the ball rolling. Which VB6 projects are you working on?

    This is yet another game from Mikle.

    https://mikletuapse.itch.io/prorva-2

    https://www.vbforums.com/images/ieimages/2021/08/1.jpg
    https://www.vbforums.com/images/ieimages/2021/08/2.jpg
  35. Re: How do I properly exit a For-Next loop that contains a With block?

    https://www.vbforums.com/showthread.php?877669-Using-with-object-SomeMethod&p=5409535&viewfull=1#post5409535
  36. Re: [RESOLVED] Can VB simulate the struct of C language?

    This is my favorite VB6-book. Only the point is there are also much approaches which you could simplify/increase performance using newer APIs etc.
  37. Re: If I wanted to have a Windows PC that only ran VB6 programs...

    https://www.youtube.com/watch?v=AB0FaDtHeRE

    Computer creates a music.
  38. Thread: Compiler bug

    by The trick
    Replies
    5
    Views
    637

    Re: Compiler bug

    The empty function returns a Variant value. A variant value can contain an object or an array so the code compiles successfully. You get an access violation error because compiler bug. So to...
  39. Re: How to check if a handle of a GDI object (a pen or brush) is valid?

    How about if you have a brush handle (0x12345) and pass it to third party code. This code calls DeleteObject and create other brush (brushes) which has the same handle value (0x12345). The handle is...
  40. Replies
    11
    Views
    847

    Re: Subclassing in a class module

    https://www.vbforums.com/showthread.php?788193-VB6-Class-for-subclassing-windows-and-classes
Results 1 to 40 of 489
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width