Search:

Type: Posts; User: PlausiblyDamp

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Some unreasonable restrictions in VB6

    Is that a public property or just a public variable (field?) instead?

    Doesn't a property have a specific property definition? If so can they not be declared Friend?
  2. VS 2017 Re: Build failed - Do you want to continue debugging?

    So why not show the line with the actual error instead of an unrelated line?
  3. Replies
    4
    Views
    186

    Re: Update SQL database using Linq

    So when you say it doesn't work, what actually happens? Does it throw an exception? Does a number get updated incorrectly? The database gets deleted? The more information you give the easier it is to...
  4. Re: selenium.chromedriver VBA run time 32

    If the method I asked about exists then I can give you an example, but you didn't say if it did or didn't exist.
  5. Re: selenium.chromedriver VBA run time 32

    IIRC Selenium doesn't allow multiple classnames to be used in a single .FindElementByClass - is there a FindElementByCssSelector method?
  6. Re: How do I send or receive UDP multicast with winsock OCX in VB6?

    Multicast on IPv4 is required to use a specific range of addresses https://en.wikipedia.org/wiki/Multicast_address, this is not the same as the "normal" ip address associated with a NIC.
    ...
  7. Replies
    9
    Views
    209

    Re: CreateCompatibleDC

    https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-getdevicecaps

    They are documented as returning the size of the physical screen. You could possible use GetClientRect assuming...
  8. Re: VB6 Windows OS to Windows Server 2019

    IIRC it was there in Windows 7,hardly a new thing.
  9. Re: [RESOLVED] About a single instance of a For Next loop

    Perhaps I tend to be a bit obsessive about these things... I know that no code is likely to be perfect, we all make unintentional mistakes; but I could never just ignore code with blatant mistakes...
  10. Re: [RESOLVED] About a single instance of a For Next loop

    You have a strange definition of "works" then. I dread to think how many subtle (or not subtle) bugs are lurking in that code.
  11. Replies
    9
    Views
    376

    Re: Switch Window to Fullscreen Mode

    It is the binary one's compliment operator
  12. Re: [RESOLVED] About a single instance of a For Next loop

    Does that really work as intended? You have still left a lot of the issues in there that were previously pointed out to you...

    just a few, I have added comments to the code itself



    Option...
  13. Re: About a single instance of a For Next loop

    Out of interest could you post your solution? I am intrigued to see how a single iteration loop would work when no loop at all wouldn't.
  14. Replies
    17
    Views
    474

    Re: Ascii Ansi Chr()

    Just as an aside, what you are doing isn't really "cleaning up" the file names, it is potentially changing the meaning.

    Is there a reason the non-English characters need to be removed?
  15. Re: ModernVB - Modernize your VB6 IDE - Now released publicly for testing!

    And if they were to move why suggest moving to a 12 year old version?
  16. Re: About a single instance of a For Next loop

    That explains nothing!
  17. Re: About a single instance of a For Next loop

    That isn't what your code does though, at no point do you exit the loop and the goto achieves nothing! Why do you think it will exit the loop?



    I don't think the DoEvents command does what you...
  18. Re: About a single instance of a For Next loop

    Why are you just setting m_Marker to itself and not returning anything from a property get? Why is the property a string but m_Marker a Byte? This makes no sense at all.


    So if m_Marker is a Byte...
  19. Re: Datafield dbLongBinary to custom data type

    Still not sure why you are trying to do this, why not just use a database to store the data as fields in a table. This has already been suggested and is a much more conventional approach.
  20. Re: Datafield dbLongBinary to custom data type

    Why are you using a database if you aren't going to store data in rows and columns? In the vast majority of cases it would make more sense to store the individual fields of the UDT as columns in a...
  21. Re: [RESOLVED] How to simulate "try-catch-finally" in VB6

    But the VB6 error messages are not something that should ever be seen by an end user. That is why you have error handlers - catch the error, log it (or whatever), and fail gracefully.


    Bad code...
  22. Replies
    10
    Views
    526

    Re: BC30057 error

    Which still gives us absolutely no idea what on earth WriteInteger is, what parameters it takes, and what the actual error is.
  23. Re: [RESOLVED] How to simulate "try-catch-finally" in VB6

    One potential issue is that an Exception can carry a lot more information than just an error number, any exception would need to map to an error number (or the code that throws the exception would...
  24. Replies
    10
    Views
    526

    Re: BC30057 error

    Sample code about what though? We have no idea what your code is trying to do or even what the function "WriteInteger" does and what parameters it takes. You need to give more information if you want...
  25. Re: Bad IL range running an 86 or 64 .exe created with VBasic 2010 Express

    It could indicate either the app itself is corrupt or the framework installation is corrupt. Have you checked to see if the PC has a Virus or other form of malware? Might be worth reinstalling the...
  26. Re: The most lacking language feature in VB6

    It is a straight cut and paste from the code window behind the running app. In fact VS is showing the xmlns:local namespace as being unused as well.
  27. Re: The most lacking language feature in VB6

    In fact the entire XAML for this would be


    <Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    ...
  28. Re: [RESOLVED] How to simulate "try-catch-finally" in VB6

    Depending on the situation though sometime you do need to rely on error handling, checking up front isn't always reliable. As an example you could check if a file exists before you try to open it,...
  29. Replies
    10
    Views
    526

    Re: BC30057 error

    How is WriteInteger declared?
  30. Replies
    37
    Views
    1,394

    Re: Get text from screen.

    Have you added any needed references / nuget packages? If so you might need to Import the relevant namespaces.
  31. Replies
    146
    Views
    3,092

    Re: Stop whining - just get numb

    I find that absolutely terrifying, the thought that anyone can just go and buy a gun without checks or training seems like madness.
  32. Replies
    146
    Views
    3,092

    Re: Stop whining - just get numb

    Never going to happen though, any attempt to put checks in place just seem to be be blocked. The gun lobbies seem to hold too much power and the profits made by the weapons companies carries a lot of...
  33. Re: JSON nested array - retrieving values

    Your class is still declared as


    Public Class serviceGPR
    Public Property service As String
    End Class


    Yet the property is defines as
  34. Re: JSON nested array - retrieving values

    IIRC the class names need to match up with the JSON, so "serviceGPR" should be "service", although you could also use https://www.newtonsoft.com/json/help/html/SerializationAttributes.htm to override...
  35. Replies
    17
    Views
    758

    Re: READ part of string

    https://www.vbforums.com/showthread.php?738845-VB6-JsonBag-Another-JSON-Parser-Generator is the first one I found, I don't use VB6 these days so I might not be much use beyond that link :)
  36. Replies
    17
    Views
    758

    Re: READ part of string

    The file contents look like JSON, so you are probably better treating it as such rather than trying to parse it out manually. If you look in the codebank forum on here I am sure there are one or two...
  37. Replies
    11
    Views
    548

    Re: newer VS versions and subscriptions

    https://visualstudio.microsoft.com/vs/compare/ gives a pretty decent comparison of the various versions.
  38. Replies
    11
    Views
    552

    VS 2010 Re: how to view .obj with graphics

    That still makes no sense.
    You would need to write code to open the file, read the contents into an appropriate data structure, and then use this data structure to base your drawing code on.

    I...
  39. Replies
    11
    Views
    552

    VS 2010 Re: how to view .obj with graphics

    Well don't do that. You should write code to read and parse the obj file, not attempt to include the contents directly.
  40. Replies
    11
    Views
    552

    VS 2010 Re: how to view .obj with graphics

    What are you pasting into VS? Are you trying to paste the contents of an obj file into a code file?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width