dcsimg

Search:

Type: Posts; User: Niya

Page 1 of 13 1 2 3 4

Search: Search took 0.61 seconds.

  1. Re: [RESOLVED] .NET Controls vs COM components in .NET environment

    I must correct myself here. I was mistaken, GDI+ is not COM based. It is a class based with C++ interfaces, which I had confused in my head when I wrote that post. Nonetheless, the point still...
  2. VS 2019 Re: Not a valid icon file error message

    Could you attach to icon file so we may examine it?
  3. Replies
    12
    Views
    441

    Re: Splitting large TCP messages.

    I wrote a small project demonstrating the basics of using TCP/IP and posted it in the code bank here. It's a simple file transfer program that covers the most important basics of dealing with a...
  4. Thread: Remote DeskTop

    by Niya
    Replies
    24
    Views
    2,688

    Re: Remote DeskTop

    I would hash the raw pixel data before transmission and compare that hash to the hash of the last image transmitted. If they are different, then it means the image has changed. MD5 or some variant of...
  5. Replies
    7
    Views
    4,352

    Re: Error : Not a legal OleAut date.

    This thread was made all the way back in 2012, 7 years ago.
  6. Re: Working on a old Program made in VB6 and update VB.Net

    You need to be clear. What class does this member belong to and what does it do?
  7. Re: Question Regarding Arrays - (Beginner Programmer)

    A general rule of thumb I use is if I know in advance how much space I need and I know it will never change during the course of the object's life, I always use an Array, List(Of T) otherwise. Arrays...
  8. Re: 'Cannot access a disposed object. Object name: 'DataGridView'.'

    I haven't dissected your code to any great depth but I immediately recognize that error. It's most commonly caused by code attempting to modify controls after a Form has been disposed of. It's a...
  9. Replies
    9
    Views
    571

    Re: Simpler Way To Split Strings?

    A class would make your life easier in the long run. You could write a class like this:-
    '
    Public Class PersonInfo

    Public Sub New(ByVal delimitedInfo As String)

    Dim s =...
  10. Re: QB64 - a more realistic option?

    QB64 is a novelty, meant to be compatible with classic QuickBasic. This is a terrible code base to use as a potential VB6 replacement. The only thing QuickBasic and VB6 have in common is the...
  11. Replies
    8
    Views
    448

    Re: Bad file position number

    I really think you should move away from FileOpen and use the modern stream based ways of dealing with files.
  12. Re: How to define byte array in vb6 and send it with Winsock

    I've had this experience. It was a nightmare. I will never ever write another Winsock application in a single threaded environment ever again. One has to be a special kind of masochist to ever want...
  13. Re: How to define byte array in vb6 and send it with Winsock

    The TCP protocol guarantees that the data will be sent and in the correct order as long as a connection is maintained. A properly written Winsock application that uses TCP should not lose...
  14. Re: How to define byte array in vb6 and send it with Winsock

    You should only do this when you're sending text over the wire. If you're sending binary data, a length prefix is the way to go.
  15. Thread: Post Race!

    by Niya
    Replies
    64,029
    Views
    4,539,167

    Re: Post Race!

    LMAO......thanks for the laugh.
  16. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Baka's suggestion implies a strongly typed array, not an array contained within a Variant. An argument can be made that static typing goes a long way in preventing developer errors.
  17. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Sitten's post was in reference to this post, from a page ago.
  18. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Well you got me there. I'm with Sitten on this. I'm not too fond of the IDisposable pattern either. The problem I run into quite often is the finalizer running on it's own thread which causes all...
  19. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Yes:-
    '
    Using b As New SolidBrush(Color.Blue)
    DoBrushStuff(b)
    End Using


    Using blocks are implemented by the compilers of both VB.Net and C#. The MSIL code emitted...
  20. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    You're not supposed to rely on the GC to free OS resources like GDI objects and file handles. The correct way to handle this is to wrap these OS objects in a managed object and implement the...
  21. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    This kind of thing always happens. I remember way back in the day, before Windows was a thing, QUICKBASIC gurus used to resort to PEEK and POKE in order to work around the limitations of QUICKBASIC...
  22. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    As much as I sing praises to MS about VB.Net, much to the chagrin of Olaf and Dilettante, what I don't say enough is that I, like VB6 programmers, am a dinosaur myself. My PC runs on Windows 7 and...
  23. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    @Olaf

    There are a couple things I would like to address in your posts but I'm going to be a bit busy in a while. I don't have the time right now since there are a lot of things in your posts to...
  24. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Here's a very simple example:-
    '
    Public ReadOnly Property SelectedFiles As String()
    Get
    Return grdFiles.SelectedFiles.Select(Function(f) f.FullFilePath).ToArray
    ...
  25. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Thanks for the example.

    As for my thoughts. While it is a solution, compared to a LINQ based solution, that is far too verbose. But it's biggest weakness is that this ADO based solution is only...
  26. Replies
    6
    Views
    380

    Re: Design ideas for "wait for" something

    How are you communicating with this oven from VB?
  27. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Just to be clear, are you talking about using ADO to query, filter and project data in memory?
  28. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    The gap between the two is pretty big if you include everything from the language syntax to the IDE. The most accurate description would be to say that VB6 is a subset of VB.Net. Someone who can use...
  29. Replies
    13
    Views
    1,050

    VS 2015 Re: how to get faster way from Array

    Oh nice.

    Sorry I didn't get back to you sooner. I got caught up in another discussion and spent a lot of time sussing out some things with regards to it. Nice you know you got it working. I hadn't...
  30. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Well if you want suggestions, I can give you some. A couple based on some of the thing I love about VB.Net and some based on the general things found in modern languages.

    Lets start with something...
  31. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Those reasons don't make sense to me. Sorry. I wish it did, but it just didn't.





    I already rewrote all the ones that mean anything. A couple of them, quite large.

    The biggest application...
  32. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Yea, you can't get away from subjectivity in these kinds of topics. When I was lurking around the C forums and another C++ forum, I came across a discussion about C vs C++. While it didn't devolve...
  33. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    It seems this topic is destined to cause controversy every time it comes up and it's becoming clear to me that programming languages are religions in their own right. Anyone with a semblance of life...
  34. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Efficiency is not the problem. It's more about how quickly something that exists only in your mind can be manifested into reality.
  35. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    To what are you referring to when you say "they"?
  36. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    It's not essential but it's more productive. A lot of people have deadlines to meet.
  37. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Woke up this morning and found this post. I examined the code you posted and yes, it's clever what you did with the VTABLE to support inheritance.

    After examining your code for the past hour or so...
  38. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    It is true that the VB6 CodeBank has a much higher quality of code than the VB.Net CodeBank when judged on merits of sheer technical expertise behind them. There is a reason for this and it's quite...
  39. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    I'm starting to think maybe you're the one that doesn't understand the tools he is using, namely COM.

    Your primary way of interacting with your PC is through the operating system, and as a...
  40. Replies
    480
    Views
    28,039

    Re: Vb6 , the Future, and what I have discovered

    Interestingly enough, I have seen this. I mentioned before that I used to do a lot of Doom modding in my youth. While the community was made up of mostly artists and mappers, there were a share fair...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width