Search:

Type: Posts; User: 2kaud

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: Extreme New Guy - Not Even Sure I'm in the Right Place

    Left field thinking - but why not do the whole thing in Access if you have that?
  2. Re: How do I address C variables that use an typedef array in an array?

    Given the C++ code above, then effectively you have:



    TwoInts temp = MyVar[3];
    int myInt = temp[1];


    c/c++ has arrays of 1 dimension. Although you can have an array of type array of type...
  3. Re: How do I address C variables that use an typedef array in an array?

    Do you mean something like:



    #include <stdio.h>

    typedef int TwoInts[2];

    int main() {
    TwoInts MyVar[10] = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 };
  4. Re: What code is this? I need to edit and compile .dll file for 64-bit compatibility

    Note the current version of VS is 2022. The version you're got is 2 versions out of date (2019 then 2022).
  5. Replies
    113
    Views
    1,767

    Re: Here we go again...

    Of course he's running. Over the hills and far-far away....

    The interesting question is whether Biden will run again - and will it end up as the same contest as before - Biden vs Trump with the...
  6. Replies
    5
    Views
    265

    Re: The Story of Mel, a Real Programmer

    At univ we had to access to PDP computers that had front panel toggle switches and core memory. One of our lab exercises was to produce code in octal to boot one of the PDPs from it's fixed disk and...
  7. Re: What do the colon and number mean in this struct definition?

    Note that this c/c++ method for individual bits can only be used within a struct/class. Also, you have to be careful of endian layout and padding - especially if you're trying to match to eternal...
  8. Replies
    20
    Views
    521

    Re: VB 6.0 converter to .Net

    Ehhh?? the vast majority of 32-bit software runs just fine on Windows 10/11. Even VB6!

    However, if the decision is made to use a third party company (ie Hexaware) then they should before any...
  9. Replies
    20
    Views
    521

    Re: VB 6.0 converter to .Net

    So the reason isn't technical! What's the beef auditing has with continuing to use VB6? As a left-field suggestion, why not consider going with Twin Basic?
  10. Replies
    69
    Views
    1,672

    Re: Average age of people on this forum

    What's with these new fangled things called 'slide rules'? We used log tables for trig and everything else at school.

    I'm in my late 60's and started programming at school using HP Time Shared...
  11. Replies
    6
    Views
    369

    Re: How can I create a for loop?

    Why is a2 the same as a1?

    Why for a1 and a2 is an expression being raised to the power 1????
  12. Replies
    5
    Views
    358

    Re: how do i find cpu usage?

    [Moderator - As this is a c/c++ forum, would this be moved to the appropriate VB forum]
  13. Re: ECMA group for BASIC - who would you nominate?

    IMO whatever you do, set it up quickly and get exec control before MS muscles in on the act and takes over. They think they 'own' Basic and can get away with whatever they want with it.... This...
  14. Re: ECMA group for BASIC - who would you nominate?

    Always remember the behind-the-scenes wrangling with the Fortran standard between Fortran 77 and Fortran 90 - 13 years for a new standard! This nearly destroyed Fortran then as a major language!...
  15. Replies
    38
    Views
    2,184

    Re: Visual Small Basic v1.8.5 for kids and beginners

    I don't use Basic but IMO the issue for 'kids/beginners' isn't so much the language per say, it's getting to grips with the IDE. VS/VS Code are quite complex and you really need to know how to use it...
  16. Replies
    38
    Views
    2,184

    Re: Visual Small Basic v1.8.5 for kids and beginners

    [Also see https://www.vbforums.com/showthread.php?894006-Small-Visual-Basic-v1-3-2&p=5580704#post5580704]

    Note my comment post #7.
  17. Replies
    8
    Views
    1,509

    Re: Small Visual Basic v1.3.2

    Note that there is an ISO standard for Basic (out of date!):
    https://www.iso.org/standard/18321.html


    There was an ISO working group for Basic (WG8 of SC22) but it has now been disbanded....
  18. Re: Best Alternative to VB6 for teaching and training

    My 2 suggestions are still Twinbasic and Lazarus
  19. Re: Best Alternative to VB6 for teaching and training

    Well the top programming languages for 2022 are:
    Python
    Java
    JavaScript
    Kotlin
    Ruby
    R
    PHP
    Go
    C/C++
  20. Re: Best Alternative to VB6 for teaching and training

    For learning programming, I would suggest Pascal together with Lazarus. Pascal is an 'easy' language to learn and teaches good programming habits. It has very few 'quirks' compared to some languages...
  21. Re: QB64 site and forum explodes into nothing, then rises like a phoenix?

    I moved from Windows 3/3.11 to 95 to NT - so I never experienced the 'horror' of either 98 or me. We first used NT/95/3 etc with Netware, then we got our first NT server and ditched Netware. The...
  22. Replies
    82
    Views
    7,587

    Re: The best programming language?

    MS did adopt C++ - it's called C++/cli and uses .net via 'boxing'. This is Herb Sutter's baby....
  23. Thread: Ancient History

    by 2kaud
    Replies
    16
    Views
    699

    Re: Ancient History

    Algol68 was first implemented for CDC in about 1977. I first used it in 1979 (I think. It was a long time ago...). Algol68 was very different to Algol60. There was disagreement amongst the...
  24. Thread: Ancient History

    by 2kaud
    Replies
    16
    Views
    699

    Re: Ancient History

    I used Pascal/Fortran/Algol68/Assembler on CDC computers and Pascal/Basic (various)/Fortran/c/Assembler on mini-computers (DEC/DG etc) then Basic/Assembler/Proc/Access for Pick-based computers (still...
  25. Thread: Ancient History

    by 2kaud
    Replies
    16
    Views
    699

    Re: Ancient History

    I never came across RPG as I never programmed IBM mainframes..,
  26. Thread: Ancient History

    by 2kaud
    Replies
    16
    Views
    699

    Re: Ancient History

    Cobol was the one language I've used that I absolutely hated. hated. hated. We learnt Cobol in the late 70's during my 2nd year University CS and we had to produce a non-trivial program using batch...
  27. Re: C++: how convert a user class to const POINT*?

    const is used as operator POINT() doesn't now change any class member variables and marks the function as const so that it can be used with a const class instance. In my previous #8 post I marked...
  28. Re: C++: how convert a user class to const POINT*?

    Polygon(HDCConsole, DrawPlane.data(), DrawPlane.size());


    You can't. See my post #16.
  29. Re: C++: how convert a user class to const POINT*?

    As #6 compiles OK and #8 doesn't either you have a quite old compiler, or you need to inform the compiler to compile as C++17/++20 using an appropriate option. eg –std=c++17 or -std=c++20 if...
  30. Re: C++: how convert a user class to const POINT*?

    I'd also suggest using the latest MS VS compiler. VS2022 community is free to install/use:
    https://visualstudio.microsoft.com/free-developer-offers/

    PS. Note that if you do install VS, then C/C++...
  31. Re: C++: how convert a user class to const POINT*?

    What version of the GNU compiler? It seems that you're using an old version. I'd suggest upgrading to the current.

    However, as I only use VS I can't help with issues with other compilers. Sorry.
    ...
  32. Re: C++: how convert a user class to const POINT*?

    The code as posted above as post #8 compiles OK with MS VS2022 as C++20.

    What compiler are you using? If VS2022, have you set the Language Standard to C++20 (or latest)?
  33. Re: C++: how convert a user class to const POINT*?

    The (POINT) cast calls the POINT() function to perform the cast:



    mypoints[i] = (POINT)DrawPlane[i];


    Also, some simplified code that enables DrawPlane to be const (the problem with my...
  34. Re: C++: how convert a user class to const POINT*?

    This test code compiles OK with VS2022 (with just some conversion warnings):



    #include <vector>
    #include <Windows.h>
    #include <cmath>

    class position
    {
  35. Re: C++: how convert a user class to const POINT*?

    Ah. Polygon() for it's second parameter requires a pointer to an array of POINT. DrawPlane is a std::vector of position. You can't cast a std::vector of position to a memory pointer of POINT. You...
  36. Re: C++: how convert a user class to const POINT*?

    How do you call the Polygon() API - and what errors are you getting? operator POINT() is a cast function that will return a type POINT when position type is used but POINT is required.
  37. Replies
    10
    Views
    1,062

    Re: Original VB6 install CD?

    As you have the key, why not just download VB6?
    https://winworldpc.com/product/microsoft-visual-bas/60
  38. Replies
    152
    Views
    4,711

    Re: US college enrollment is declining

    I'd say not. But IMO education has been dumbed down. So that it appears that the students are getting dumber. And this doesn't have much to do with how hard /effort students put into their studies....
  39. Replies
    69
    Views
    21,610

    Re: VB6-compiled apps being flagged as virus

    It's not just VB6 compiled apps. I've also had the same issue with C++ .exe files being flagged...
  40. Re: Learning C++, looking at function pointers. Is this Good?

    Easier like this:



    #include <iostream>

    using Func = void(*)();

    class Test {
    Func ExternalFunction {};
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width