Search:

Type: Posts; User: The trick

Page 1 of 13 1 2 3 4

Search: Search took 0.69 seconds.

  1. Re: How to call IEnumVARIANT::Next() with DispCallFunc() - Without external TLBs

    wqweto, not all the interfaces has the accessible _NewEnum property. For example an array of controls or scrrun.Dictionary.
  2. Replies
    7
    Views
    1,875

    Re: [ASM] "Hello World" in machine codes.

    sancarn, thank you for the response!
  3. Replies
    9
    Views
    339

    Re: Empty Array of UDT?

    Private Type tMyUdt
    z As String
    b As Long
    c As Variant
    j() As Object
    End Type

    Private Function EmptyMyUdtArr() As tMyUdt()

    End Function
  4. Re: How to call IEnumVARIANT::Next() with DispCallFunc() - Without external TLBs

    Option Explicit

    Private Declare Function vbaForEachCollVar Lib "msvbvm60" Alias "__vbaForEachCollVar" ( _
    ByRef cEnum As IUnknown, _
    ByRef vItem...
  5. Re: How to call IEnumVARIANT::Next() with DispCallFunc() - Without external TLBs

    Option Explicit

    Private Const CC_STDCALL As Long = 4

    Private Declare Function DispCallFunc Lib "oleaut32.dll" ( _
    ByRef pvInstance As Any, _
    ...
  6. Re: How to call IEnumVARIANT::Next() with DispCallFunc() - Without external TLBs

    FYI you can use __vbaForEachCollVar and __vbaNextEachCollVar functions as well.
  7. Replies
    15
    Views
    542

    Re: UpdateLayeredWindow() Drove Me Crazy

    You can firstly prepare alpha things then draw the "holes" and "opaques":
    https://www.vbforums.com/images/ieimages/2020/09/5.png
  8. Replies
    15
    Views
    542

    Re: UpdateLayeredWindow() Drove Me Crazy

    All i wanted to show you can draw using only Form.hdc.
    You can draw using Line/Circle/etc and other GDI functions only you should consider the raster operation. When you use vbCopyPen it means the...
  9. Replies
    15
    Views
    542

    Re: UpdateLayeredWindow() Drove Me Crazy

    https://www.vbforums.com/showthread.php?881289-RESOLVED-vbRichClient-Transparent-SplashScreen&p=5438367&viewfull=1#post5438367
  10. Re: [help] VB6, How to search/replace a pattern in the byte array?

    https://www.vbforums.com/showthread.php?820359-signature-search&p=4994843&viewfull=1#post4994843
  11. Re: [VB6] - Module for working with COM-Dll without registration.

    WithEvents.


    What you tell about?


    This question isn't related to this thread. The answer is Running Object Table.
  12. Replies
    9
    Views
    422

    Re: Drawing an Arc

    https://www.cyberforum.ru/post5937340.html
    https://www.vbforums.com/images/ieimages/2020/09/2.gif
  13. Re: Capturing/detecting MouseDown/MouseUp

    FYI you can use DirectInput as well.
  14. Re: [VB6] - Module for working with multithreading.

    The main restriction you shouldn't pass an object reference between threads. The other point is you should track the data and synchronize access. The rules are the same if you would work in C/C++.
  15. Re: [VB6] - Module for working with multithreading.

    lowe517, you can't call the methods of an object between threads without marshaling. You can pass the socket handle between threads so you can create an auxiliary object which lives in the thread....
  16. Replies
    9
    Views
    6,633

    Re: [VB6] - Multi-line standard tooltip.

    Thank you shagratt!
  17. Re: [VB6] - Module for working with multithreading.

    Please attach the small example.
  18. Thread: c2switches

    by The trick
    Replies
    3
    Views
    336

    Re: c2switches

    -nowarn4715 -cap -nodlp -dlp
    -S -dos -Fo# -H#
    -Zl -Brepro -Bd -Fs#
    -Fa# -FA# -pr ...
  19. Replies
    16
    Views
    7,621

    Re: [VB6] DirectSound.

    Yes you could install a mp3 decoder like lame or ACM decoder but most of the systems have that code preinstalled.
  20. Re: How to change resource file data of an executable?

    You can use BeginUpdateResource, UpdateResource, EndUpdateResource.
  21. Re: can we create a lightweight com IDataObject ?

    @JAAFAR,
    the simple hooker:

    Option Explicit

    Public Const PAGE_EXECUTE_READWRITE As Long = &H40&

    Public Type tHookData
    bOriginal(0 To 13) As Byte
    pfnOriginal As LongPtr
  22. Re: can we create a lightweight com IDataObject ?

    Do you have a free memory page within 2GB region of your hooked function with the execute rights?
  23. Re: can we create a lightweight com IDataObject ?

    You can't use simple splicing (JMP WHENEVER) in the 64-bit mode because there is no JMP [64bit] instruction. You could use MOV RAX, 64/JMP RAX or JMP QWORD [64].
    You also can check if there is a...
  24. Replies
    19
    Views
    9,418

    Re: [VB6] - Trick Advanced Tools.

    What's the problem exactly?
  25. Re: How to use a _declspec(dllexport) in VB6?

    Jacob Roman,
    Please attach both projects the C++ which shows the speed improvement and VB6 one.
  26. Re: HOW TO JsonObject to String By vb6?JSON.stringify(JsonObj)

    wqweto,
    That's good. Just i wanted to inform you VarType with vbObject may cause the error because VarType returns the type of the default object property. The more proper solution is to use...
  27. Re: [VB6] - Module for working with multithreading.

    Hello loquat,
    you can't embed a dll file inside a manifest but you can use an embedded typelibrary inside DLL/EXE.
  28. Re: AddressOf for Class Methods (and other VTable exploration)?

    You could use a 64 bit debugger. I can suggest you x64dbg which is the quite user-friendly one.
    Also you can check this class which works in both 32 and 64 bit environment.
  29. Re: [RESOLVED] how add elements to an array structure?

    VarType is evil because it's returns the default property value type instead variant itself.

    The Class1 code:

    ' // Class1
    Option Explicit

    Public Property Get Test() As Variant()
    Test...
  30. Poll: Re: How is the "Error Trapping" setting set in your IDE?

    Kill can remove many files by the pattern:

    Kill "C:\Temp\FireEvents\*" // Remove all the files in the FireEvents directory
  31. Replies
    49
    Views
    5,081

    Re: Converting single bits into a sine waveform

    There is the example how to record a sound.
  32. Replies
    16
    Views
    7,621

    Re: [VB6] DirectSound.

    You can map the only the needed part of the file (see dwFileOffsetLow in MapViewOfFile function). Note it should be multiple to memory allocation granularity. The better way is to encapsulate the...
  33. Re: internals of activex exe buit in CreateObject multithreading vs CreateThread api

    @qvb6, @wqweto

    :bigyello: :blush:
  34. Replies
    16
    Views
    7,621

    Re: [VB6] DirectSound.

    That isn't applicable to this code because it doesn't use threading so we don't have such situation when a thread can change the memory when we read it. Thus, we can safely use this function.
  35. Replies
    49
    Views
    5,081

    Re: Converting single bits into a sine waveform

    http://www.vbforums.com/showthread.php?829387-VB6-TrickSound-class-for-working-with-audio
    http://www.vbforums.com/showthread.php?788933-VB6-Vocoder...
  36. Thread: Game in vb6

    by The trick
    Replies
    17
    Views
    758

    Re: Game in vb6

    This code synchronize the loop with monitor FPS:

    ' //
    ' // VSync
    ' // Vista and later
    ' // By The trick
    ' //

    Option Explicit
  37. Replies
    16
    Views
    7,621

    Re: [VB6] DirectSound.

    baka, that's because you use effects. Just remove the DSBCAPS_CTRLFX flag from the DSBUFFERDESC structure. If you want to use effects you should make the sound bigger (just test the outSize variable...
  38. Replies
    15
    Views
    514

    Re: Wav File Issue

    Please attach the wav files.
  39. Re: [RESOLVED] Store binary data in UserControl?

    BTW there is the possibility to store binary data to a ctl file instead ctx (and other X files) but there are some restrictions. You could make a converter and use a bin file inside an Usercontrol....
  40. Re: internals of activex exe buit in CreateObject multithreading vs CreateThread api

    The approach is the same when you use out-of-box threading.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width