Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Source code of main inside exe
Forum Updated to NodeBB v4.3 + New Features

Source code of main inside exe

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 5 Posters 587 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 3 Offline
    3 Offline
    3cxitalydev
    wrote on last edited by
    #1

    I just checked the strings contained in an exe compiled on windows supposedly in release (qt creator+vs2017) and I can see the source code of the main.
    What I am doing wrong?

    Thank you in advance

    Emanuele

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      What I am doing wrong?

      If you mean you can see method names: you are doing nothing wrong, this is normal.

      If you want to hide them, use some C+ obfuscation technique / software.

      (Z(:^

      1 Reply Last reply
      2
      • 3 Offline
        3 Offline
        3cxitalydev
        wrote on last edited by
        #3

        No, I mean I can see the entire source code of the main.
        I used this:
        https://docs.microsoft.com/en-us/sysinternals/downloads/strings
        on my exe and I can see the entire source code of the main:
        #include <QApplication>
        #include <QCommandLineParser>
        ....

        Yes, I also see some method names, but this is not a big problem.

        jsulmJ 1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          No idea then, that's weird.

          (Z(:^

          1 Reply Last reply
          0
          • 3 3cxitalydev

            No, I mean I can see the entire source code of the main.
            I used this:
            https://docs.microsoft.com/en-us/sysinternals/downloads/strings
            on my exe and I can see the entire source code of the main:
            #include <QApplication>
            #include <QCommandLineParser>
            ....

            Yes, I also see some method names, but this is not a big problem.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @3cxitalydev Did you check the build log to see how the compiler was called (what parameters were passed to it)?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              You probably compiled in debug mode. Try switching to release and see if the same happens

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              1 Reply Last reply
              1
              • 3 Offline
                3 Offline
                3cxitalydev
                wrote on last edited by
                #7

                Hi,
                many thanks to all of you.
                At the end I discovered that I added by mistake the main as resource file... :(

                Sorry for bothering you.

                Emanuele

                aha_1980A 1 Reply Last reply
                1
                • 3 3cxitalydev

                  Hi,
                  many thanks to all of you.
                  At the end I discovered that I added by mistake the main as resource file... :(

                  Sorry for bothering you.

                  Emanuele

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @3cxitalydev Glad you figured it out.

                  Then please mark this topic as SOLVED. Thanks.

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved