Search:

Type: Posts; User: Niya

Page 1 of 13 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    5,084
    Views
    425,464

    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...
  2. 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...
  3. Replies
    5,084
    Views
    425,464

    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...
  4. 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...
  5. Replies
    10
    Views
    433

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

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

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

    This comment made my night. Thanks for the hefty laughter :lol:
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. Replies
    10
    Views
    433

    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...
  16. 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...
  17. 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...
  18. Replies
    10
    Views
    433

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

    You're welcomed ;)
  19. 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...
  20. 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...
  21. 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...
  22. Replies
    10
    Views
    433

    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)
    {...
  23. Replies
    23
    Views
    895

    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.
  24. Replies
    23
    Views
    895

    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...
  25. Replies
    2
    Views
    131

    Re: Hey everyone nice forum :)

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

    Welcome to mad house :D
  26. Replies
    16
    Views
    409

    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...
  27. Replies
    16
    Views
    409

    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????...
  28. Replies
    16
    Views
    409

    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...
  29. Replies
    16
    Views
    409

    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...
  30. Replies
    5,084
    Views
    425,464

    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 ;)
  31. Replies
    5,084
    Views
    425,464

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

    Just stumbled onto this gem:-
    https://thepostmillennial.com/teacher-alleges-fired-not-meowing-student-cat

    More mainstream madness. I don't know how true that story is but given the degeneracy I...
  32. Replies
    5,084
    Views
    425,464

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

    Yep. This is pretty much what I'm talking about. I bet these same people spend an unhealthy amount of time studying the latest gossip instead of something useful. Yea. I know these types. It's the...
  33. Replies
    9
    Views
    290

    Re: Making the Paint routine fire?

    Actually, the Form would become visible as soon as Form_Load executes the first Await. You can test with this:-


    Public Class Form1
    Private Async Sub Form1_Load(sender As Object, e As...
  34. Replies
    5,084
    Views
    425,464

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

    I don't know what kind of people some of you have lived with but I grew up around middle to lower class people. One of the things you always hear in any social setting is complaints about their lot...
  35. Replies
    9
    Views
    290

    Re: Making the Paint routine fire?

    Eh....I think he was very clear about what he was describing. Lets look:-






    That is pretty clear to me. Here is a mock up of what those 3 quotes above describe:-
  36. Replies
    9
    Views
    271

    VS 2022 Re: [RESOLVED] Latest Web Options for VB.NET?

    Yea, as a life long BASIC programmer C# irritates the hell out of me in some areas such as case sensitivity and whatnot. But the great thing about being human is that we can get used to things pretty...
  37. Replies
    9
    Views
    290

    Re: Making the Paint routine fire?

    I would suggest that you look into how Await/Async actually works. It doesn't work the way you may think it does.

    Await actually breaks a method into discrete executable blocks to be executed at...
  38. Replies
    104
    Views
    4,876

    Re: VB6 Web Site/App Server

    I can still play the original Prince of Persia on DOSBox so I guess there's that possibility of unnatural longevity with zero developer input. ;)
  39. Replies
    9
    Views
    271

    VS 2022 Re: [RESOLVED] Latest Web Options for VB.NET?

    I mean don't get me wrong. VB.Net still has plenty of life left, but knowing Microsoft, there will be a point where you're going to feel the sting of their neglect. It happened with VB6, it happened...
  40. Replies
    9
    Views
    271

    VS 2022 Re: Latest Web Options for VB.NET?

    Unfortunately, like VB6, Microsoft is looking to abandon VB.Net as well. You're not going to see it showing up that much in future Microsoft technology. My advice would be to not limit yourself. I'd...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width