I’m looking to write a simple program which can run both on Win XP SP3 (ideally without added dependencies, if it all possible) and modern Linux. Really, it should be platform agnostic but XP and Linux are what I’m specifically interested in.

The program will be for managing my cd-keys for my XP games. It’ll have a simple gui with a search box and an output box. It’ll parse text files in it’s subdir when searching via search box and output the cd-key string contained within.

From what I can see, it would be good/viable to use C++ so it runs on XP and Linux and use gtkmm3 for the UI for the same reason.

Does this make sense or am I missing something glaringly obvious? Any input would be much appreciated~

  • gramie@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    7 hours ago

    You could use Lazarus, which is based on Pascal, cross-compilable, and allows you to create the UI by dragging and dropping.

    Another alternative is B4J, which allows you to write the code in a dialect of BASIC, but compiles it to Java bytecode.

  • RushLana@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    5
    ·
    19 hours ago

    Why not write a web app ? Supermium is modern chromium for xp and will work.

    Just stick to vanilla web technologies and it should be fine.

  • Otter@lemmy.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    20 hours ago

    I’m not familiar with GUI development on XP, but could you accomplish this with a script that you run in the terminal? That might be easier than dealing with a GUI that needs to work on both old and modern systems.

    You could alias it to a command like getGameKey your_search_query on both to keep the usage the same. You may need a slightly different command for each one (using find+grep on Linux, some Windows command line equivalent on XP)

    • xvertigox@lemmy.worldOP
      link
      fedilink
      arrow-up
      4
      ·
      19 hours ago

      Thanks heaps for the idea. I could definitely do it on Linux via a script and it looks like XP has findstr.

      It shouldn’t require parsing text files intelligently either. If each line is [Game Name] - [CD-Key], it can just spit the whole line out.

  • chonkyninja@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    18 hours ago

    Step 1. Install Steam Step 2. Open Steam Step 3. Use the menus to import a game, insert Key.

    Steam does this.