Search:

Type: Posts; User: dz32

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    26
    Views
    665

    Re: Some unreasonable restrictions in VB6

    All your vars are belong to us
  2. Replies
    26
    Views
    665

    Re: Some unreasonable restrictions in VB6

    vb does not have private variables.



    '-------------------- class1 ------------------------------------
    Private a As Long
    Private b As Long

    Sub showMe()
    MsgBox "a=" & Hex(a) & " b="...
  3. Replies
    14
    Views
    473

    Re: UDT to String and Vice-Versa

    The pipe serilization can handle all the complexities that udts support like non fixed length strings,
    Variant arrays that contain different types etc. the get/put support in the runtime is...
  4. Replies
    27
    Views
    628

    Re: Thunk for a CopyMemory replacement?

    The stub vb uses to transfer you to copymemory is already small Chuck of asm you can see it in second half of this blog post

    http://sandsprite.com/blogs/index.php?uid=7&pid=471&year=2019

    Wonít...
  5. Replies
    1
    Views
    175

    Re: Persistent objetcs after state loss ?

    For inspection like on crash or for a pause resume feature?

    It would be possible to save state and restore state in some
    senses but you would have to design things for it and manually implement...
  6. Re: Finding OLB, TLB file paths dynamically at runtime ?

    If itís a known static list to drive an intellisense feature you can ditch the type libs completely and just create a utility to dump them to an easier to use format. I just use text file formats. I...
  7. Re: Finding OLB, TLB file paths dynamically at runtime ?

    You really have to start with the guid for the context of whatís relevant.

    Different libraries can define the same function names and enum names
    Anyway they want. What if a newer version of the...
  8. Replies
    7
    Views
    297

    Re: Iterating through UDT members ?

    Correct itís a 32bit dll only
  9. Re: How to convert this C style UNION in a UDT to VB ?

    glad you got it. this is one way you can watch it:



    #include <stdio.h>
    #include <windows.h>
    #include <conio.h>
    #include <cstddef>

    int main()
  10. Re: How to convert this C style UNION in a UDT to VB ?

    from a quick google, ULONG is 32bit in both 32/64 process
    pointers like Variant* will be 4 bytes/8 bytes in 32/64 process

    if you are expecting oInst, you want the first? 4 bytes from the...
  11. Re: How to convert this C style UNION in a UDT to VB ?

    this is incorrect




    ' union {
    ' ULONG oInst;
    ' VARIANT *lpvarValue;
    ' } DUMMYUNIONNAME;
  12. Re: How to convert this C style UNION in a UDT to VB ?

    yup, you will just have to interpret the data manually later
  13. Replies
    7
    Views
    297

    Re: Iterating through UDT members ?

    so I guess you can get the udt values by name with tli if in ActiveXdll

    https://stackoverflow.com/questions/23797038/found-and-set-value-to-a-udt-member-vb6



    Public Function...
  14. Replies
    7
    Views
    297

    Re: Iterating through UDT members ?

    if it was declared as public in an activex dll then it would be published in the type library.
    you could use tlbinf to get the udt name, field names and types.



    Dim mi As MemberInfo, ri As...
  15. Replies
    31
    Views
    847

    Re: Error Trapping in an Executable

    You can add line numbers to each line and use erl()



    Private Sub Form_Load()
    On Error GoTo hell
    Dim a As Long
    7734 a = "nope"
    hell: MsgBox Erl() & " n1"
    End Sub
  16. Re: How do i download 5 zip at a time rather than my entire list

    You could shell 5 curl instances and watch the process id. Or 5 instances of your own program to do it.

    The normal answer is to use 5 threads but itís a fuss to do with vb
  17. Replies
    31
    Views
    847

    Re: Error Trapping in an Executable

    You could look into setunhandledexceptionfilter api. Especially if the crash is happening outside the vb code
  18. Re: VB6-alike IDE - Has anyone ever created any IDE similar?

    to keep the links together, the integrated javascript engine, IDE and debugger that use the scintinilla wrapper are here : https://github.com/dzzie/duk4vb
  19. Re: transfer user-defined data types between apps

    Schmidt Posted a way to serialize udts directly in memory by writing the data to a pipe

    https://www.vbforums.com/showthread.php?807205-VB6-pipe-based-UDT-serializing-deserializing-InMemory
    ...
  20. Re: VB6-alike IDE - Has anyone ever created any IDE similar?

    The closest I came is working on a scintinilla wrapper with the syntax highlighting, intellisense, code tool tips, and support for breakpoints and debugger line highlighting and advanced...
  21. Re: Why is my application infected according to VirusTotal site?

    Itís hard to get a clean bill of health with almost 70av vendors as long as itís not the major ones I ignore it. Itís bad signatures hello world can come back with detections especially with vb6.
  22. Replies
    7
    Views
    383

    Re: AsyncRead / openURL returns nothing

    I debugged it a little bit and it looked like it used the win api directly

    Edit: ďwindows internet apiĒ for the pedantic.
  23. Replies
    7
    Views
    383

    Re: AsyncRead / openURL returns nothing

    I just tested one of my apps that uses this. It was returning nothing, but on further investigation the server was returning a 301 moved
    message and it just was not following the location header....
  24. Replies
    27
    Views
    705

    Re: How should I rewrite this to not use GoTo?

    if the loop is really long I actually prefer to use a goto label sometimes.
    usually when I dont want to nest if statements another layer deep and not when an exit for will suffice.
  25. Re: Can't borrow Long DataType from VB.Net directly into VB6

    Pass max and min values from .net to vb
    And see how the vb data types handle them it will literally tell you if there is still a problem. If you donít need to do math on them just pass them as a...
  26. Re: COM Visible library fails to access the UI thread?

    The ipc was do an easy form of marshal and synchronization across threads.
    You receive the data and events fine but the ipc test would resolve any threading issues.
  27. Re: COM Visible library fails to access the UI thread?

    If they are in different threads try using ipc instead of a direct callback from .net to vb6
    I always use wm_copy data since itís synchronous.

    http://sandsprite.com/openSource.php?id=70

    It...
  28. Replies
    5
    Views
    650

    Re: Like operator for c/c++ ?

    Thanks Iíll check it out :)

    edit: resolved the sqllite rip converted to wchar_t did the job well.
  29. Replies
    5
    Views
    650

    Re: Like operator for c/c++ ?

    Itís like a simplified regex supporting * to match multiple characters, ? To match any single one
    And a couple more basics:...
  30. Replies
    5
    Views
    650

    Re: Like operator for c/c++ ?

    Some more googling turned up some potential answers.

    One guy did rip the pattern match function from SQLite:
    https://stackoverflow.com/questions/22099599/sql-like-similar-use-in-c

    And I also...
  31. Replies
    11
    Views
    21,746

    Re: Semi VB Decompiler - Source Code + More

    He has a full installer in his open source git repo

    https://github.com/VBGAMER45/Semi-VB-Decompiler/tree/master/Semi%20VB%20Decompiler
  32. Replies
    5
    Views
    650

    [RESOLVED] Like operator for c/c++ ?

    Have a small need for a basic like operator in a c++ program.
    Something relatively simple on the scale of the vb6 or sql like operators. Donít want the complexity of a full regex library.

    Any...
  33. Re: How to clear Err, when there is no way to know where it occurs

    Are you doing any copymemory or other api calls?

    Sounds like a memory corruption problem is causing the program to blow up at a latter time which would explain why no error handlers are catching...
  34. Re: How to handle a callback which uses cDecl as its calling convention

    Yup, any time you invest in learning to integrate c with your vb will be well spent. Itís like putting money in the bank. There is so much c code out there and it can interact very seamlessly with...
  35. Re: How to handle a callback which uses cDecl as its calling convention

    I am pretty sure I have an example of a cdecl callback here:

    http://sandsprite.com/CodeStuff/vb_cdecl.zip

    The best solution is to write a small c dll to wrap the api
    And proxy the results back...
  36. Replies
    1
    Views
    268

    Re: OpenProcess returns DLL error 5

    Thatís probably an access denied error. I didnít Google it explicitly though. The following thread had a couple good thoughts on it:
    ...
  37. Replies
    12
    Views
    570

    Re: Public Variables in a Class Module

    I only use property let /get if I need to protect an actually value or take multiple actions on it being set.

    A public var in a class does indeed get auto wrapped in get/letís by the compiler if...
  38. Replies
    44
    Views
    1,696

    Re: The most lacking language feature in VB6

    unsigned vars and 64 bit values can be solved in a pretty seamlessly C compliant way with a couple extra classes
  39. Replies
    6
    Views
    449

    Re: Decipher UDP message based on structure

    Variable Size is important. Longs are 4 byte reads, integers are 2 byte reads.
    If you gobble up to many bytes with one read you will lose your alignment and start grabbing data from other fields.
    ...
  40. Replies
    10
    Views
    487

    Re: Combobox with a font list with their style

    here it is in its own small project. (minus the color picker)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width