dcsimg

Search:

Type: Posts; User: dz32

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: vb6 activex exe CreateObject multithreading by createThread API

    > I really don’t want to learn VC ++

    for what its worth learning how to integrate basic C with VB was one of the best things I ever learned. it opens many new worlds to you.
    Things you have to...
  2. Replies
    6
    Views
    1,682

    Re: Persistent Debug Print Window

    Sure happy to contribute.

    Mods:
    - Sub debugPrintf(ByVal msg As String, ParamArray values() As Variant)
    - Sub debugClear()
    - Sub debugDiv() 'divider
    - Sub debugPrint(ParamArray vArgs() As...
  3. Replies
    6
    Views
    1,682

    Re: Persistent Debug Print Window

    I really like this thanks for sharing. couple possible ideas

    - when the exe runs have it savesetting its current path. The client can then auto start it on demand if not running yet
    - a <CLEAR>...
  4. Thread: pcode internals

    by dz32
    Replies
    6
    Views
    449

    Re: pcode internals

    and a description of the For Loop runtime asm handler: http://sandsprite.com/blogs/index.php?uid=7&pid=484&year=2020
  5. Thread: pcode internals

    by dz32
    Replies
    6
    Views
    449

    pcode internals

    If you are curious about programming language design looking at the vb6 runtime & pcode implementation
    is a very interesting research subject.

    Its a huge and intricate topic that is not well...
  6. Replies
    8
    Views
    476

    Re: Epoch Time to VB6 Date

    cool thanks i was not aware of the limitation. I will add a note in my source
  7. Replies
    8
    Views
    476

    Re: Epoch Time to VB6 Date

    I have been using the following for calculating PE compile timestamps. It has always matched all the other tools I have used.also matches this online tools output: ...
  8. Re: How to know a App is a standard EXE or a ActiveX.EXE

    If you are early binding and know which controls you are using you should be able to figure it out just from the references and object browser.

    If you are trying to figure out more arbitrary...
  9. Replies
    5
    Views
    248

    Re: Live TCP connection constraints

    you can set up an intermittent PING / PONG message to poll the connection and ensure its still up and alert/re-establish on the fly if it breaks down.
  10. Replies
    2
    Views
    243

    Re: paging simple example, please.

    if the recordset was sorted by autoid, then you could save the largest autoid
    in the next page results the query would be where autoid > lastAutoid
    use limit / top clause to only get X number of...
  11. Re: Need help with API Communication Port State reading

    You can enum the current devices using wmi and compare the list with a previous copy to detect removals

    Class supports state information as well:
    ...
  12. Re: Read Actual Data from SAFEARRAY with VARIANT data Type

    you will have to get the array bounds, then walk each element reading the variant
    flags. Each variant will have to be dumped as appropriate for its type.

    also this is worth a read:
    ...
  13. Replies
    16
    Views
    528

    Re: how to initialize mscomm on module with vb6

    remove the word private
  14. Replies
    16
    Views
    528

    Re: how to initialize mscomm on module with vb6

    Here is the class I use as a generic wrapper for mscomm, I would store it as a public instance on your main form and only configure it once on form load or when the user
    selects a new com port (see...
  15. Replies
    6
    Views
    218

    Re: Double type in memory bit layout

    Awesome thanks for the info elroy really appreciate it!
  16. Replies
    17
    Views
    712

    Re: Copy a byte array from one app to another

    Copydata is my favorite IPC method. works with pretty much every language if it can access the windows api.
    samples in java, vb, C, C#, python, and delphi here:
    ...
  17. Replies
    6
    Views
    218

    Double type in memory bit layout

    Does anyone know how the double type is represented in memory at the bit level?

    I saw some description of decimal types and an internal structure it uses. In the below example both values show as...
  18. Replies
    3
    Views
    202

    Re: Collection vs Dictionary

    also consider the extended CollectionEx class from elroy which further blurs the line.
    It gives you access to enumerating keys and other features
    ...
  19. Replies
    6
    Views
    232

    Re: vb6 dll built by Visual Studio 2017

    When you say your exports are showing up correctly in dumpbin, this leads me to believe you are creating a standard C dll same as stdcall windows api and not an activeX library ?

    If this is the...
  20. Replies
    3
    Views
    396

    Re: how to debug vb6 thread in vb6 IDE?

    you could start a background worker process that communicates with the the main UI through IPC and/or shared memory
    not necessarily worth fighting the design of the language unless for exploring or...
  21. Replies
    4
    Views
    412

    Re: where is easy asm lib for vb6 ?Assembly code

    generally i just include a C dll when I need to do more complex / low level stuff, seems to be the safest way to go and easiest to maintain.

    for small simple things you can often get away with...
  22. Replies
    20
    Views
    1,040

    Re: loading UDT is slow

    using UDTs is going to be the fastest way to load thousands of settings per structure.
    if its numbers and byte arrays it should be very fast. strings will probably slow it down more.

    how many of...
  23. Replies
    20
    Views
    1,040

    Re: loading UDT is slow

    i had one project where i had to load a lot of data, not all of it was needed immediately on startup so i started a timer and kept cycling loading it incrementally so UI did not noticeably hang. can...
  24. Replies
    47
    Views
    1,695

    Re: Parsing XML Response Properly

    damn, tough crowd round these here parts
  25. Re: Getting the same reference object using projectinfo through vbheader of the proje

    actually your right hw bp on write during shutdown does show that secondary pointer being set to 0 from RcmResetModulesHelper *RUN_INSTMGR::PpunkPredeclId(v19) = 0;
  26. Re: Getting the same reference object using projectinfo through vbheader of the proje

    sorry to explain better, vbaNew2 will register the new form instance with the runtime as normal and that form instance will show up in the vba.forms collection so the runtime can track it that way...
  27. Re: Getting the same reference object using projectinfo through vbheader of the proje

    short story...

    the default Form2 instance pointer is held in the exe .data section and the offset is specified by the compiler per compile.

    vbaNew2 takes two args and checks this offset, if...
  28. Re: Getting the same reference object using projectinfo through vbheader of the proje

    Use vbanew2 same as runtime does? The pForm2 here will = ObjPtr(Form2) in below example...
    I didnt dig into vbaNew2 or the default vba.forms collection, but vbaNew2 stores an obj ref
    back into the...
  29. Re: How to get the console program to return information from time to time

    i had to read incremental stdout output from one of my C programs and it wasnt coming through until process termination. In the C app i had to make sure to set the stdout to not be buffered


    ...
  30. Re: Fast Artificial Neural Network wrapper for VB6/VBA

    for cases such as this it may be easier to write your own C dll using sample code for the libraries low level C api. you then present a simplified interface from your dll to VB.

    Pros: you control...
  31. Re: Usercontrol Identifying the Hosted vbProject Name

    http://www.vbforums.com/showthread.php?711135-RESOLVED-Get-the-File-Name-of-the-Running-VB6-Application
  32. Replies
    8
    Views
    3,033

    Re: AllocateAndGetTcpExTableFromStack in win 7

    archeology perhaps...
  33. Replies
    9
    Views
    461

    Re: wait unit finished

    Looking at the rtcCloseFile call chain it all looks direct and synchronous



    rtcFileClose -> CloseFiles
    WriteDisk -> _write_lk -> _write -> std WriteFile Api
    _commit ->...
  34. Replies
    3
    Views
    349

    Re: VB6 Code View hides Declaration

    the only things the IDE hides are default control properties like left, caption, text etc,
    some function attributes like default, member help strings, menu items, and form and class names

    all of...
  35. Replies
    22
    Views
    1,134

    Re: string and substring

    Smallish helper function makes it easy



    Private Sub Form_Load()
    Dim myVar As String, retVal As String

    myVar = "this is my long text ab 13256 cd with other stuff in it"
    ...
  36. Replies
    11
    Views
    808

    Re: P-Code vs Native vs Crashing

    you can make a mock up of the resize.ocx with the same class name and methods so you dont
    have to remove the embedded code to test and see if thats the culprit. Any recent CopyMemory
    calls added?...
  37. Re: How to pass a bitmap from C++ DLL to a VB6 app

    Couple problems

    1) as zvoni mentioned to pass a pointer either use byval varptr() or byref in the api declaration
    2) you are passing the address of a single byte, and then copying an entire byte...
  38. Re: How to get parent form's position from form in DLL

    [...]
  39. Replies
    7
    Views
    586

    Re: Stop script control from running

    [...]
  40. Replies
    7
    Views
    586

    Re: Stop script control from running

    [...]
Results 1 to 40 of 344
Page 1 of 9 1 2 3 4



Featured


Click Here to Expand Forum to Full Width