dcsimg

Search:

Type: Posts; User: vbwins

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. Re: CopyMemory works in IDE / Not Compiled

    I have overcome these type of issues before which were always related to my incorrect calculation of output buffer size/location by adding a set of "guard bytes" at the end of my structure and pre...
  2. Replies
    4
    Views
    369

    Re: Compiler switches

    Ok thanks I get that.
  3. Replies
    4
    Views
    369

    Re: Compiler switches

    Yes I was. I also tried that. Thanks for your reply.
  4. Replies
    4
    Views
    369

    [RESOLVED] Compiler switches

    Does anyone know if using the ini c2switches setting there is a way to get C2 to adopt aggressive in lining during the compile? I have researched this quite a lot and I know it can be done with c++
    ...
  5. Replies
    20
    Views
    966

    Re: Calling winPcap from vb6

    Thanks. Got it and done it.
  6. Replies
    20
    Views
    966

    Re: Calling winPcap from vb6

    Would like to do that. I am not sure how but I will figure it out.
  7. Replies
    20
    Views
    966

    Re: Calling winPcap from vb6

    So yes there is. When I get some time I will pull the guts out of my code and post it up. Bottom line is that I needed to use LaVolpe's universal dll caller which I wrapped in my support dll for my...
  8. Replies
    20
    Views
    966

    Re: Calling winPcap from vb6

    So yes there is. When I get some time I will pull the guts out of my code and post it up. Bottom line is that I needed to use LaVolpe's universal dll caller which I wrapped in my support dll for my...
  9. Thread: Marshalling

    by vbwins
    Replies
    4
    Views
    286

    Re: Marshalling

    Thanks for the reply. Are you certain that marshalling will take place by default? The reason I ask is that if this is the case I would have thought that I would not need to sync access to a...
  10. Thread: Marshalling

    by vbwins
    Replies
    4
    Views
    286

    Re: Marshalling

    ManyThanks. I think there are more like him today than there were then...


    Can I cheat by doing the below and passing the localConUp to my thread routine. Will this avoid the marshalling...
  11. Thread: Marshalling

    by vbwins
    Replies
    4
    Views
    286

    Marshalling

    I am a babe in the woods when it comes to understanding this. I do have a question though.

    If I have a global object which is a scripting.dictionary that I access from multiple threads...
  12. Re: Fastest way to convert long IP address from network to dotted string

    So in my app I am tracking packets captured with nPcap or wPcap. Before I hand them off to my packet handling routine I need to do some work on them.

    onpacket,6164
    tcpAgentLong2IP,1819...
  13. Re: Fastest way to convert long IP address from network to dotted string

    Wow guys. Thanks for all the comments. Sorry for the late reply. Wife was in hospital. You have given me enough to make substantial gains.
  14. [RESOLVED] Fastest way to convert long IP address from network to dotted string

    Greetings,

    I have to do this a lot. Does anyone have any ideas on how to do it faster than the way I am doing it below.

    Any ideas welcome.

    thanks

    Private Type myBytes
    b1 As Byte
  15. Replies
    2
    Views
    248

    Re: Disk activity by process

    Thanks for the reply.
  16. Replies
    2
    Views
    248

    Disk activity by process

    Greetings colleagues,

    I have spent the better part of the day googling how to get IO activity by process only for disk activity. I can see it in process explorer but naively Windows only seems to...
  17. Replies
    4
    Views
    220

    Re: adding ref to .tlb or.dll

    Thanks will take a look at those other calls. Appreciate the help and the offer. I have done most everything that I have read here and elsewhere short of inline coding all my functions. I was amazed...
  18. Replies
    4
    Views
    220

    Re: adding ref to .tlb or.dll

    Ok thanks. Speed testing of using a ref to the .tlb vs a ref to the .dll shows pretty much no difference?

    I am looking for every little saving in CPU time and am pretty much out of ideas apart...
  19. Replies
    4
    Views
    220

    adding ref to .tlb or.dll

    Is there any performance difference at run time? The thing being referenced is an activeX dll.

    cheers
  20. Replies
    20
    Views
    1,183

    Re: Detect power outage

    Old PC or Laptop
  21. Re: VB6 webbrowser not working after windows update

    Did the browser control somehow get renamed? If you remember the old names (assuming not called WebBrowser1) then the code may still be in the form.
  22. Replies
    20
    Views
    1,183

    Re: Detect power outage

    1) Find an old box and plug it into mains (not ups)
    2) Set up a simple monitoring system to monitor it. You can download one probably. You dont need many features just up/down
    3) When it goes down...
  23. Re: Correct way to call HeapSetInformation with HeapOptimizeResources flag

    Looking good. Thanks a ton.
  24. Re: Correct way to call HeapSetInformation with HeapOptimizeResources flag

    Ok thanks will give it a go.

    Funny thing is I use that dec to set all my heaps to terminate on heap corruption and it works just fine.

    thanks for the reply
  25. Re: Correct way to call HeapSetInformation with HeapOptimizeResources flag

    Sorry.

    Private Declare Function HeapSetInformation Lib "kernel32" (heaphandle As Long, ByVal heapInformationClass As Long, ByVal HeapInformation As Long, ByVal heapInformationLength As Long) As...
  26. Re: Correct way to call HeapSetInformation with HeapOptimizeResources flag

    Thanks for the reply.

    Like so: This one returns invalid parameter I think.

    https://technet.microsoft.com/en-us/dn872745(v=vs.96)

    Private Type HEAP_OPTIMIZE_RESOURCES_INFORMATION

    ...
  27. [RESOLVED] Correct way to call HeapSetInformation with HeapOptimizeResources flag

    I don't seem to be able to get this right. I have the correct OS version according to the documentation.

    I cycle between getting blown away to getting back 87 (invalid parameter) in lastDllError...
  28. Re: Correct way to remove class stored in scripting.dictionary

    Thanks
  29. Correct way to remove class stored in scripting.dictionary

    I have some classes stored in a dictionary with a string key that come from an external com dll. Is the correct way to remove them to:

    set dict(key) = nothing
    dict.remove key

    or just
    ...
  30. Replies
    0
    Views
    236

    [RESOLVED] API NotifyAddrChange

    Does anyone have an example of using this? Or an alternative approach as long as it is notification based. I need to understand if an IP address on a host changes and restart my service. I have...
  31. Replies
    2
    Views
    225

    Re: Rules around object ownership and threads

    Thanks. I know somethings wrong and all my classes have an owning thread ID which is used when they are being destroyed but this will not be true for method calls. I will review my code to try to...
  32. Replies
    2
    Views
    225

    Rules around object ownership and threads

    Hi all,

    Trying to track down a strange problem to do with this and have some questions you might know the answer to.

    1) Is there such a thing as ownership of an object by a thread? There seems...
  33. Replies
    22
    Views
    1,108

    Re: TCP and internet security

    Use HTTPS
  34. Replies
    22
    Views
    1,108

    Re: TCP and internet security

    The thing is that the internet world is a dangerous place. Honest people (I am assuming the people on this forum) tend to write code as if it will never be abused. I have seen people spin up threads...
  35. Replies
    2
    Views
    352

    Re: Generate time stamp like pcap

    Came up with a solution. Will post it tomorrow. Might help someone else.
  36. Replies
    2
    Views
    352

    Generate time stamp like pcap

    Hi,

    I am trying to generate a time stamp in the same format as winPcap does which is:

    seconds = number of seconds since 1/1/1970
    uSeconds = number of uSecs since seconds

    I THINK I...
  37. Replies
    15
    Views
    758

    Re: Using with object .SomeMethod

    So the definitive answer is that sometimes it helps?

    Edit To tricks point re array not being unlocked I seem to remember I also noticed that the reference count of the object gets incremented when...
  38. Replies
    15
    Views
    758

    Re: Using with object .SomeMethod

    I think it makes code harder to read also. If it has zero performance benefit then its just not worth it.

    thanks for your reply.
  39. Replies
    15
    Views
    758

    Using with object .SomeMethod

    Hi All,

    Curland's Advanced VB book states that:

    with object
    .somehing
    .somethingelse
    .thelastthing

    end with
  40. Replies
    2
    Views
    362

    Re: Does this matter?

    Thanks for your reply. And I have the answer. Yes it is actually multi-threaded code using mthreadvb.

    https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=26900&lngWId=1

    As I...
Results 1 to 40 of 96
Page 1 of 3 1 2 3



Featured


Click Here to Expand Forum to Full Width