Search:

Type: Posts; User: Niya

Page 1 of 13 1 2 3 4

Search: Search took 0.66 seconds.

  1. VS 2019 Re: Thread.Join vs Application.DoEvents

    I have to double down on what jmc said here. A Console application is absolutely the wrong project type for an application that's meant to be in the system tray. You need a project type that provides...
  2. Replies
    5,143
    Views
    427,141

    Re: Corona virus, China major city lockdowns, etc.

    You're absolutely right. It could all be hocus pocus. Maybe the mainstream is acting in the best interest of the people. Maybe these alternative treatments are nothing more than snake oil. However,...
  3. Replies
    13
    Views
    320

    Re: FileCopy to Linux server

    Hmmm....If I were tasked with something like this. I would have written my own TCP/IP Linux service to which my VB6 application would connect to in order to perform the file operations. I would be...
  4. Replies
    5,143
    Views
    427,141

    Re: Corona virus, China major city lockdowns, etc.

    @Eduardo

    Wow....I had no idea. I thought this whole pandemic was just a bunch of fearmongering mixed in with some genuine ignorance. I had no idea something this insidious was going on right...
  5. Replies
    5,143
    Views
    427,141

    Re: Corona virus, China major city lockdowns, etc.

    I wish I had 5 hours to just listen to this whole hearing. I get the sense that there will be things said that people need to know.
  6. Replies
    5,143
    Views
    427,141

    Re: Corona virus, China major city lockdowns, etc.

    I did some number crunching last year with the Covid stats in my country to find out how concerned I should be about dying and I found that it's mortality rate, at least in my country was nothing for...
  7. Replies
    5,143
    Views
    427,141

    Re: Corona virus, China major city lockdowns, etc.

    lol :D
  8. Replies
    7
    Views
    220

    Re: Hey everyone nice forum :)

    :afrog:
  9. Re: [RESOLVED] Need help understanding the use of SET

    Oh Yes, it allows you to express certain algorithms more efficiently which is what I love about this pattern. I think developers would do themselves a great favor by designing their object models to...
  10. Re: [RESOLVED] Need help understanding the use of SET

    Oh yes. I love this pattern so much. It allows you to be quite elegant in the handling of nodes and other hierarchical structures . For example, you can do this with .Net TreeViews:-
    ...
  11. Replies
    5,143
    Views
    427,141

    Re: Corona virus, China major city lockdowns, etc.

    Hmmm...I wasn't really thinking of a particular church. I was thinking of multiple cults like Jim Jones' cult, NXIVM and some mainstream religions like Catholicism. I was also thinking of how similar...
  12. Re: [RESOLVED] Need help understanding the use of SET

    Yea, I figured which is what I went into when I was talking about the pattern being common in .Net. Even the TreeView stuff Elroy posted is an example of this same pattern. Like I said before, it can...
  13. Replies
    5,143
    Views
    427,141

    Re: Corona virus, China major city lockdowns, etc.

    I believe I know why people do this. It took me a while to figure it out but I believe it has something to do with people's self-worth. So many people marry their identity to their beliefs, so much...
  14. Re: [RESOLVED] Need help understanding the use of SET

    This is still confusing you OP? lol...

    Let's try and make this very very simple. Set is used to assign an object reference to an object variable. Nothing more. That is all it's meant to do. I'm...
  15. Replies
    10
    Views
    456

    Re: [RESOLVED] DLL from VC++ in VB6

    Oh yea, I remember that. Old habits are hard to break I guess. ;)
  16. Re: [RESOLVED] Need help understanding the use of SET

    Hmmm...Aite then. No hard feelings. ;)
  17. Re: Need help understanding the use of SET

    This comment made my night. Thanks for the hefty laughter :lol:
  18. Re: Need help understanding the use of SET

    I agree. This would not make sense in VB6 at all. In fact operator overloading isn't meant to be used like this in .Net. The fact that you can imitate default property semantics is just an unintended...
  19. Re: Need help understanding the use of SET

    Well what is actually happening with code I showed is a conversion between types. You can be explicit by treating it as such. For example:-


    Dim tbox As New MyFakeTextBox

    Dim...
  20. Re: Need help understanding the use of SET

    Yea, if memory served, one of the BASICS from the era of GW-BASIC and BASICA actually required Let. It wasn't implicit like it is today. I think Let became implicit with the introduction of...
  21. Re: Need help understanding the use of SET

    My apologies for misunderstanding.



    Well in .Net we do have a solution. I don't know if or how it could be incorporated into TwinBASIC but surely there might be something that can be borrowed...
  22. Re: Need help understanding the use of SET

    @Elroy

    One other thing I want to mention. Comparing different languages where such discussions(language features, programming patterns etc) may come up is something I've always done. I have very...
  23. Re: Need help understanding the use of SET

    I think Set has a direct relationship to COM. I seem to recall someone like the trick or wqweto talking about it. It has to call AddRef on the IUnknown interface and some other COM stuff. Don't quote...
  24. Re: Need help understanding the use of SET

    As for my mention of it in Eduardo's post. This was a different line of discussion, my dislike of the Set statement. I said this earlier:-



    To which Eduardo responded:-



    Now, his question...
  25. Replies
    10
    Views
    456

    Re: [RESOLVED] DLL from VC++ in VB6

    I never actually thought about it like this. When I use the phrase "You're welcomed", I think of it in terms of "You're welcomed to it" as in, "You're welcomed to our help"...Perhaps even that is not...
  26. Re: Need help understanding the use of SET

    Before I even came into this thread he said this:-


    After some back and forth I said this:-


    While a number of things were discussed, I honed in on the pattern of collections with Add methods...
  27. Re: Need help understanding the use of SET

    That's a very good point.

    In .Net there is no concept of default properties, however you can override the assignment operator to perform an implicit conversion so you can imitate this behavior...
  28. Replies
    10
    Views
    456

    Re: [RESOLVED] DLL from VC++ in VB6

    You're welcomed ;)
  29. Re: Need help understanding the use of SET

    You say you use C#. The pattern is relatively common in .Net classes. For example, DataGridView.Rows.Add returns an Integer that represents the index of the row that was added. I'm fairly certain...
  30. Re: Need help understanding the use of SET

    This is interesting. I'm known around here as one of VB6's biggest critics but this isn't a point of contention worth pursuing in my opinion. Setting object variables to null is a staple in every...
  31. Re: Need help understanding the use of SET

    I think all your confusion comes from the fact that something like Add returning a value doesn't feel intuitive. It's quite a common pattern nowadays as it makes writing certain kinds of logic...
  32. Replies
    10
    Views
    456

    Re: DLL from VC++ in VB6

    Declare the functions using _stdcall but do no use __declspec to export. Use a DEF file instead.

    So for example, your sum function should look like this:-


    int __stdcall sum2(int b, int c)
    {...
  33. Replies
    24
    Views
    999

    Re: c/c++ code for vb6 multithreading

    Ah well. Don't take what I wrote too seriously. I was a bit tipsy. Just kind of what I was thinking when reviewing this thread. I was just thinking out loud as it were.
  34. Replies
    24
    Views
    999

    Re: c/c++ code for vb6 multithreading

    Actually, I disagree. The wizardry of making multi-threading work in VB6 is way and I mean way over my head. It looks like something God would write. It's just incomprehensible to me and other mere...
  35. Replies
    7
    Views
    220

    Re: Hey everyone nice forum :)

    Don't worry. We will change your mind ;)

    Welcome to mad house :D
  36. Replies
    16
    Views
    419

    Re: Is Object Pointer Valid?

    I had some time and I was of a mood so decided to play with this for a bit. I can only conclude in the end that __vbaObjSetAddref is not hardened against invalid object references. You simply must...
  37. Replies
    16
    Views
    419

    Re: Is Object Pointer Valid?

    Well perhaps Elroy should explain because I was looking at what he showed here, specifically:-


    ' But, if I now try the following, it'll crash.
    ' How do I check whether p is any good????...
  38. Replies
    16
    Views
    419

    Re: Is Object Pointer Valid?

    According to Elroy, calling these crashes the application if the object behind the pointer is dead. And it doesn't crash in the clean way where you could trap the error with On Error Goto. I'm...
  39. Replies
    16
    Views
    419

    Re: Is Object Pointer Valid?

    I think you have the right approach in principle. Looking up the structure and layout of a COM object in memory, I see that it's not that sophisticated. Raymond Chen explains here. I'm thinking that...
  40. Replies
    5,143
    Views
    427,141

    Re: Corona virus, China major city lockdowns, etc.

    0_0 I'm not touching that argument lol...imma sit on the sidelines for this one ;)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width