Search:

Type: Posts; User: quickbbbb

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. How to pause code run when use win API callback

    hi~ All

    use keyboard F9 to set breakpoint , win api callback can not stop in breakpoint

    how to do can let win api callback stop in breakpoint ??

    the following image show when code run to...
  2. Replies
    12
    Views
    2,610

    Re: Passing array in Variant by reference

    Ok, I see
    As for you ask me "what's your goal in the end"
    I want to reduce type conversion
    But I found that the "Timer - tt" was very small.
    So don't trouble you to help me the answer

    thanks...
  3. Replies
    12
    Views
    2,610

    Re: Passing array in Variant by reference

    Hi Schmidt

    How to success when use "Dim V1 As Long"

    Private Sub Form_Load()
    Dim out
    Dim V1 As Long
    Dim V2 As Variant

    V1 = 12345
  4. Re: [RESOLVED] whether VC++ has function as like vb6 cdec function ?

    VB6 Cdec() very slow
    VC++ EXP() Log() much faster than vb6
    so I think VC++ Cdec may be also much faster than vb6
  5. Re: whether VC++ has function as like vb6 cdec function ?

    thank you
  6. [RESOLVED] whether VC++ has function as like vb6 cdec function ?

    hi~ ALL

    whether VC++ has function as like vb6 cdec function ?
  7. Replies
    6
    Views
    15,438

    Re: Stdcall wrapper for libfftw3-3.dll

    hi Ben

    'Public Declare Function PlanDFT Lib "FFTW3Wrapper.dll" (ByVal DimCount As Long, ByRef DimSizes As Long, ByRef Src As Double, ByRef Dest As Double, ByVal Sign As Long, ByVal Flags As Long)...
  8. Replies
    24
    Views
    2,084

    Re: why call dll , sometimes dll not work ???

    why ?

    why use varptr will happen error ??

    use varptr should be as the following
  9. Replies
    24
    Views
    2,084

    Re: why call dll , sometimes dll not work ???

    the issue main happen in copy array ( not happen in single Variable )
    dim a(100 ) as long
    dim b(100 ) as long
    copymemory varptr(a(0)) , varptr(b(0)) , 101*4
    ..............

    The previous example...
  10. Replies
    24
    Views
    2,084

    why call dll , sometimes dll not work ???

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" ( _
    ByVal Destination As Long, _
    ByVal Source As Long, _
    ByVal Length As Long)


    win7 64 bit + vb6

    '=========
  11. Re: How to run code use "Allow Unrounded Floating Point Operations" in vb ide ?

    I has a catch err code similar the following


    when uncheck "Allow Unrounded Floating Point Operations" ---> no any error
    when check "Allow Unrounded Floating Point Operations" ----> msgbox...
  12. Re: How to run code use "Allow Unrounded Floating Point Operations" in vb ide ?

    it can let my app speed up 10% , so I like enabled it
  13. How to run code use "Allow Unrounded Floating Point Operations" in vb ide ?

    hi ~ all



    (1)
    1.exe compilered with check "Allow Unrounded Floating Point Operations"
    when running , 1.exe has a error

    (2)
    1.exe compilered with uncheck "Allow Unrounded...
  14. Re: VB IDE : How to find 2 key word ?

    thanks

    I use * + * <> to success find
  15. [RESOLVED] VB IDE : How to find 2 key word ?

    hi ~ ALL

    private sub Form_Load


    a1 = (1 + 2) <> (4 + 2) ' it has "+" and "<>" ( two keywords )
    a1 = (2) <> (4)
    a1 = (2-3) <> (4-3)

    end sub
  16. Replies
    694
    Views
    311,445

    Re: Vb6 , the Future, and what I have discovered

    your cpu is ????



    my cpu : i7 3770 + win7

    tB 109: 20
    VB6 in IDE: 17
    VB6 exe p-code 14.6
    VB6 native fast: 0.83
  17. Replies
    694
    Views
    311,445

    Re: Vb6 , the Future, and what I have discovered

    hi , Wayne

    why arrary is very slow ?



    Dim t As Single
    Dim w As Long
    Dim w2 As Long
    Dim w3 As Long
  18. Re: [RESOLVED] is there any win api to get string memory size as like GlobalSize ???

    you have to do is keep your own record of the allocation ---> I always use the way that you said

    But sometimes it is danger.

    2022/07/02 my app calculate value is 721221
    2022/08/02 my app...
  19. Re: [RESOLVED] is there any win api to get string memory size as like GlobalSize ???

    let my app speed up

    my most issues is always about speed up!

    https://www.vbforums.com/showthread.php?894326-RESOLVED-Why-VB-NET-Power-Function-is-so-fast
    ...
  20. Re: [RESOLVED] is there any win api to get string memory size as like GlobalSize ???

    So is there other win api can replace GlobalSize ?
  21. Re: is there any win api to get string memory size as like GlobalSize ???

    wow! success !!

    thank you much

    =======
    Dim s11 As String
    s11 = "123456789"

    Debug.Print GlobalSize(StrPtr(s11) - 4) 'it show 32
    Debug.Print LenB(s11) + 4 + 2 'it...
  22. Re: is there any win api to get string memory size as like GlobalSize ???

    I want to get string memory size not get string length

    because string may be channe by me use winapi

    example

    =========

    Private Declare Function GlobalSize Lib "kernel32.dll" (ByVal hMem...
  23. [RESOLVED] is there any win api to get string memory size as like GlobalSize ???

    hi all ~


    Private Declare Function GlobalSize Lib "kernel32.dll" (ByVal hMem As Long) As Long

    Private Sub Form_Load()


    Dim a(100) As Long
  24. Re: How to use program to detect struct is contiguous memory or not ?

    thank every one
  25. Re: How to use program to detect struct is contiguous memory or not ?

    my ask is "How to use program to detect" not "use eye to detect"
  26. Re: How to use program to detect struct is contiguous memory or not ?

    yes
    I mean type members is stored contiguously in one place ( no any other pointer )
  27. [RESOLVED] How to use program to detect struct is contiguous memory or not ?

    Hi~ ALL

    How to use program to detect data in struct is contiguous memory or not ?

    '=====

    Private Type Type_a1
    '---> is contiguous memory
    a1 As Long
    a2(11) As Long
  28. Re: How to use vide.codemodule add file

    Wow, can not work in real project
    Thanks
  29. Re: How to use vide.codemodule add file

    My vb6 ide can not find vbinstance
    How to get the vbinstance ?
  30. [RESOLVED] How to use vide.codemodule add file

    Hi. All
    Dim a as new vbide.codemodule
    A.addfromfile “c:zzz.txt”
    But it show “activex error”
    Please give me a sample code
    Thanks
  31. Replies
    15
    Views
    1,569

    Re: [RESOLVED] How to let call sub more fast ?

    good! my app speed up 10%
  32. Replies
    15
    Views
    1,569

    Re: How to let call sub more fast ?

    I find a important thing

    MsgBox Str(Timer - tt) ---> change as MsgBox Str(Timer - tt), , Str(k) --> let freebasic compiler not neglect k


    test again call sub =============



    For...
  33. Replies
    15
    Views
    1,569

    Re: How to let call sub more fast ?

    (1) yes , all run in *.EXE
    (2) use byref

    vb6 = 0.2958 second
    freebasic = 0.002621 second
  34. Replies
    15
    Views
    1,569

    Re: How to let call sub more fast ?

    it show the following in info.txt

    Compiler 1.09.0 Beta 2
    gcc 9.3
  35. Replies
    15
    Views
    1,569

    Re: How to let call sub more fast ?

    sorry

    vb6 is 0.0552 second ( not 0.552 second , I lost one 0 )
  36. Replies
    15
    Views
    1,569

    Re: How to let call sub more fast ?

    vb6 = 0.0552 second
    freebasic = 0.000116 second
  37. Replies
    15
    Views
    1,569

    Re: How to let call sub more fast ?

    yes !!!
  38. Replies
    15
    Views
    1,569

    [RESOLVED] How to let call sub more fast ?

    hi ~ all





    Private Sub Form_Load()

    Const QQ = 100000000
  39. Replies
    10
    Views
    1,760

    Re: why vb6 build very slow on win10 ?

    my vb6.exe not activate "compatible to XP" or "compatible to Win7"
  40. Replies
    10
    Views
    1,760

    why vb6 build very slow on win10 ?

    hi~ all

    compile the same vb6 vbp file ( code line = 120,000 )

    (1) win7 : 20 sec
    (2) win10 : 50 sec
Results 1 to 40 of 240
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width