dcsimg

Search:

Type: Posts; User: The trick

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: [VB6] - Get information about memory usage.

    yokesee,
    Thank you for debugging. I've found the error and fixed it.
    The problem was NtWow64ReadVirtualMemory64 (and maybe others Native APIs) considers the handles as an unsigned value in Win10....
  2. Re: Running speed test-len/lenb/lstrlenW/CopyMemory/GetMem4

    xiaoyao, why do you want to copy a string? What's the end goal? Maybe it's faster to make no copy?
  3. Re: [VB6] - Get information about memory usage.

    The code is updated to support the x64 environment.
  4. Replies
    16
    Views
    7,361

    Re: [VB6] - Trick Advanced Tools.

    loquat,
    Seems we already have this event:
  5. Replies
    3
    Views
    150

    Re: Collection vs Dictionary

    Collection is RB-tree. Dictionary is Hash table.
  6. Replies
    16
    Views
    491

    Re: [VB6] - Signal spectrum

    When you need to play a sound.
  7. Replies
    16
    Views
    491

    Re: [VB6] - Signal spectrum

    When you need to play a sound.
  8. Re: [RESOLVED] Create common event for array of controls

    Maybe SetWinEventHook?
  9. Re: [RESOLVED] Create common event for array of controls

    Okay just i thought you meant API-hijacking. Okay.
    What's the task requires this function (SetWindowsHookEx)?
  10. Replies
    16
    Views
    491

    Re: [VB6] - Signal spectrum

    In this case you need to create a Message-Pumping loop to extract the message from the message queue.


    If you use the CALLBACK_FUNCTION mechanism it's called from a different thread and it...
  11. Re: [RESOLVED] Create common event for array of controls

    What's exactly the Hook-API you meant?


    If you meant array-control events processing then answer - no.
  12. Re: DirecX7 VB6 Plotting out audio data to visualise it from the DirectX buffer

    You can change the MSCOMCTL version in the vbp file.
  13. Re: DirecX7 VB6 Plotting out audio data to visualise it from the DirectX buffer

    jsvenu, i've updated.
  14. Re: how to read string from pointer by CreateFileMapping?

    http://www.vbforums.com/showthread.php?883583-Aliasing-in-VB6&p=5451913&viewfull=1#post5451913
  15. Re: using VbTrickThreading-master examples without the typelibs for Callback and Mar

    If you want to use shared data you can use a shared section like i did here. Then you can map an array to that section and all the instances will have the shared data.
  16. Replies
    16
    Views
    491

    Re: [VB6] - Signal spectrum

    Everything is displayed in the main thread. We get the callback notification from the driver like you could get from a timer control.
  17. Replies
    16
    Views
    443

    Re: Aliasing in VB6

    Elroy, if you have all the arrays with the same type you can just map your aTemp array like here (in this case you couldn't keep tracking to pointer):

    Option Explicit

    Private Const FADF_AUTO As...
  18. Replies
    4
    Views
    259

    Re: White/Pink Noise Generator?

    http://www.vbforums.com/showthread.php?883603-VB6-Signal-spectrum

    I hope it'll be useful.
  19. Replies
    16
    Views
    491

    [VB6] - Signal spectrum

    Hello everyone!
    This project contains the sound signals generator with the spectrum visualizer. The list of signals contains the following forms:


    White noise;
    Pink noise;
    Brown/Red noise;...
  20. Replies
    16
    Views
    443

    Re: Aliasing in VB6

    Still im not sure if i understand correclty:

    Private Type tArr
    a() As Long
    b() As Currency
    End Type

    Private Declare Sub VariantCopy Lib "oleaut32" (ByRef pvargDest As Variant, ByRef...
  21. Replies
    16
    Views
    443

    Re: Aliasing in VB6

    Im not sure if i understand correctly but what's about Variant?
    Like that:

    Option Explicit

    Private Type tArr
    a() As Long
    b() As Currency
    End Type
  22. Re: how to read string from pointer by CreateFileMapping?

    No it supports as many process as possible. Just run the several copies and check the result.
  23. Re: DirectX9 (Direct3D) and the "Present" method, getting error

    Very well. If you don't want to use error trapping you can just change tlb declaration by replacing HRESULT returned value to int/long. The method won't throw errors anymore however you need to check...
  24. Re: vb6 how to getobject(**) by rot,List Rot ,GetRunningObjectTable

    Already did.
  25. Re: form shared in two different executables (projects)

    This it the simple example of OBJRef moniker usage. If you run the host application you can run a child process. You can run either VB6 executable, C++ executable (64 bit) or HTA Script. Then you can...
  26. Re: how to read string from pointer by CreateFileMapping?

    If you want to read an arbitrary BSTR string then you could use ReadProcessMemory because the string can have an arbitrary length.
    If you want to just share a string data between 2 processes you can...
  27. Re: using VbTrickThreading-master examples without the typelibs for Callback and Mar

    By rules you should pass the data between COM-calls. Just if you need to transmit data to other apartment you should call a method of object in other apartment and pass your variable. Marshaling will...
  28. Re: using VbTrickThreading-master examples without the typelibs for Callback and Mar

    What do you expected if you make shared variables? It becomes StdExe with restrictions like you have with my module. Do you see the restrictions of AxExe? Do you see the restrictions of...
  29. Re: how to read string from pointer by CreateFileMapping?

    What's your the end goal? If you want to read a string you need to decide if you want to have a copy or you just want to refer to that variable. To refer a variable you can use Long pointer.
  30. Re: using VbTrickThreading-master examples without the typelibs for Callback and Mar

    Why do you need that? If you want to use shared variable just use STD-EXE and my module.
  31. Re: form shared in two different executables (projects)

    To identify a COM object instance the COM uses monikers. You can use for example an ObjRef moniker to bind two executables.
  32. Re: using VbTrickThreading-master examples without the typelibs for Callback and Mar

    You can't because all the variables are isolated by TLS. Only artificially. If you want to use shared variables you need to use either StandardEXE or Activex-DLL (single threaded) project types. You...
  33. Re: vb6 how to getobject(**) by rot,List Rot ,GetRunningObjectTable

    xiaoyao,
    If you want to just communicate 2 or more executables you can use ObjRef moniker. It requires no administrative rights etc. You can get then reference to other hosts like vbs/vba/32/64 read...
  34. Re: DirecX7 VB6 Plotting out audio data to visualise it from the DirectX buffer

    Long ago i made the GTA-VC sound editor. It can record the sound, play the specified region (with loop as well).
    The code quality is quite low and buggy (because it was created at the dawn of my...
  35. Re: making multithreading work independent of project startup

    It's quite complex procedure. To do that you need to modify the COFF file.
  36. Replies
    5
    Views
    213

    Re: DirectSoundBuffer to work with Arrays

    Please attach the project.
  37. Replies
    4
    Views
    259

    Re: White/Pink Noise Generator?

    I'll do the example.
  38. Re: DirectX9 (Direct3D) and the "Present" method, getting error

    That isn't true. The declaration from TLB:

    [helpstring("Presents the contents of the next buffer in the sequence of back buffers owned by the device.")]
    HRESULT _stdcall Present(
    ...
  39. Replies
    9
    Views
    341

    Re: Faster to use .tlb than .dll

    An API declared with the Declare statement are the Late-bounded ones. You can use it to check if a function exists (like IsWow64Process) and process the result. The TLB-based APIs are Early-bounded...
  40. Replies
    28
    Views
    1,426

    Re: VB6 Threaded Forms (simple Demo)

    Olaf,
    I understood what you said. I just asked you - "what's exactly"? The working with "your" threading isn't differs from an usual object or any other AxExe. It's the same if i'd make like...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width