Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to set the entry point of an application.

How to set the entry point of an application.

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
5 Posts 4 Posters 0 Views 1 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.
  • J Offline
    J Offline
    Jijo Raj
    wrote on last edited by
    #1

    Dear all, Question - I want to change the entry point of my program to some "MyFunction". I know that, it can be done by taking project Settings, Link tab, then Input section and specify the entry point. But my requirement is to done it by code using any #pragma or any other preprocessor like that. Please help me. Regards, Jijo. ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.

    B 1 Reply Last reply
    0
    • J Jijo Raj

      Dear all, Question - I want to change the entry point of my program to some "MyFunction". I know that, it can be done by taking project Settings, Link tab, then Input section and specify the entry point. But my requirement is to done it by code using any #pragma or any other preprocessor like that. Please help me. Regards, Jijo. ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.

      B Offline
      B Offline
      bikram singh
      wrote on last edited by
      #2

      #pragma comment(linker, /entry:"MyFunction")

      Bikram Singh I believe we should all pay our tax with a smile. I tried - but they wanted cash.

      J T G 3 Replies Last reply
      0
      • B bikram singh

        #pragma comment(linker, /entry:"MyFunction")

        Bikram Singh I believe we should all pay our tax with a smile. I tried - but they wanted cash.

        J Offline
        J Offline
        Jijo Raj
        wrote on last edited by
        #3

        Dear bikram, Thanks a lot. Regards, Jijo. ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.

        1 Reply Last reply
        0
        • B bikram singh

          #pragma comment(linker, /entry:"MyFunction")

          Bikram Singh I believe we should all pay our tax with a smile. I tried - but they wanted cash.

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          Hello Sir, really i tried that-> #pragma comment(linker, /entry:"MyFunction") but sad i didn't able to work it out. pls help me in this. thanks ----------------------------- "I Think It will Work" Formerly Known As "Alok The Programmer" at CP ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

          1 Reply Last reply
          0
          • B bikram singh

            #pragma comment(linker, /entry:"MyFunction")

            Bikram Singh I believe we should all pay our tax with a smile. I tried - but they wanted cash.

            G Offline
            G Offline
            Gary R Wheeler
            wrote on last edited by
            #5

            Unfortunately, that doesn't work. According to the MSDN, you can only use the /DEFAULTLIB, /EXPORT, /MERGE, /INCLUDE, and /SECTION linker options in a #pragma comment(linker,...).


            Software Zen: delete this;

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups