Search:

Type: Posts; User: PlausiblyDamp

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. 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.
  2. 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"
    ...
  3. 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,...
  4. Replies
    3
    Views
    147

    Re: BC30057 error

    How is WriteInteger declared?
  5. Replies
    36
    Views
    864

    Re: Get text from screen.

    Have you added any needed references / nuget packages? If so you might need to Import the relevant namespaces.
  6. Replies
    50
    Views
    761

    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.
  7. Replies
    50
    Views
    761

    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...
  8. 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
  9. 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...
  10. Replies
    17
    Views
    559

    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 :)
  11. Replies
    17
    Views
    559

    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...
  12. Replies
    11
    Views
    363

    Re: newer VS versions and subscriptions

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

    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...
  14. Replies
    11
    Views
    322

    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.
  15. Replies
    11
    Views
    322

    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?
  16. Replies
    8
    Views
    309

    Re: Problem with Asc()

    If the examples are in C# then they might be even easier to convert than trying to use legacy VB6 methods. What C# snippets are you trying to convert?
  17. Replies
    8
    Views
    309

    Re: Problem with Asc()

    I completely agree with Niya's comments regarding Unicode and that really is the correct way to handle strings.

    However, I am unclear on what you are trying to do with these lines of code


    Dim...
  18. Replies
    11
    Views
    322

    VS 2010 Re: how to view .obj with graphics

    Given the number of similar posts made by gaouser, and there are a lot, he is wanting to display a 3D object that is defined in an .obj file.
  19. Re: [RESOLVED] Simulate C# "private static" in VB6 (Organization of VB6 Sourc

    These have been a dotnet concept since the original version, so not entirely sure how "retrofitting" describes something that has always been present in the language and was a deliberate design...
  20. Re: Simulate C# "private static" in VB6 (Organization of VB6 Source Code)

    C++ introduced classes but still needed to appeal to the existing C developers, removing global functions would have been a complete blocker to just about any attempt to port code from C to C++ (one...
  21. Replies
    7
    Views
    250

    VS 2010 Re: Webpage fields and button click

    Sounds like they don't want people automating their system.
  22. VS 2010 Re: any server database ideas (my vs2010 maked error on installing SQL, so dont say i

    I feel so foolish now! :D
  23. VS 2010 Re: any server database ideas (my vs2010 maked error on installing SQL, so dont say i

    Can't see the attachment, can you just type out the error message?

    Still no idea why you are talking about replacing a database with a chat system.
  24. VS 2010 Re: any server database ideas (my vs2010 maked error on installing SQL, so dont say i

    What error did it give?
    Why are you using VS 2010?
    Winsock has nothing to do with databases so why bring it up?
  25. Replies
    7
    Views
    250

    VS 2010 Re: Webpage fields and button click

    Is this a page you have created or one hosted by someone else?
  26. Replies
    7
    Views
    250

    VS 2010 Re: Webpage fields and button click

    Looks like the page might have a captcha, pretty much to prevent people doing exactly what you are trying to do.
  27. Replies
    52
    Views
    1,434

    Re: VB.Variant vs C#.Object

    Not arguing with anything you are saying in the slightest on this one, I completely agree with what you said about how an AST can be used and everything regarding CPUs.

    I suppose I am bickering...
  28. Re: How do you give a positive rating to someone's reputation? Where is the rating ic

    Just under the post itself.
  29. Replies
    52
    Views
    1,434

    Re: VB.Variant vs C#.Object

    I am not arguing that it can't be done, just that it could be incredibly difficult to achieve. Beyond a certain point is it worth the effort involved?

    The example you gave certainly achieves the...
  30. Re: Code in Form vs code in Module ? Why one more the other ?

    So you aren't an advocate of the traditional 5,000+ line module called "utils" then? :D
  31. Replies
    52
    Views
    1,434

    Re: VB.Variant vs C#.Object

    I can see this as an interesting academic exercise, and I certainly agree that a transpiler is a lot easier to develop than a decent compiler.

    However (there is always an however :D ) trying to...
  32. Replies
    19
    Views
    750

    Re: Organization of VB6 Source Code

    Not necessarily source code but most modern languages (dotnet, java, python, even php and javascript) have some form of artefact / library management as well. e.g. Dotnet's nuget, npm etc for...
  33. Replies
    19
    Views
    750

    Re: Organization of VB6 Source Code

    Dot net still has the concept of Classes, Structs, Forms, Controls, and Modules if VB - however they are all really just Classes or Structs under the hood. Rather than ActiveX Dlls etc. Anything...
  34. Re: Moving from .Net Remoting to Anonymous Pipes, equivalent of Activator.GetObject

    https://github.com/CoreWCF/CoreWCF might be an option if you are wanting to move to core, not tried it but from a few articles I have read it seems a decent port of WCF to core.
  35. Replies
    52
    Views
    1,434

    Re: VB.Variant vs C#.Object

    I prefer the dotnet approach, which admittedly came after Java, in that there is a single type (e.g. Int32) which behaves like an object when writing code, but is handled like a primitive type by the...
  36. Replies
    52
    Views
    1,434

    Re: VB.Variant vs C#.Object

    This is one thing Java did quite badly IMHO - Java has primitive and objects for some of the basic types e.g. there is both an int and an Integer, int is like an intrinsic type while Integer is an...
  37. Replies
    20
    Views
    573

    VS 2010 Re: I need quick help

    So has it corrupted the file, or is it just not working? Please try and give some detail, this isn't twitter so you can use more than ten words.
  38. Replies
    20
    Views
    573

    VS 2010 Re: I need quick help

    How did the source get broken? Has it been deleted? Lost? Have you just made changes you wish you hadn't made? Have you tried the tool sapator mentioned?

    Unfortunately though, if the code is lost...
  39. Replies
    20
    Views
    573

    VS 2010 Re: I need quick help

    Not sure of any other free tools then https://www.red-gate.com/products/dotnet-development/reflector/ would work but it isn't free.

    You could decompile to C# (not C) and then use a C# to VB...
  40. Replies
    5
    Views
    266

    Re: Deserialising a JSON array

    For each membership in responseObject.claimAssessment.claimant.currentMembership
    memberNumber = membership.memberNumber


    Or rather than declare the properties as IEnumerable(Of ...), you...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width