Search:

Type: Posts; User: SearchingDataOnly

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Get the AST (Json String) of C# code

    I want to be able to get AST strings without reflection, because eventually I still need to convert these VB.NET algorithms to VB6 code. If reflection is used, the conversion will not work.

    Also,...
  2. Get the AST (Json String) of C# code

    I want to use VB6 or VB.NET to get the AST (Json String) of C# code, and I know that CodeDom and Roslyn can be used to parse C# code precisely and generate AST node collections and AST json strings....
  3. Parse(extract) class names and method names from C# code

    I need to use VB6 to parse(extract) the class name (including the properties of the class) and the method name (including the method parameters) in the C#. I now have two ideas:

    Method 1: Use a...
  4. Replies
    239
    Views
    56,428

    Re: https://www.radbasic.dev/

    When I searched for information, I found the above paragraph. I'm not trying to continue discussing this thread, just make a markup.

    "Generally accepted coding style" and "generally used code...
  5. Re: Change the source code of the .Net4.8 framework from C# to VB.NET

    Obviously, you know very little about VB.NET and Visual Basic. VB.NET and C# are like brothers. VB.NET and VisualBasic are like children with the same name, but from two completely different...
  6. Re: Change the source code of the .Net4.8 framework from C# to VB.NET

    The relationship between VB.NET and C# is different from that of other languages. VB.NET and C# belong to two expressions of the same language, and when C# cannot be converted to VB.NET with 100%...
  7. Re: Getting the ball rolling. Which VB6 projects are you working on?

    I don't know anything about RADBasic, but from my gut feeling, I think they should have made a lot of progress.

    In a few months, I may be able to compile my project in twinBasic, which makes me...
  8. Re: Getting the ball rolling. Which VB6 projects are you working on?

    Quantitative change leads to qualitative change. I believe that in a few years we'll see a lot of amazing things coming out of the VB6 community. Therefore, we must live healthy, witness miracles,...
  9. Replies
    18
    Views
    1,310

    Re: NewTab: tab control for VB6

    I studied your controls carefully and it's fantastic. Thank you very much.

    Also, I've been trying to find an example of developing CodeEditor in RC6. You're a master of controls, and it would be...
  10. Re: Change the source code of the .Net4.8 framework from C# to VB.NET

    What you said makes sense. But what you overlook is that .NET4.8 development is frozen, so its code is relatively stable (no major changes). In addition, VB.NET can't translate C# code 100%...
  11. Re: Change the source code of the .Net4.8 framework from C# to VB.NET

    Very valuable information, I'll take the time to give dnSpyEx a try. Thank you very much, PlausiblyDamp.
  12. Re: Change the source code of the .Net4.8 framework from C# to VB.NET

    I know there's little chance of finding my answer, but sometimes I still hope for a miracle.

    Also, I've used Instant VB and it's great. But, obviously, it can't translate some complex C# code into...
  13. Replies
    18
    Views
    1,310

    Re: NewTab: tab control for VB6

    @Eduardo-,

    I'm working on a code editor whose interface will emulate VSCode. So I need a lightweight TabCtrl(PageCtrl) similar to VSCode, and I don't know if your new TabControl can emulate...
  14. Change the source code of the .Net4.8 framework from C# to VB.NET

    Lately, I've been reading the source code for .NET4.8 core libs (mscorelib.dll and system.dll, system.core.dll), which are written in C#. For a long-time user of VB6, it is much easier to read VB.NET...
  15. Function names in interfaces cannot contain underscores

    We know that if the function name in the interface class contains an underscore, then other classes cannot correctly locate the corresponding interface function when Implements this interface....
  16. Re: Simulate multiple classes in one module

    Yes, it is not an easy task, and I'll continue to do some research and try to find a good solution. Thank you, Elroy.
  17. Re: Simulate multiple classes in one module

    Hi Elroy, sorry I didn't make my project requirements clear. I'm not trying to convert a UDT into a class. I want to use VTable and vbInterfaces (IUnknown, IDispatch, etc.) to simulate one or more...
  18. Re: Is the Variant data type a good design from a language design perspective?

    The following thread discusses some unexpected features of VB6.Collection:

    https://www.vbforums.com/showthread.php?894991-RESOLVED-JSON-Decoding-of-RC5-RC6&p=5554014&viewfull=1#post5554014
  19. Re: Simulate multiple classes in one module

    Yes, VB6 hasn't been updated for over 24 years, and it does have a lot of limitations. But I always feel that there is still some untapped potential of VB6, and I want to explore its greater...
  20. Re: Simulate multiple classes in one module

    In the vast majority of cases, we don't need to use LightWeight-COM, but LightWeight-COM gives us some possibilities to solve special problems.
  21. Re: Simulate multiple classes in one module

    @techgnome, @Elroy, @dz32,

    My purpose was already stated in another thread:

    Planning and organization of large project: Divide large ActiveX DLL project
  22. Replies
    2
    Views
    323

    Re: .NET Form inside VB6

    COM Interop example. How to use .Net classes in VB6
    https://www.vbforums.com/showthread.php?890169-COM-Interop-example-How-to-use-Net-classes-in-VB6
  23. Simulate multiple classes in one module

    I have many classes, Class001, Class002 ... Class1000, the interfaces of these classes are stored in a tlb. I want the implementation functions of all classes to be placed in a module file...
  24. Re: Is the Variant data type a good design from a language design perspective?

    Yes, we only use variants in some special cases, so variants are always in an alternative position. When I tried to explore more possibilities in VB6, the problems I needed to deal with were almost...
  25. Re: Is the Variant data type a good design from a language design perspective?

    VB6 collections seem to have a unique feature that can release objects extremely quickly, I don't know how it does it.
  26. Re: Is the Variant data type a good design from a language design perspective?

    For me, the Set keyword makes it clear that the current variable is an object variable, which clearly distinguishes it from other primitive type variables. IMO, the Set keyword increases the...
  27. Re: Is the Variant data type a good design from a language design perspective?

    Thank you vbwins, Elroy, The trick and dilettante.

    Agreeing with Elroy, I also think VB6's Variant data type is a very good design. I often need to convert code from other languages (such as C#...
  28. [RESOLVED] Is the Variant data type a good design from a language design perspective?

    I've been using Variant data types a lot lately, but I still lack a deep understanding of Variant. I wonder, is the Variant data type a clever design, or a bad design, from a language design...
  29. Re: Planning and organization of large project: Divide large ActiveX DLL project

    Yes, I've also encountered cases where the number of menus in MainForm exceeds the max number allowed by VB6-IDE. At the time, I accommodated the extra menus by adding a new Form. These changes had...
  30. Re: Planning and organization of large project: Divide large ActiveX DLL project

    Hi Elroy, thank you for your detailed reply.

    My project will serve as the base-lib (core-lib) for other projects, and if it's broken into many small DLLs, it will be cumbersome to release and...
  31. Planning and organization of large project: Divide large ActiveX DLL project

    I have a project that will eventually have 1500-2000 classes. Initially, I wanted to be able to wrap all the classes in one ActiveX-DLL, but by the time I wrapped more than 600 classes, the VB6-IDE...
  32. Replies
    16
    Views
    1,040

    Re: Some verbose C# code

    When I say cost, I mean: because c# requires explicit types, the code is full of a large number of type conversion functions, which makes the code bloated and verbose. This makes C# unable to be...
  33. Re: Pass empty-array to function parameters

    Your method works. Thank you, The trick.

    Currently, there are three solutions:

    (1) Use Variant instead of array

    (2) Preallocate global EmptyStringArray and EmptyParamModifierArray

    (3)...
  34. Re: Pass empty-array to function parameters

    Thank you, wqweto.

    For now, it seems to be the best way to preallocate global EmptyStringArray and EmptyParamModifierArray.
  35. Re: Pass empty-array to function parameters

    Yes, there are a lot of costs to using Variant, for example:

    (1) Use a longer variable name to describe the type of array elements in the Variant, for example: Modifiers_As_ParameterModifierArray...
  36. Re: Pass empty-array to function parameters

    Yes, Variant is an amazing thing. Maybe I can define function parameters like this:



    Public Function BindToMethod(ByVal BindingAttr As BindingFlags, _
    ...
  37. Replies
    16
    Views
    1,040

    Re: Some verbose C# code

    I'm thinking about the cost of explicit type and if there is a better solution than C# when it comes to type casting.

    Some people say that C# is the ceiling of object-oriented programming, but...
  38. Replies
    16
    Views
    1,040

    Re: Some verbose C# code

    I'm not trying to prove anything, just having some thoughts while reading the C# code, just wondering why it does it this way, or why it doesn't do it better?

    Whether I like C# or not, it's just a...
  39. Re: Pass empty-array to function parameters

    Thank you, wqweto.

    Yes, this is a viable approach and the one I'm currently using. But the problem is, I have hundreds of classes now, and may have thousands in the future, which means I need to...
  40. Replies
    16
    Views
    1,040

    Re: Some verbose C# code

    My sample code is from Reflection\CustomAttribute.cs in Microsoft .NET4.8
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width