Search:

Type: Posts; User: vbwins

Page 1 of 7 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: Create an object array with a length of zero (or UBound = -1)

    It might seem like a silly question but what problem are you trying to solve? This tells you if an array is empty (not dimensioned) without any exceptions or API calls.


    If Not Not ArrayName then...
  2. Re: VB6 A simple approach to Lighweight-Classes

    This looks interesting. Excuse my ignorance but does this buy speed, save memory or both?

    cheers
  3. Replies
    6
    Views
    454

    Re: Problem with winPcap callback

    Alas pcap_dispatch is no faster then pcap_next_ex. dispatch does collect multiple packets but instead of calling you back once with a bunch of packets it calls you back for each packet. In real life...
  4. Re: How to handle a callback which uses cDecl as its calling convention

    I did read the description and thank you for your help. I take it that the patch is only applied when the add in is enabled?

    I am also not sure how to build the add in as I have never done this...
  5. Re: How to handle a callback which uses cDecl as its calling convention

    Thanks trick but the problem is in the other direction. A winpcap c++ dil,is calling back a vb function but using cdecl to do so.
  6. Replies
    6
    Views
    454

    Re: Problem with winPcap callback

    No don't have a type lib. Not sure how that would help as its calling VB back but using cDecl.
  7. Re: How to handle a callback which uses cDecl as its calling convention

    Looks like its a bit above my kindergarten c++ Pretty much what I have to achieve is that winpcap calls the c++ callback which then std calls my vb function.

    Its a start. thanks
  8. Re: How to handle a callback which uses cDecl as its calling convention

    Thanks a ton will take a look.
  9. [RESOLVED] How to handle a callback which uses cDecl as its calling convention

    Further to this does anybody know how to handle this. I can only assume that this is my problem at this stage.

    WinPcap callbacks are called using cDecl
    ...
  10. Replies
    6
    Views
    454

    Re: Problem with winPcap callback

    I don't know what I am doing wrong. Somehow my call to pcap_dispatch or the sig of the callback is wrong.

    The first time the callback gets called its all good but after that its a mess. Could it...
  11. Replies
    6
    Views
    454

    Re: Problem with winPcap callback

    With byVal


    Public Sub callBack(ByVal u_char As Long, packetHeader As packetHeaderType, ByVal packetData As Long)
  12. Replies
    6
    Views
    454

    [RESOLVED] Problem with winPcap callback

    I have a project that uses this and I am in the process of migrating it from pcap_next_ex which only returns one packet to pcap_dispatch which can return multiple packets thus reducing the number of...
  13. Re: VB6 compiled app gives Class error on a few PCs

    Is this a machine you have control over? I am guessing not.
  14. Replies
    44
    Views
    1,695

    Re: The most lacking language feature in VB6

    I am on the unsigned variable side. Also lack of multi threading support in ordinary code without api gymnastics
  15. Replies
    44
    Views
    1,695

    Re: The most lacking language feature in VB6

    Public Function actionArrayDimensioned(action() As actionArray) As Long

    10 On Error GoTo errorHandler

    20 If Not Not action Then

    30 actionArrayDimensioned =...
  16. Re: Simple and fast, lightweight HashList-Class (no APIs)

    I have modified the class to be string,string so no use of variants.

    Would the code below be correct for adding remove? I am not sure I have it correct..

    EDIT - Actually I think this is...
  17. Re: Simple and fast, lightweight HashList-Class (no APIs)

    I used the code blocks. I guess that was a mistake on my behalf?
  18. Re: Simple and fast, lightweight HashList-Class (no APIs)

    Compiled for fast code with all optimizations on.
  19. Resurrection - performance vs dictionary

    Hi Guys,

    I was hoping to be able to use this as a faster string,string value pair kind of thing than scripting.dictionary so I altered the code to be string,string and for me it is never faster...
  20. Re: [VB6] Event Tracing for Windows - Monitoring File Activity with ETW

    I am getting v2 back for connections and v4 for new process
  21. Re: [VB6] Event Tracing for Windows - Monitoring File Activity with ETW

    If you look at the structure definitions I included endBuffer byte array is located after the directoryTable base in both the 32 bit and 64 bit structures. I am not checking the header version. This...
  22. Re: [VB6] Event Tracing for Windows - Monitoring File Activity with ETW

    After a lot of messing around I found the following. Sid is located at offset endBuffer(20) in 64 bit and endBuffer(8) in 32 bit. I then use getLengthSid API and add the offset and the length of the...
  23. Re: [VB6] Event Tracing for Windows - Monitoring File Activity with ETW

    The windows 7 version is 6.1 build 7601 32 bit. Its an old VM. My understanding is that all 32 bit versions will be using long?
  24. Re: [VB6] Event Tracing for Windows - Monitoring File Activity with ETW

    That suggested approach does not really work. I put together something to dump the data and ran telnet. One of the crazy things is that the image name appears to not be in Unicode but the command...
  25. Replies
    5
    Views
    485

    Re: My vb6 no longer compiling

    Just a shot in the dark. Check the handle count of all processes in task manager. If you have a big handle leak in something this will cause VB to crash
  26. Re: [VB6] Event Tracing for Windows - Monitoring File Activity with ETW

    Thanks guys. Will take a look at that. Both the Win7 and XP versions are 32 bit though.

    I don't need the SID but I need to know where it ends so I can allocate space and get ImageFileName &...
  27. Re: [VB6] Event Tracing for Windows - Monitoring File Activity with ETW

    This API is a real mixed bag and requires some tinkering to make it reliable across Win versions.

    I was trying to use it to get quicker notification of a new process than using a WMI instant...
  28. Re: [VB6] CSharedMemory - class for dynamic memory allocation in shared memory

    Looks good. Any chance you have a sample of usage?
  29. Replies
    10
    Views
    1,188

    Re: Array Information

    The below saves throwing and catching.

    If Not Not arrayName then
    Its dimensioned
    else
    it not dimensioned
    end if
  30. Replies
    48
    Views
    1,482

    Re: Arrays in Far Memory

    No such thing as a free lunch then. thanks
  31. Replies
    48
    Views
    1,482

    Re: Arrays in Far Memory

    Interesting. Could this be expanded to be utilized with a large UDT array or is that a bridge too far.

    Edit

    I have a large UDT array that is shared among multiple threads (structure is...
  32. Replies
    6
    Views
    516

    Re: Question for The Trick

    Thanks trick. So if a new com object is created in a thread created by mThreadVB what is the project context? Or am I completely missing the point. Sorry to ask such dumb questions
  33. Replies
    6
    Views
    516

    Re: Question for The Trick

    Ok I will try to reliably reproduce the crash if I can. Sorry to be dumb but what is project specific data and why is that important?

    Lastly synconization primitivates are more complex to code...
  34. Replies
    6
    Views
    516

    Re: Question for The Trick

    Its not my project. Not trying to take any credit. The authors name is in the top i think and used some of matt curlands ideas to get it working.

    I am sure it violates lots of rules. I had some...
  35. Replies
    30
    Views
    1,220

    Re: to undestand array dictionarary, collection

    Sorry I meant what is key the OP wants to use.
  36. Replies
    6
    Views
    516

    Question for The Trick

    I have been using the attached multithreading dll for a long time now. I only use one method really and that is CreateWin32Thread.

    In another project I have also used your modMultiThreading which...
  37. Replies
    30
    Views
    1,220

    Re: to undestand array dictionarary, collection

    In case I missed it what is the key. A string?
  38. Replies
    30
    Views
    1,220

    Re: to undestand array dictionarary, collection

    Only problem with this is that its limited to 1200 hash buckets. When there are a lot of collisions it gets much slower.
  39. Replies
    30
    Views
    1,220

    Re: to undestand array dictionarary, collection

    In my opinion it depends on what problem you are trying to solve. Could you please perhaps elaborate.

    Each of the things you mention have their own strengths and weaknesses.

    thanks
  40. Re: [VB6] Event Tracing for Windows - Monitoring File Activity with ETW

    Because I know what pids I am interested in before hand and the documentation advises that this is a way to reduce overhead. At least I think that is what it means. Cheers
Results 1 to 40 of 243
Page 1 of 7 1 2 3 4



Click Here to Expand Forum to Full Width